+ 2
I want help to fix errors.
Help please i made program to calculate average but it showing errors https://code.sololearn.com/ckek66cwEt7V/?ref=app
5 Réponses
+ 2
I've correct your code.
https://code.sololearn.com/c2XadoG5svjV/?ref=app
+ 2
CHERIEF Houcine Abdelkader why it showing no output
+ 1
You can access struct values by its object, not as single variable.. Like
student std; //struct object creation..
std.maths //access its variables..
std.phy= 98.5;
And you have no connections to the functions from main function so it's no use of functions..
Function closing is not in proper way.. Missing close brace.. And parameter declaration is also wrong.. It's a incomplete program..
🐍🐍🐍🐍🐉
Try these changes :
=> Declare all functions and structure before using those in statements..
=> sample proper way :
void findfirst(student St){
string sname = St.name;
cout<<sname;
}
=>Add a return statement in Avg function..
=>add calling statements of these functions from main function..
Try these and reply if you need further any..
+ 1
This is you're program, you can output what do you want.
I've just corrected from syntax errors!!
0
Try to edit to corrections which I mentioned in my previous post.. It works with those modifications....