Search found 1 match

by gr40210
Wed May 14, 2008 1:56 pm
Forum: Volume 4 (400-499)
Topic: 424 - Integer Inquiry
Replies: 96
Views: 38607

424 [wa]

i have try it for so long time
plz tell me why??

#include <iostream>
#include <cstring>

using namespace std;

void stringaddintfront(string &nstring,int c)
{
char self = c % 10 + '0';
string addstr;
addstr.push_back(self);
nstring = addstr + nstring;

}

int main(int argc, char *argv ...

Go to advanced search