简体   繁体   中英

Call a function (ofstream) C++

Hello I have a probleme with my Code.I don't know how to call the function with the ofstream.

//Username
Username(ofstream& reg);
//Password
Password(ofstream& reg);
//Email
Email(ofstream& reg);
//Gender
Gender(ofstream& reg);
Line(22) The Error is: Expected primary-expression before '&' token
Line(24) The Error is: Expected primary-expression before '&' token
Line(26) The Error is: Expected primary-expression before '&' token
Line(28) The Error is: Expected primary-expression before '&' token

Remove ofstream & . Function calls don't include types.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM