one of my friends was saying goto statements arent used much in c++ very much, if that is true then alright but if not i would like to know how to use them... cause i cant get my game to go back to...
Type: Posts; User: JPed2003
one of my friends was saying goto statements arent used much in c++ very much, if that is true then alright but if not i would like to know how to use them... cause i cant get my game to go back to...
anyone want to give me something to learn about tcp/ip with c++ ... i just want to make some simple programms with it... like connecting to an ip... i just somewhere to read some code on it... so...
so whats an example of some none sloppy loops?
#include <iostream>
#include <string>
#include <cctype>
using namespace std;
void main()
{
// build command map
string commands[] = {
and hotman_x is my hero;)
jped:p
ok... case 1 isnt actually the number one... im just using it as it being the first case... the real one is actually case 'n':.... i know what im doing alittle bit:D
JPED:p
oh yea... and the default isnt working... its repeating the default no matter what letter they enter.. its working... except for that... like this.......
computer: Enter a command:
user: ...
ok... the strcmp im assuming is just the same as the IF. and ive got it working for now. but now i need to make it if they equal it in lowercase or capital case, then it will do the same either...
ok... im making a one player RPG game in my programming class and i cant seem to find anywhere in the deitel and deitel book that it will tell you how to make a piece of code that will repond IF...
Im trying to write some code to make it if somone enters a word (no just a letter) then it will do something else. Cant seem to figure it out.:confused: :eek: