c++ problem

+rumpled45k1n+
Posts: 30
Joined: Tue Apr 16, 2002 9:05 pm

Post by +rumpled45k1n+ »


i got it.


 


 Line = ReadStringPr ("Enter address(* for a new line): ");


 Index = 1;


 Temp = "\n";


    while (Index <=Length (Line))


     if (Line[index] == '*')


     {


       Temp = "\n";


       WriteString (Temp);


       Index = Index + 1;


     }


     else


     {


       WriteChar (Line [index]);


       Index = Index + 1;


     }


 


     getchar();


 return 0;


 


not the cleanest code but thats what they wanted, so i had to lay it out like this.


 


anyway, i'm a n00b13t.


Under The Influence
Posts: 70
Joined: Sat Apr 20, 2002 11:00 am

Post by Under The Influence »

:thumbup:

Wullie ever-dead
Posts: 154
Joined: Mon Apr 15, 2002 3:16 pm

Post by Wullie ever-dead »

I do not have a fuckin' clue what j00 are talking about...

monkeys_heed
Posts: 209
Joined: Fri Apr 19, 2002 1:58 pm

Post by monkeys_heed »


I do not have a fuckin' clue what j00 are talking about...

I thought you were one of them computer bods wullie


 


anyway did you try my program Mr. Foreskin?


ianskate
Posts: 80
Joined: Mon Apr 08, 2002 1:33 am

Post by ianskate »

codes not that bad...  :D

+rumpled45k1n+
Posts: 30
Joined: Tue Apr 16, 2002 9:05 pm

Post by +rumpled45k1n+ »



I do not have a fuckin' clue what j00 are talking about...

I thought you were one of them computer bods wullie


 


anyway did you try my program Mr. Foreskin?



i was going to try your code but my commodore vic 20 has packed in.


 


Anyway I've forgotten where poke goes.


 


Wullie is the Illumination engineer


(read: as bulb changer)


Wullie ever-dead
Posts: 154
Joined: Mon Apr 15, 2002 3:16 pm

Post by Wullie ever-dead »


Wullie is the Illumination engineer

(read: as bulb changer)



Cheeky bastard.


Locked