I'm trying to read a line into a string...
In C++, it will be using cin or scanf...
how about in Java?
eg.
I've created a String call myString
then i need to read input from user...
how do I do ...
http://www.experts-exchange.com/Programming/Languages/Java/Q_10030561.html
Zones:
JavaDate Answered: 12/17/1997 Grade: C Views: 0
Can any one explain in detail of how format specifier in scanf function work? Especially when use scanf("%[^\n]",&AAA); I wonder is that scanf waiting for cariage return and then after it get the c...
http://www.experts-exchange.com/Programming/Languages/C/Q_10084593.html
Zones:
CDate Answered: 09/29/1998 Grade: C Views: 0
:
:
char a;
:
:
scanf("%c",&a);
The above will of course read in a char variable but how to check for instance one key in more than 1 character eg. 'ab'. If he enters more than 1 character,...
http://www.experts-exchange.com/Programming/Languages/C/Q_10210825.html
Zones:
CDate Answered: 02/23/2002 Grade: A Views: 0
I'm a new C programmer and I'm having trouble with the way C handles strings.
Say I want to be able to hold a string with a space in it. Like 'char street_address[80];' -- of course you are go...
http://www.experts-exchange.com/Programming/Languages/C/Q_20408910.html
Zones:
CDate Answered: 11/29/2003 Grade: A Views: 0
When i want to input my students name it wont let me enter spaces cos it just buggers up!!
I dont know whether i have to change the scanf function or sometin???
printf ("Enter students name: ...
http://www.experts-exchange.com/Programming/Languages/C/Q_20607563.html
Zones:
CDate Answered: 02/07/2004 Grade: A Views: 0
Hi,
i want to write a user interactive program in C#.
How can i get the program to accept values from user.
What should we use in C# in place of "Scanf in case of C" or "Cin in case of C++"
...
http://www.experts-exchange.com/Programming/Misc/Q_20810021.html
Zones:
ProgrammingDate Answered: 12/02/2003 Grade: B Views: 93
I read about a C codes where I don't understand the meaning of " %[^\n]" as below:
----------------------------------------
typedef struct {
char name[80];
char street[80];
char ci...
http://www.experts-exchange.com/Programming/Languages/C/Q_20854162.html
Zones:
CDate Answered: 01/18/2004 Grade: A Views: 0
I am using Builder and have a problem getting data from the VCL, I want to do something like this, strcpy(name,Edit1->Text); this does not work but this does Edit2->Text = Edit1->Text; I need to in...
http://www.experts-exchange.com/Programming/Languages/CPP/Q_10110293.html
Zones:
C++Date Answered: 12/21/1998 Grade: A Views: 0
Hi,
How to use the scanf() to get input from the user at the DOS environment?
I do like this:
char temp[30];
scanf("%s", &temp);
printf("Uesr Input =%s\n",temp);
-----------------...
http://www.experts-exchange.com/Programming/Languages/C/Q_10422656.html
Zones:
CDate Answered: 08/10/2000 Grade: C Views: 0
This is probably a dumb question but I haven't quickly found the answer. I want to use scanf/fscanf with the format string and the ability to stuff values into variables, but instead of a file/str...
http://www.experts-exchange.com/Programming/Languages/C/Q_10619483.html
Zones:
CDate Answered: 07/12/2000 Grade: A Views: 0