Missing syntax (int i (semi-colon)). The IDE usually shows you which line may be causing the problems when compilation fails.
Type: Posts; User: Oldman47
Missing syntax (int i (semi-colon)). The IDE usually shows you which line may be causing the problems when compilation fails.
if(pressCount!=0){
// do something
}
How is that going to allow you to ever reach your else statement? pressCount is always going to != 0. You're using odd/even comparative here? I...
You could do something as simple as using a control_int, whereas if int_control==1, do this, else (if int_control==2) do something else, then reset int_control back to '0'. It's a simple hack -
From your instructions, you want to add the value '5' to each character within your string. To decrypt, you'd simply do a -=5 in lieu of the +=5. You're encoding each character within the string,...
//assumes you have also opened an output file [encpFile]
while(std::getline(dataFile, s, '\n')) //retrieve full line from input file
{
for(int x = 0; x<s.length(); x++)
...
Hello. Have you looked at forgers_source? I believe they have a tutorial which you can download or read from site (if memory serves, t'is a bouncing ball animation); that should pretty much give you...
Yes, and for the most part, they're correct in thinking so. At one time or another, we either charge things we don't necessarily need or are too expensive to fit comfortably into our budget. ...
goto; TresCom - the place for Trespasser fans
Scroll down the page until you see the import/export max scripts. The two gentlemen who wrote these scripts did so for the game Trespasser. It...
Not certain if this will help, but I'd do it quick n' dirty. Make your picture window an owner drawn button, with each click have it updated to whatever picture you have sequenced (load_from_file: ...
I forget who originally posted this, but the below might work since it allows you to define how large an area a titlebar would be. Basically, you can't shove the window up further than the lower...
Bubba's suggestion is the most professional, I'd say. If your game is complex with plenty of needed resources, I'd say go with that & create a loader class to deal with it. Otherwise, if it's just...
If you just need a starting point & some code example, goto; Create Window Website. I believe the individual's name is Ellingson, author of CRCText tool. Source code is available for the program,...
I know nothing about different char sets, but using c shouldn't you at least be reading as binary? rb, not r?
You'd also want to remove or replace those letter(s) found with the string so they're not Id'd and compared again. The method I used once was that if a letter was found, it'd be replaced by a '*'...
Well, there's different methods of doing this, a simple one may be something like;
int main()
{
std::string secret_word="pizza";
char l;
std::cout<<"enter a letter: ";
No, but that isn't a bad idea, vart. Using a *bat to launch another conversion utility would certainly negate my having to write up my own conversion code (which I'm uncertain how to do anyhow - I'm...
Hidi Ho, People. Straight to the problem, after spending some time extracting some audio data from game files, I came to the problem that some of the audio data is straight pcm and others are ima...
You can eliminate those if/else statements with a little math, bub. ;)
int percentage=num_correct*100/3;
cout<<"You've scored "<<percentage<<" on this quiz";
Also, the function...
Commented. Basically, I was trying to do away with most of your if/else statements and the function was created for that reason, along with keeping the code compact.
Well, I was thinking more along the lines of what's below. Before doing a board search, try to figure out percentages on your own. ;)
int num_correct=0; //initialize a counter for correct...
Create a counter in lieu of the numerous if statements. IE., int counter=0; Each time an answer is correct, do ++counter; At the end of your Q & A, compare the counter count to the number of...
If you just type in 'bindata.dat' file, the program is going to look for that file in the directory the program is residing in. If it's elsewhere, you'll need the exact and complete pathway (ie....
I've been advocating that marriage licenses be renewable like driver licenses (every five years would be nice). If both parties don't agree to renew the marriage, you walk away!
Gay Marriages. ...
Nah, that's not right. You want the project options general tab, not the parameter's tab. If necessary, rebuild your project from scratch, meaning goto menu, create new project, select app. type...
Right click on your project (left window), choose project options, browse and select the needed library (to link up with).