PROBLEMS WITH STRINGS


howdy

i am relatively new to c++, and i am using version 5.02, with windows 95 as the OS. currently i am on strings and have encountered a few problems

the #include preprocessor does not work, and therefore the atoi, atol, and atof functions do not work.

also with c++ strings, some of the commands are not recognised by the compiler that i am using.

string.compare, string.erase and getline(cin,string1,'
') are all commands that are causing problems with my compiler.

any help would be greatly appreciated.

regards

SKINSMAD

Comments

  • [green]
    "version 5.02" of which compiler ?
    #include ? try #include
    [/green]
    [size=2][red]

    [b]Bikram[/b][/red]
    [blue]http://www.geocities.com/nv5050[/blue]
    [red]**************************************[/red][/size]

  • [green]
    : "version 5.02" of which compiler ?
    [/green]
    that would probably be borland
    [green]
    : #include ? try #include
    [/green]

    cstdlib should be available - the c++ header corresponding to stdlib.h ... if it's not, then fall back to the c version (often enough it's just an "#include <***.h>" for the c*** header).

    for the rest of it ... you should probably post the error messages (maybe some code, too?)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories