Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,412 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,458 people online right now. Registration is fast and FREE... Join Now!




is it working?

 
Reply to this topicStart new topic

is it working?, if we enter a name the letters will subsequently drop vertically and t

avinandanaot
15 Oct, 2008 - 01:54 AM
Post #1

New D.I.C Head
*

Joined: 14 Oct, 2008
Posts: 13


My Contributions
cpp

#include<stdio.h>
#include<conio.h>
#include<dos.h>
#include<time.h>
#include<string.h>
#include"graphics.h"
main (void)
{
static char name[80];
int a,b,c;
clrscr();
printf("Enter your name:");
name=gets(stdinput);
for(a=0;a<80;a++)
{
for(b=1;b<=25;b++)
{
if(name!=NULL)
gotoxy(a+1,cool.gif;
printf("%c",name[a]);
delay(800);
gotoxy(a+1,cool.gif;
printf(" ");
}
else
return;
}
}
getch();
cprintf(" An Avinandan Exclusive");
getch();
}


** Edit ** code.gif
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Is It Working?
15 Oct, 2008 - 01:55 AM
Post #2

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,462



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
.... come on. Learn how to post. You type in the BIG LARGE BOX... words, right? You know how to communicate?
User is online!Profile CardPM
+Quote Post

avinandanaot
RE: Is It Working?
15 Oct, 2008 - 01:58 AM
Post #3

New D.I.C Head
*

Joined: 14 Oct, 2008
Posts: 13


My Contributions
please tell me whether the program is working on your compiler
User is offlineProfile CardPM
+Quote Post

no2pencil
RE: Is It Working?
15 Oct, 2008 - 02:00 AM
Post #4

My fridge be runnin OH NOEZ!
Group Icon

Joined: 10 May, 2007
Posts: 6,462



Thanked: 66 times
Dream Kudos: 2425
Expert In: Goofing Off

My Contributions
You obviously tried to ask a question, but you typed it into the subject ... & it got cut off.

Can you please give us some detail on this code? What is it doing? What isn't it doing? Are you getting errors?


Also, you may want to change
CODE
#include"graphics.h"  

to
CODE
#include <graphics.h>  

That is, unless you are using a local header file, in which case I'll answer your question, no, it will not compile missing that header file.
User is online!Profile CardPM
+Quote Post

AmitTheInfinity
RE: Is It Working?
15 Oct, 2008 - 02:06 AM
Post #5

C Surfing ∞
Group Icon

Joined: 25 Jan, 2007
Posts: 1,025



Thanked: 35 times
Dream Kudos: 125
My Contributions
your inner for loop increments the variable which you used as value on Y-axis. That might be the reason why you are facing the issue of characters displayed vertically dropped.
User is offlineProfile CardPM
+Quote Post

avinandanaot
RE: Is It Working?
15 Oct, 2008 - 02:08 AM
Post #6

New D.I.C Head
*

Joined: 14 Oct, 2008
Posts: 13


My Contributions
thank uu
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 12:27PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month