| | |
ANSI string problem
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
I am used to using:
to make a string but recently have changed to using the ANSI string class as its a lot more powerful and easier to use... BUT i have a problem!
when I have encountered a string which conatins a " character I have used the following for a c-style string
Which means it will contain "quote = "hello""
However i have a line of code which is
but it gives an error. It seems like the new ANSI string wont accept the ' character. Does anyone know how i can write that string to include the " characters around the bmp filename?
C++ Syntax (Toggle Plain Text)
char *str;
to make a string but recently have changed to using the ANSI string class as its a lot more powerful and easier to use... BUT i have a problem!
when I have encountered a string which conatins a " character I have used the following for a c-style string
C++ Syntax (Toggle Plain Text)
char *str = 'quote = "hello"';
However i have a line of code which is
C++ Syntax (Toggle Plain Text)
string str = '<tr><td><img src="log_error.bmp"></td><td><b>';
http://sales.carina-e.com
no www
no nonsense
coming soon to a pc near you! :cool:
no www
no nonsense
coming soon to a pc near you! :cool:
![]() |
Similar Threads
- Rock Paper Scissors: String Problem (C++)
- C working with string problem (C)
- String problem (C++)
- System.String.LastIndexOf problem (C++)
- AnsiString to string conversion (C++)
- Newbie string problem (C)
- string problem (IMPORTANT) :(( (C)
Other Threads in the C++ Forum
- Previous Thread: Help w/ dynamic list funtction definitions
- Next Thread: Playing around with std::string
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class code coding compile compiler console conversion count database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker list loop looping loops map math memory multiple news node number numbertoword output parameter pointer problem program programming project python random read recursion recursive reference rpg sorting string strings struct temperature template test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






