3 Replies - 1260 Views - Last Post: 15 May 2001 - 11:00 AM Rate Topic: -----

#1 supersloth  Icon User is offline

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4503
  • View blog
  • Posts: 28,411
  • Joined: 21-March 01

switch statement problem

Posted 14 May 2001 - 02:45 PM

allright, i started this new thread, cause no one was looking at the old one anymore. but i cant get any of those switch answers you guys gave me to work. they were the string compare, and the y_n[4] thing. but i cant get any to work. help would be much apprecitated.
Is This A Good Question/Topic? 0
  • +

Replies To: switch statement problem

#2 miaka284  Icon User is offline

  • D.I.C Addict

Reputation: 0
  • View blog
  • Posts: 530
  • Joined: 10-May 01

Re: switch statement problem

Posted 14 May 2001 - 03:28 PM

okay sloth, this is what you do...
if(strcmp(ans, "yes")==0)
{ temp();
}

else if(strcmp(ans,"no")==0) {   cout<<"thank you for visiting....."<<endl; } else {  cout<<"ERROR!"<<endl; }

got it?


(Edited by supersloth at 5:35 pm on May 14, 2001)

Was This Post Helpful? 0
  • +
  • -

#3 runtime error  Icon User is offline

  • Lucky.Code
  • member icon

Reputation: 3
  • View blog
  • Posts: 629
  • Joined: 19-March 01

Re: switch statement problem

Posted 14 May 2001 - 08:00 PM

good work grasshopper.
Was This Post Helpful? 0
  • +
  • -

#4 supersloth  Icon User is offline

  • serial frotteur - RUDEST MEMBER ON D.I.C.
  • member icon


Reputation: 4503
  • View blog
  • Posts: 28,411
  • Joined: 21-March 01

Re: switch statement problem

Posted 15 May 2001 - 11:00 AM

yea, not half bad. little one(litteraly).
heheheheh. you are the same size as a grasshopper. heheheheheh.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1