Results 1 to 10 of 18
-
11th Jan 2012, 07:57 PM #1OPBannedWebsite's:
cityvillehelp.comTurbo C | Help Needed
Please see this program
I am not getting the desired output
PHP Code:#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
clrscr();
char pass[32], ch;
printf("Enter Password : ");
while(1)
{
ch=getch();
if(ch=='q' || ch=='Q')
break;
putchar('*');
}
printf("\n\n Password is : %s",pass);
printf("\n\n Displaying pass is diff way");
for(int i=0; i<=32; i++)
printf("%c",pass[i]);
getch();
}
I am getting this output
prateek Reviewed by prateek on . Turbo C | Help Needed Please see this program I am not getting the desired output :( #include<stdio.h> #include<conio.h> #include<string.h> main() { clrscr(); Rating: 5
-
11th Jan 2012, 07:57 PM #2OPBannedWebsite's:
cityvillehelp.comI am new in Turbo C
so don't use any new function or any other way
-
11th Jan 2012, 08:07 PM #3
Use this and it will work !
#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
char pass[32], ch;
printf("Enter Password : ");
while(1)
{
ch=getch();
if(ch=='q' || ch=='Q')
break;
putchar('*');
}
printf("\n\n Password is : %s",pass);
printf("\n\n Displaying pass is diff way");
for(int i=0; i<=32; i++)
printf("%c",pass[i]);
clrscr();
getch();
}
-
11th Jan 2012, 08:07 PM #4OPBannedWebsite's:
cityvillehelp.comthis is no joke @ bharat
-
11th Jan 2012, 08:09 PM #5
Do you look in anyway am joking ? and drop this attitude if you want to get helped by anyone .
-
11th Jan 2012, 08:10 PM #6MemberWebsite's:
mnchost.comIt is Printing the garbage value of variable pass
It is Printing the garbage value of variable pass..if you want to save password in variable pass,you should use scanf rather printf ..
currently ,the variable pass has no value /garbage value..so it is printing garbage value
-
11th Jan 2012, 08:10 PM #7OPBannedWebsite's:
cityvillehelp.comwhat attitude ??
in my last post
i asked for help and i saw ppl posting solutions in different functions ...
so this time i wrote no to use diff functions ..
u r taking in wrong way ..
-
11th Jan 2012, 08:11 PM #8OPBannedWebsite's:
cityvillehelp.comthanks for your help Techking
our teacher is teaching us the these new functions
so we have to use this function ...
and 2morow is my exam can't ask teacher also for help
edit --
any solution for this
as we are learning password program and we have to use this functions only
-
11th Jan 2012, 08:13 PM #9
-
11th Jan 2012, 08:14 PM #10MemberWebsite's:
mnchost.comso actually you wanna print the value of password in the screen ?
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Md5 generation on Turbo C
By prateek in forum Web Development AreaReplies: 5Last Post: 14th Feb 2012, 08:42 PM -
Turbo C | scanf() | strange
By prateek in forum Web Development AreaReplies: 14Last Post: 14th Feb 2012, 04:24 PM -
Turbo C | Weird and amazing
By prateek in forum Web Development AreaReplies: 13Last Post: 11th Feb 2012, 04:57 PM -
Turbo Leech - FREE Rapidleech Server With 8 Premium Account
By Faizann20 in forum Useful SitesReplies: 9Last Post: 2nd Dec 2010, 05:00 AM -
DEDICATED,ACTIVE NEEDED - Moderators/GM's Needed with BENEFITS
By robert in forum Community CooperativeReplies: 0Last Post: 18th Jul 2010, 03:36 PM
themaCreator - create posts from...
Version 3.17 released. Open older version (or...