typographical error.... chat is char.....
Type: Posts; User: rothj0hn
typographical error.... chat is char.....
wer can i get free download of turbo c++ version 3.1 or 3.0...
nid help...
#include<stdio.h>
main()
{
chat num[4];
int a,b,c,d;
printf("input num");
what is the function of strlen?!
and before using it do i need to do?
#include<string.h>????
gets() vs scanf?!
which is better?
how to use gets()?
some example pls...
nid help in...
char str[6]
input is hello...
so it will be like this
[h][e][l][l][o] ryt?
how can i print each element seperately?
print h...
then e. then l. then l. then o......
char num[4];
int a,b,c,d;
printf("enter a four digit nuber:");
scanf("%s",num[4]);
a=num[0];
b=num[1];
c=num[2];
d=num[3];
printf("%d",a);
printf("%d",b);
actually im trying to use a gotoxy(x,y)
bunch of gotoxy until i formed a number figure made of ****...
but i doubt that my program wont be flexible..
coz ive only made a number figure made of...
but how will it print **** that will form look like the number i input?
how can i solve this problem...
nid to input a number and will output **** that will form look like the number i input..
304=** will be look like 304
#include<stdio.h>
#include<conio.h>
main()
{
char month;
clrscr();
printf("input month");
scanf("%s',month);
if (month==january)
printf("yes");
#include<stdio.h>
#include<conio.h>
main()
{
char month[12];
clrscr()
printf("input month:");
scanf("%s",&month);
if (month=="january")
printf("new year"0;
in my case i need to convert an input string to a #..
for example input a month..
printf("input month");
scanf("%s",month");
if (month==january)
month=1;
problem is i need to input an integer and i must produce an out of it in word form...
example:
input=1
output=one
input=300
output=three hundred
pls help me...