HAY GUYS
1
Name:
harlp
2008-02-26 4:04
anyone willing to help with c++ code?
i need to extract multiple characters from a string (specifically the last three from a 4 character string), and then make those into a string. is there a way to do this? or do i have to extract each of them seperately using string[1], string [2], string [3]?
and if so, how do i convert them into a string? :O?
HARLP.
2
Name:
Anonymous
2008-02-26 4:21
DON'T HELP HIM
3
Name:
Anonymous
2008-02-26 4:23
s[-3:]
4
Name:
harlp
2008-02-26 4:23
5
Name:
Anonymous
2008-02-26 4:30
6
Name:
Anonymous
2008-02-26 4:31
>>3
if this is correct syntax, i have no idea how to implement it. it keeps giving me the error: "Error: Unexpected ":" found."
7
Name:
harlp
2008-02-26 4:39
here is the function which is its in. its not done yet. i need to fix this problem before i continue on:
void purchases(MealAccount MAArray[20])
{
ifstream inFile;
char purchaseType;
string student, studentID;
inFile.open("purchases.dat");
getline(inFile, student);
while (inFile)
{
purchaseType = student[0];
studentID = student[-3:];
cout << studentID;
break;
}
}
this code so far is giving me the error "Error: Unexpected ":" found."
harlp me guys.
8
Name:
Anonymous
2008-02-26 4:42
lol
9
Name:
harlp
2008-02-26 4:46
lol guys, i'm retarded. :D
i went and sucked cock, and it gave me my answer.
10
Name:
Anonymous
2008-02-26 5:12
is there a substring function?
11
Name:
Anonymous
2008-02-26 5:12
or left() or right()
12
Name:
Anonymous
2008-02-26 5:17
please be a troll
13
Name:
Anonymous
2008-02-26 7:23
>>1
Please, stop posting.
14
Name:
Anonymous
2008-02-26 9:25
I'm lolling at ``harlp''
15
Name:
Anonymous
2008-02-26 9:25
I'm lolling at ``harlp''
16
Name:
Anonymous
2008-02-26 9:34
String newString = oldString.substring(1);
17
Name:
Anonymous
2009-03-06 9:01
The second button I use a lot of C homework?
18
Name:
Anonymous
2009-08-16 23:24
Lain.
22
Name:
Anonymous
2010-12-17 1:28
Are you GAY ?
Are you a NIGGER ?
Are you a GAY NIGGER ?
If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!