Yes I am going to fuck your head if you going to post more triviality.
Cut THIS OFF. BE NORMAL PEOPLE.
label:{
actions;
actions;
actions;
}
Now, I'm not talking about using GOTO instead of if,while,for. I need this for some cases in a switch.I have lots of conditions, and if some of them are negative, I want to jump over several lines of code. I'm asking this because I don't know calling functions yet, only making a simple "int main()" program ( and besides, I consider this easier than defining some functions ...)f=x*g;
Beep(static_cast<DWORD>(f),static_cast<DWORD>(speed));
cout<<"Beep number "<<x<<" "<<endl;
x=x+1;
}
system("pause");cout<<"This program will be a test program for sounds !"<<endl;
PlaySound(TEXT("test/sunetul.wav"), NULL, SND_FILENAME);
system("pause");You also bumped a pretty old thread.Well I'm sorry, I don't get the idea with bumping threads. I think it's a better idea than making a new one
Oh, and you could link the delay to the input: if the user entered something between 2 and 4, then wait for (1000 * user-input) milliseconds.I tried using a variable to do that and didn't work. I did something like
Also, don't get bother getting comfortable with the Windows API unless you absolutely need to use it. You should make as much use of the standard library as possible and not resort to using platform specific functions/APIs/features unless it's imperative. It might not matter with little test apps, but if you actually release something useful that people will want to download, cross-platform compatibility is a very good thing. There'll be significantly less hassle porting something that isn't riddled with platform-specific code.You know, I'm constantly bothered by this problem. From my initiation I thought about this, because I know system commands are directly linked to windows. I just don't know yet libraries(or does iostream include such commands ?) with commands that could replace the system ones.
if(x<2||x>4)for what I want, I just discovered .
int x;
cout<<"Input a number to specify the delay between the algorithm analyze processes (2,3 or 4 seconds)"<<endl;
cin>>x;
if(x!2||3||4){
cout<<"================== ERROR !!! ==============================="<<endl;
}
if(x==2){
Sleep(2000);
}
if(x==3){
Sleep(3000);
}
if(x==4){
Sleep(4000);
}
cout<<"TEST"<<endl;
system("pause");
return main();
}[/quote]expected `)' before '!' tokenTake the c++ book. Search. Find. I see that "!" is the correct symbol for "NOT" . Also, "||" is the correct symbol for "OR". What did I do wrong ?
Fail, there are no 1000 mapping forums!!!There are more, you just didn't google enough . Or try searching after them in forum directories ( free forum hostings) . OF course, most of them are crap.
im only registered to the forum on the steam website,headpunch studios forum, and this one...head punch ? isn't that facepunch ?
to make sure that ill read your answer.I think the guy is like , registered to @1000 forums.
Definition of fucked up/scary to me.Lol that's a good replica of Michel Jackson.
No, but seriously, you have terrible taste in games, cstriker.I don't bother with things like this. I just don't like the game. Left 4 Dead makes me think about "i speakz englishz corectly lol omg !".
Portal isn't original either.If that game isn't original, at least, it's a rare type of game.