Thread: Hola!

  1. #1
    TransparentMember correlcj's Avatar
    Join Date
    Jun 2002
    Posts
    378

    Hola!

    I have this program that alarms redifinition in line 6. Can anyone explain that a little better for me. I think its becaue of the reocurring alphabetic letters, right? No se?
    Code:
    int main()
    {
    	double i1, c1, r1, i2, c2, r3, i3, c3, r3;
    
    	cin >> noskipws
    		>> i1 >> c1 >> r1
    		>> i2 >> c2 >> r3
    		>> i3 >> c3 >> r3;
    	cout << i1 << c1 << r1
    		 << i2 << c2 << r3
    		 << i3 << c3 << r3;
    		return 0;
    }

  2. #2
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    >> double i1, c1, r1, i2, c2, r3, i3, c3, r3;
    should be:
    double i1, c1, r1, i2, c2, r2, i3, c3, r3;

    Make appropriate fixes in cin and cout.
    Try not.
    Do or do not.
    There is no try.

    - Master Yoda

  3. #3
    TransparentMember correlcj's Avatar
    Join Date
    Jun 2002
    Posts
    378

    AAAAAAAAAAAAHH!

    You are wise yoda!
    thanks alot!
    I may still prove myself to become the greatest JEDI, yet.
    May The Force Be With You!

  4. #4
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    random thought:

    my friend once said "hola" to someone on aol instant messenger. his ghetto-***** of a sister, who is like 14, said "thats not how you spell hollah you idiot!"

    makes me want to bodily injure people...

  5. #5
    TransparentMember correlcj's Avatar
    Join Date
    Jun 2002
    Posts
    378

    Really!

    my friend once said "hola" to someone on aol instant messenger.
    Okay! I'll remember not to speak spanish when I am on AOL,.
    Thanks Capt. for the random thought.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why aren't 2 chars equal?
    By seraph in forum C++ Programming
    Replies: 5
    Last Post: 04-25-2007, 12:52 PM