No, it doesnt make sense
First, move the "struct student.." block of code outside of whatever function that is in. If all of this isnt already in a function, ie "int main()", then you certainly need it to be. However, the "struct" type declaration should be outside (and before) any function that you use it in.
Next, "struct Student studentArray[10]" should just be "struct Student". So that you create a new type, called "struct Student", similar how there are types for "int", "char", etc. Later when you use these, you change your line "Student studentArray[10];" to "struct Student studentArray[10];". If you dont want to have to use the word "struct" in that line, you'd have to look at "typedef". See this article (
Cprogramming.com FAQ > All about structures), the section talking about "typedef" on how to do that.
Code:
cin >> intInput;
cin >> charInput;
cin >> doubleInput
In the above code, none of those variables are declared. Also, later, you use "charInput" and assign it "" (two double quotes, i.e. an empty
string). I assume this variable is a "char", in which case you cant assign it a string and you must use single quotes, like ' '. If it
isnt a "char", then change the name of the variable as it is not meaningful and is confusing.
Next, you need to change the lines similar to this "Student studentArray[x]." to "studentArray[x]." And of course "input1", etc, arent declared in the above code, giving more errors.