Howdy, Stranger!

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

Categories

PROBLEMS WITH STRINGS

SKINSMADSKINSMAD Member Posts: 11

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

  • bikibiki Member Posts: 492
    [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]

  • abcabc Member Posts: 443
    [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?)
  • Justin BibJustin Bib USAMember Posts: 0

    _____ | http://forcoder.org | free ebooks and video tutorials about || R Visual Basic MATLAB C++ C C# PHP Delphi Scratch Go PL/SQL Visual Basic .NET Objective-C Ruby Swift JavaScript Assembly Python Perl Java Crystal F# FoxPro Lisp ML Erlang Awk Lua Hack Fortran SAS Dart Scheme Ada Clojure LabVIEW COBOL Transact-SQL Julia Rust Scala Alice VBScript Apex Prolog ABAP D Logo Kotlin Bash || ______________

Sign In or Register to comment.