Date: 09/26/07 (Computer Geeks) Keywords: no keywords Here is a program I wrote in C++, but I cant get it to compile and I dont understand why. Even programs I enter from the book wont compile and its irritating. Can anyone look at this code and maybe tell me why it wont pass the compiler? It looks like I got everything in the right place...all the quotes and whatnot. any help and id be sooo grateful [Error: Irreparable invalid markup ('
Here is a program I wrote in C++, but I cant get it to compile and I dont understand why. Even programs I enter from the book wont compile and its irritating. Can anyone look at this code and maybe tell me why it wont pass the compiler? It looks like I got everything in the right place...all the quotes and whatnot. any help and id be sooo grateful #include int main( ) { int time1, time2, time3, distance1,distance2,distance3; time1=20; distance1=3; totalone=0.3*(time1+0.05*distance1); cout<<"The cost of a" < time2=15; distance2=2; totaltwo=0.3*(time2+0.05*distance2); cout<<"The cost of a" < time3=4; distance3=4; totalthree=0.3*(time3+0.05*distance3); cout<<"The cost of a" < system("pause"); return 0; } Source: http://community.livejournal.com/computergeeks/1111254.html
|