⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test3.cpp

📁 作了个小程序
💻 CPP
字号:
// Test3.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Afx.h"
#include "iostream.h"
#include "windows.h"
struct Person
{
//	CString str;
	char Name[20];
	int gender;
	int age;
    Person()
	{
		strcpy(Name,"123");
		gender = 0;
		age=23;
//		str="";
	}
};
int main(int argc, char* argv[])
{
///	int a = 6;
//	int *p = &a;
//	int **pp= &p;
//	int addr =(int) &pp;
//   cout<<a<<*p<<**pp<<endl;
//	printf("Hello World!\n");
	Person song;
	song.age=24;
	song.gender = 1;
//	song.str = "888888";
    WritePrivateProfileStruct("我的信息","个人信息",&song,sizeof(Person),".\\1.ini");
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -