首页上一页 1  下一页尾页 1 条记录 1/1页
        为什么不能赋值,两个变量连在一起了(在VS2019)
                 	
                        发表在C++图书答疑
                        2021-04-03                         悬赏:1 学分                        
                    		
                            《零基础学C++》第8章 结构体与共用体                            172页-172页
悬赏:1 学分                        
                    		
                            《零基础学C++》第8章 结构体与共用体                            172页-172页                    	
                        
                        
                    
                     悬赏:1 学分                        
                    		
                            《零基础学C++》第8章 结构体与共用体                            172页-172页
悬赏:1 学分                        
                    		
                            《零基础学C++》第8章 结构体与共用体                            172页-172页                    	
                        
                        
                    
                    	是否精华
                    	是
                    	否
                    
                    
                    
                            版块置顶:
                            是
                            否
                        
                    在程序里不能输入School_name(Visual Studio 2019)
/*
* Struct
* 2021/4/3
*/
#include <iostream>
using namespace std;
struct STUDENT_INFORMATION
{
char Name[20];
int Age;
char School_name[20];
};
int main()
{
STUDENT_INFORMATION Student;
cout << "Name:" << endl;
gets_s(Student.Name, 20);
cout << "Age:" << endl;
cin >> Student.Age;
cout << "The name of the school:" << endl;
gets_s(Student.School_name, 20);
cout << "Name:" << endl;
cout << Student.Name << endl;
cout << "Age:" << endl;
cout << Student.Age << endl;
cout << "The name of the school:" << endl;
cout << Student.School_name << endl;
return 0;
}

 
	
                                                 VIP会员
VIP会员 购物车
购物车

 私信
                         私信 
                     
					 
					 
					 
					 
					 发表新帖
发表新帖 立即签到
立即签到 
        		  
        		 
         		 关注
关注
                  回复
 回复 支持(
                	支持( 反对(
                    反对( 
                    
 
                







 
                     
                     
					 
						 
						 
						 
						