im gettingh this error...
C:\My Coding Stuff\C++\First Time c++\loops and stuff\loops and stuff.cpp(9) : error C2447: missing function header (old-style formal list?)
for this code...
now obviously, im quite new at this (well, just restarted from what wasnt a very wide knowledge)Code:#include "stdafx.h" #include<iostream.h> int main(); { int rating; cout<<"how would you rate this program on a scale of 1 - 10 : "; cin>>rating; if(rating < 2) cout<<rating<<"surely not, that is REALLY bad"; elseif(rating < 4 && > 2); cout<<rating<<"hmm, thats not too bad i suppose!"; return(0) }
im sure i had this when i was coding before and it was something stupid, the answer anyway
thanx




Reply With Quote