- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
3 Posted Topics
I know the function textcolor() included in conio.h in borland compiler. but this function is not present in vc++. also if you can provide me the text formatting functions,or header file containing it. i will be very thankful.......so please help me......thanks
following code will surely solve your problem [code] #include <stdio.h> #include <conio.h> void main() { int i,j; clrscr(); /*change value of of 'i' & get as much stars u want*/ for(i=1;i<8;i=i+2) { printf("\n\n"); for(j=0;j<i;j++) { printf("*"); } } getch(); } [/code]
you just have to make following change in your structure.....your progam will surely run.... you can use "getch();" to make output wait till you press any key... it is included in <conio.h> hope it will work.... [code] struct student { char name[10]; char dep[10]; char course[10]; int roll; int year; …
The End.
abhijeetcn