C++ beginner Q

    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




    #include

    [Error: Irreparable invalid markup ('') in entry. Owner must fix manually. Raw contents below.]

    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

« Trend Micro Internet... || Probably a repeat post.... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home