Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 21-10-2007, 03:34 PM   #1 (permalink)
Apprentice
 
hrushij's Avatar
 
Join Date: Nov 2006
Posts: 76
Exclamation proble with turbo c complier..!


This code works fine on borlaand c++ 5.0 but it scans only first object in turbo c++ IDE
what is the problem with this..???


#include <stdio.h>
#include <conio.h>

struct student
{
char name[10];
int no;
float marks;
};

void main()
{
struct student s[5];
int i;
for(i=0;i<5;i++)
{
printf("Enter Name : ");
scanf("%s",s[i].name);
printf("Enter roll No. ");
scanf(" %d",&s[i].no);
printf("Enter Marks : ");
scanf(" %f",&s[i].marks);
}
getch();
}

thanks in advance..
__________________
HHJobanputra
hrushij is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-10-2007, 01:18 AM   #2 (permalink)
In The Zone
 
ayush_chh's Avatar
 
Join Date: Nov 2005
Location: Bangalore
Posts: 487
Default Re: proble with turbo c complier..!

what do you mean that it scans only first object??? is it that it scans only for one time and exits...
__________________
eXPerience is what a MAN learn's fROM.....
ayush_chh is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE Proble, slash_89 Hardware Q&A 2 15-09-2007 09:16 AM
Complier with Notepad++ Thor QnA (read only) 9 10-05-2007 05:02 PM
Masm Like Complier in Linux ? vinyas Open Source 6 28-09-2006 06:27 PM
linux big proble................:o :wink: vinaypatel Open Source 3 15-07-2005 02:14 PM

 
Latest Threads
- by clmlbx
- by tkin

Advertisement




All times are GMT +5.5. The time now is 05:30 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2