/* sscanf example */
#include <stdio.h>
#include <iostream>
using namespace std;
int main ()
{
float f;
int i;
char * the_string = "foo -3.6 fum dum 17";
int r = sscanf(the_string, "foo %f fum dum %d", &f, &i);
cout << f << " " << i << " " << r << endl;
return 0;
}
serkan sendur 821
Postaholic Banned
Narue 5,707
Bad Cop Team Colleague
serkan sendur 821
Postaholic Banned
serkan sendur 821
Postaholic Banned
Narue 5,707
Bad Cop Team Colleague
iamthwee
commented:
Is it just me or is there a special sexual tension between you two? +18
Comatose 290
Taboo Programmer Team Colleague
serkan sendur 821
Postaholic Banned
Narue 5,707
Bad Cop Team Colleague
serkan sendur 821
Postaholic Banned
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.