View unanswered posts | View active topics
|
Page 1 of 1
|
[ 8 posts ] |
|
| Author |
Message |
|
Lazzareth
|
Post subject: C++ Help PLEASE Posted: Tuesday, 15 Feb 2005, 00:58 |
|
Joined: Friday, 28 Jan 2005, 19:56 Posts: 44 Location: Australia
|
i need to know how to input a 'string or something thats has spaces in it
eg. a path C:\program files\....
but it always returns as 'C:\program'
help 
_________________ www.lazzareth.au.tt = 1337 = i fuckz0r
|
|
| Top |
|
 |
|
karcher
|
Post subject: Posted: Tuesday, 15 Feb 2005, 01:20 |
|
| Advanced forumer Завсегдатай |
Joined: Friday, 07 Jan 2005, 19:59 Posts: 52 Location: somwhere over the rainbow
|
Get a c++ cookbook !!! and get a life 
_________________ I'm GOD you bitch  (offended by my sig? goanfuckyourself  )
|
|
| Top |
|
 |
|
Lazzareth
|
Post subject: Posted: Tuesday, 15 Feb 2005, 01:21 |
|
Joined: Friday, 28 Jan 2005, 19:56 Posts: 44 Location: Australia
|
karcher wrote: Get a c++ cookbook !!! and get a life 
hello... screw you!
_________________ www.lazzareth.au.tt = 1337 = i fuckz0r
|
|
| Top |
|
 |
|
hanspeter
|
Post subject: Posted: Tuesday, 15 Feb 2005, 01:26 |
|
Joined: Wednesday, 19 May 2004, 17:39 Posts: 14
|
|
| Top |
|
 |
|
karcher
|
Post subject: Posted: Tuesday, 15 Feb 2005, 01:28 |
|
| Advanced forumer Завсегдатай |
Joined: Friday, 07 Jan 2005, 19:59 Posts: 52 Location: somwhere over the rainbow
|
screw yourself  btw got a bigger signature ? 
_________________ I'm GOD you bitch  (offended by my sig? goanfuckyourself  )
|
|
| Top |
|
 |
|
| Drake |
|
Post subject: Posted: Tuesday, 15 Feb 2005, 01:29 |
|
Joined: Tuesday, 09 Mar 2004, 05:12 Posts: 15
|
|
you can use fgets()
it reads a whole line from a stream into a buffer.
#include <stdio.h>
char *fgets(char *s, size_t n, FILE *stream);
|
|
| Top |
|
 |
|
H3llBoSS
|
Post subject: Posted: Tuesday, 15 Feb 2005, 02:51 |
|
| Super flooder Почетный графоман |
Joined: Monday, 23 Feb 2004, 15:18 Posts: 794
|
|
char(34) + "program files" + char(34)
|
|
| Top |
|
 |
|
a7m
|
Post subject: Posted: Tuesday, 15 Feb 2005, 05:17 |
|
Joined: Wednesday, 12 Jan 2005, 00:46 Posts: 3
|
|
try "c:\\program files\\"
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 6 guests |
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|