Search:

Type: Posts; User: Oldman47

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    4,670

    Missing syntax (int i (semi-colon)). The IDE...

    Missing syntax (int i (semi-colon)). The IDE usually shows you which line may be causing the problems when compilation fails.
  2. Replies
    14
    Views
    6,010

    if(pressCount!=0){ // do something } ...

    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...
  3. Replies
    14
    Views
    6,010

    You could do something as simple as using a...

    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 -
  4. From your instructions, you want to add the value...

    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,...
  5. //assumes you have also opened an output file...

    //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++)
    ...
  6. Replies
    3
    Views
    1,371

    Hello. Have you looked at forgers_source? I...

    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...
  7. Replies
    17
    Views
    2,512

    Yes, and for the most part, they're correct in...

    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. ...
  8. Replies
    13
    Views
    4,340

    goto; TresCom - the place for Trespasser fans...

    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...
  9. Thread: PictureBox

    by Oldman47
    Replies
    2
    Views
    1,500

    Not certain if this will help, but I'd do 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: ...
  10. Replies
    2
    Views
    2,093

    I forget who originally posted this, but the...

    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...
  11. Replies
    8
    Views
    1,691

    Bubba's suggestion is the most professional, I'd...

    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...
  12. Replies
    4
    Views
    3,163

    If you just need a starting point & some code...

    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,...
  13. Replies
    25
    Views
    5,606

    I know nothing about different char sets, but...

    I know nothing about different char sets, but using c shouldn't you at least be reading as binary? rb, not r?
  14. Thread: Find letter

    by Oldman47
    Replies
    3
    Views
    1,558

    You'd also want to remove or replace those...

    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 '*'...
  15. Thread: Find letter

    by Oldman47
    Replies
    3
    Views
    1,558

    Well, there's different methods of doing this, 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: ";
  16. Replies
    2
    Views
    1,175

    No, but that isn't a bad idea, vart. Using a...

    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...
  17. Replies
    2
    Views
    1,175

    PlaySound() Limitations

    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...
  18. Replies
    22
    Views
    4,302

    You can eliminate those if/else statements with a...

    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...
  19. Replies
    22
    Views
    4,302

    Commented. Basically, I was trying to do away...

    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.
  20. Replies
    22
    Views
    4,302

    Well, I was thinking more along the lines of...

    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...
  21. Replies
    22
    Views
    4,302

    Create a counter in lieu of the numerous if...

    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...
  22. Replies
    4
    Views
    1,221

    If you just type in 'bindata.dat' file, the...

    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....
  23. Replies
    128
    Views
    14,749

    I've been advocating that marriage licenses be...

    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. ...
  24. Replies
    6
    Views
    25,671

    Nah, that's not right. You want the project...

    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...
  25. Replies
    6
    Views
    25,671

    Right click on your project (left window), choose...

    Right click on your project (left window), choose project options, browse and select the needed library (to link up with).
Results 1 to 25 of 252
Page 1 of 11 1 2 3 4