Search:

Type: Posts; User: c++_n00b

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,457

    lol that's exactly what i did before but people...

    lol that's exactly what i did before but people told me to take it out... weird...
  2. Replies
    9
    Views
    1,457

    thx, but...

    neither of those work... :( ... *sigh*....
  3. Replies
    9
    Views
    1,457

    Why what's wrong with it? I just have a bunch of...

    Why what's wrong with it? I just have a bunch of funcitons and put them all in a loop function, and then used the loop function in my main.cpp file. If I shouldn't do that, then what should i change?
  4. Replies
    9
    Views
    1,457

    that did... absolutely nothing... Plus a...

    that did... absolutely nothing...

    Plus a struct is much more appropriate for this case since my members are meant to be public...

    thx anyways i guess tho :)
  5. Replies
    9
    Views
    1,457

    Linking Errors...

    Here are the errors I get:



    --------------------Configuration: Hangman - Win32 Debug--------------------
    Compiling...
    Main.cpp
    Linking...
    Main.obj : error LNK2005: "struct hangman hang"...
  6. nope... :(

    nope... :(
  7. yes that works... but how come everyone else can...

    yes that works... but how come everyone else can get the code to work without using namespaces. :confused: :confused: :confused:

    [edit]
    And plus I never used to have to do that... weird... but...
  8. My Visual C++ is starting to really um... screw up to put it nicely

    Looks like header files just don't work anymore. Especially the good old <string.h>.

    I made a test just to see if something was wrong... and there was.

    Here's the codes that I've tried

    ...
  9. does anybody know how i can fix this problem?

    does anybody know how i can fix this problem?
  10. ......... So should i re-instal visual c++?......

    .........

    So should i re-instal visual c++?...

    :(

    :mad: :mad: :mad: :mad: :mad:
    :( :( :(
    :*(
  11. it doesn't work it gives me pretty much the...

    it doesn't work

    it gives me pretty much the same errors as b4.

    it has no idea what a string is for some reason.

    how can i fix this problem?
  12. nope... same thing. The strings used to work,...

    nope... same thing.

    The strings used to work, so how come they don't work anymore?
  13. btw i don't know if i mentioned it but i have...

    btw i don't know if i mentioned it but i have visual c++ 6.0
  14. !@#$!@%#(%*#%**572!@$*!@#$!@#$!@#!$%!@#$

    s***....

    From this code


    #include<iostream>
    #include<string.h>

    int main()
    {
  15. These are the errors i get when i take out the...

    These are the errors i get when i take out the 'extern' and all that stuff:



    --------------------Configuration: Hangman - Win32 Debug--------------------
    Compiling...
    Hangman.cpp
    Main.cpp...
  16. Thx everyone. I don't know if any of that will...

    Thx everyone. I don't know if any of that will fix the problem yet, but I'm gonna try it out.

    As for the 'extern', I was having linking errors b4 and someone told me to use that. If I should take...
  17. Thx everyone. I don't know if any of that will...

    Thx everyone. I don't know if any of that will fix the problem yet, but I'm gonna try it out.

    As for the 'extern', I was having linking errors b4 and someone told me to use that. If I should take...
  18. no, the code I posted does compile fine. It's...

    no, the code I posted does compile fine. It's jsut that when I add <string.h> and change char word[10] to string word it gives me all of those errors.
  19. here's the complete code

    here's the complete code so you guys don't have to wonder what i have in it anymore

    main.cpp


    #include <iostream>
    #include <windows.h>
    #include <string.h>
    #include "Hangman.h"
  20. well, before I was having problems linking the...

    well, before I was having problems linking the two files (hangman.h and hangman.cpp) so someone told me to use 'extern' and then define 'struct hangman hang;' in the hangman.cpp file. And yes,...
  21. Replies
    13
    Views
    2,179

    random is random... I've never had a problem with...

    random is random... I've never had a problem with random numbers b4 where i get the same number each time. I use the random seed generator:


    srand(GetTickCount())

    with <windows.h> and that...
  22. um... that won't work in a header file. Thx...

    um... that won't work in a header file. Thx anywayz though :)

    ... *sigh*...
  23. yeah, actually i can tell you. It gives me about...

    yeah, actually i can tell you. It gives me about 26 or so errors :(. Is that a pretty good reason? It still isn't working right for me though and btw I'm using Visual C++ 6.0.

    For example, when I...
  24. It won't let me use 'string' in the clss

    It won't let me use 'string' in the clss
  25. Using 'if' with char arrays or string objects

    How do you use the if statement with char arrays or a string object? Here is the code I have now but it doesnt' seem to work and I think I've heard somewhere that you can't use 'if' with anything...
Results 1 to 25 of 48
Page 1 of 2 1 2