|
![]() |
Overclock.net - Overclocking.net > Software, Programming and Coding > Coding and Programming > Application Programming | |
add two or more strings
|
||
![]() |
|
|
LinkBack | Thread Tools |
|
|
#11 (permalink) | |
|
Overclocker
|
Quote:
string.c_str () returns a C style (null terminated char array) string. Hence; infile.open(File1.c_str ());
__________________
DD TDX waterblock DD Maze 4-1 CPU (w. Peltier) Swiftech pump DD reservoir DD radiator Dual heatercore |
|
|
|
|
|
#12 (permalink) | |||||||||
|
PC Gamer
|
Quote:
Now just to store the whole file in a variable.
__________________
Kris
|
|||||||||
|
|
|
|
|
#13 (permalink) | ||||||
|
Programmer
|
Quote:
|
||||||
|
|
|
|
#14 (permalink) | |
|
Overclocker
|
Quote:
Look around here for more http://www.msoe.edu/eecs/ce/courseinfo/stl/string.htm If you're getting seriously into C++ try getting a hold of Stroustrup's "The C++ Programming Language". Excellent explanations of why things are the way they are. You should be able to find it in your local library. Bjarne Stroustrup's homepage
__________________
DD TDX waterblock DD Maze 4-1 CPU (w. Peltier) Swiftech pump DD reservoir DD radiator Dual heatercore |
|
|
|
|
|
#15 (permalink) | |||||||||
|
PC Gamer
|
Quote:
. Next time I go to the library I check if they have it. ![]()
__________________
Kris
|
|||||||||
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|