Write a C program that asks for your full name (e.g.Oliver T
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/18 17:19:13
Write a C program that asks for your full name (e.g.Oliver Twist),followed by your student ID num
Write a C program that asks for your full name (e.g.Oliver Twist),followed by your
student ID number (e.g.8888888) and then prints your full name and student ID number
in the following format:
Your name is:Oliver Twist.
Your student ID is:8888888.
以下是我编的程序
void main()
{
char name[40];
number[40];
printf("What is your full name?\n");
scanf("%s",name);
printf("What is your student ID number?\n" );
scanf("%s",number);
printf("Your full name is:%s\n,Your student ID:%s",name,number);
为啥电脑不能运行?
Write a C program that asks for your full name (e.g.Oliver Twist),followed by your
student ID number (e.g.8888888) and then prints your full name and student ID number
in the following format:
Your name is:Oliver Twist.
Your student ID is:8888888.
以下是我编的程序
void main()
{
char name[40];
number[40];
printf("What is your full name?\n");
scanf("%s",name);
printf("What is your student ID number?\n" );
scanf("%s",number);
printf("Your full name is:%s\n,Your student ID:%s",name,number);
为啥电脑不能运行?
number 输出的是 %d 是数字 而s 代表的字母
还有一点就是scanf函数 输入时必须是这样的
scanf("%s",&number);
&必不可少!
你也是西利的不?
你还交作业了?那个 我今天看课件 才发现 其实 name的那个 输入不应该用scanf 应该用gets 这样就可以输入 Oliver Twist中间的空格了!
还有一点就是scanf函数 输入时必须是这样的
scanf("%s",&number);
&必不可少!
你也是西利的不?
你还交作业了?那个 我今天看课件 才发现 其实 name的那个 输入不应该用scanf 应该用gets 这样就可以输入 Oliver Twist中间的空格了!
Write a C++ program that prompts for a number of rows from t
Write a program which asks the user for four numbers(Python)
Write a program which asks the user for four numbers and the
write your name with a
Write the letter that comes next in the series:a,c,e,g,翻译
Write a program that initializes array of 10 elements,Each e
关于C语言的一道题原题:Write a program that requests a type double numb
C语言字符串计数Write a program that reads an English statement from
求解jave题,急,write a program that will continu
写一个c 程序 Write a C program
write a C program C语言程序设计 在线等.拜托谢谢
Thanks for your help.A.it doesn't matter B.Never mind.C.That