Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > small doubt in C...

Reply
Thread Tools

small doubt in C...

 
 
kpoan kpoan is offline
Junior Member
Join Date: Aug 2006
Posts: 10
 
      09-11-2006
Friends,

I have the following doubt in C..


char pid[603];
char url[1003];
char url2[2003];
Scanf("\"%[^\"]\",\"%[^\"]\",\"%s\n",pid,url,url2)


I don't know how the above scanf works..?
I downloaded one program from net and there it was given like that..

Will anybody help me how to get the input

Itz really helpful to me...
 
Reply With Quote
 
 
 
 
Stockhausen Stockhausen is offline
Junior Member
Join Date: Sep 2006
Posts: 2
 
      09-18-2006
scanf is a good means of reading in well-formatted data from the console. An overview can be found here: http://www.cplusplus.com/ref/cstdio/scanf.html.

The matching string is full of regular expressions (regexps). You can read all you ever needed to know about regexps here: http://www.regular-expressions.info.


That should get you started.

- Tim
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dotnet doubt can any body clarify my doubt challa462@gmail.com ASP .Net 0 08-22-2012 06:02 AM
small doubt mohdriyaz04@gmail.com Cisco 1 02-25-2007 08:34 AM
small doubt mohdriyaz04@gmail.com Cisco 0 02-25-2007 06:49 AM
small doubt regarding ResolveURL SandyIsCool ASP .Net 2 12-15-2006 11:58 AM
doubt about doubt Bob Nelson C Programming 11 07-30-2006 08:17 PM



Advertisments