383 Posted Topics

Member Avatar for Majestics
Member Avatar for jephthah
0
111
Member Avatar for Ryano24
Member Avatar for Majestics
0
100
Member Avatar for yarita
Member Avatar for dv1r

[url]http://www.cprogramming.com/tutorial/cfileio.html[/url] Read It .It will clear every thing.

Member Avatar for dv1r
0
130
Member Avatar for ecorg
Member Avatar for wsn

[Code] printf("%c%c",s[0],s[1]); [/code] It will print only first two characters.

Member Avatar for wsn
0
99
Member Avatar for awoc

For calling print input and print area you need one int and two double . Syntax will be like this [Code] printarea(i,j,k); //Where i is taken as int j and k are taken as double [/Code]

Member Avatar for awoc
0
88
Member Avatar for leverin4
Member Avatar for hapiscrap

Already mentioned you have to use int main() because you have given "return 0" at the end of main.No coding tags ,it puts bad impression.

Member Avatar for Majestics
0
137
Member Avatar for Latent12

Looks very complicated .. It is better to use switch statement. Y you have used iomanip header file . Also tell me Y You have used Conio header file.Using header files without there usage gives a bad impression.

Member Avatar for Majestics
0
227
Member Avatar for sbv

In avg marks you take all the values and divide by the total number , In that different values will show different percentage . So it means no direct method to obtain correct percentage.

Member Avatar for Majestics
0
106
Member Avatar for tvisha

No main function , If you don't write main function then how can you use your program.Complete your main function then this program will start working.

Member Avatar for Majestics
0
659
Member Avatar for baku

>> Warp your codes in coding tags >> It is c++ forum not a c forum >> i has a datatype int , it should be char >>Use ascii codes when you use char

Member Avatar for Majestics
0
117
Member Avatar for CoolGamer48
Member Avatar for sarehu
0
76
Member Avatar for Jennifer84

Read this article it will help you "http://notfaq.wordpress.com/2006/08/30/c-convert-int-to-string/"

Member Avatar for Jennifer84
0
193
Member Avatar for Draghen

>> Try to use Codes in Coding tags >> Try to use cout statement out of looping statement . [Code] #include<iostream> #include<conio> int main() { int arr[10]; int i,j,sum=0,flag; cout<<"Enter the Integers : "; for(i=0;i<10;i++) cin>>arr[i]; //Loop Takes ten integer for(i=0;i<10;i++) { flag=0; // Flag is assigned 0 intially for(j=i+1;j<10;j++) …

Member Avatar for Majestics
0
2K
Member Avatar for Majestics

I am confused in tellg funtion can any body tell me its syntax also for seekg();.

Member Avatar for Majestics
0
105
Member Avatar for Majestics

I HAVE AN ASSIGNEMENT IN WHICH I GET STUDENT DATA AND SAVE IT A SEPARATE TEXT FILE , THE MAIN PROBLEM IS THAT IT TAKE ALL THE VALUES BUT DONOT STORE VALUE OF SEM,ADD-NO AND BATCH . KINDLY PLEASE HELP ME . Coding is :- [code=cpp]#include<iostream.h> #include<conio.h> #include<fstream.h> struct stud …

Member Avatar for Lerner
0
57
Member Avatar for Majestics

I have a string , i want to give it a blink effect ... is there any specific function for it .

Member Avatar for arpit_yadav
0
143
Member Avatar for wannabeIT

use system("pause") or use getch(); before return so it will wait for carriage return and you can see the output .

Member Avatar for Lerner
0
123
Member Avatar for novice420
Member Avatar for bhoot_jb
Member Avatar for fiz hafiz

One of the main problem is you are using constant more than int range , use float or long for it float matric; Or long matric;

Member Avatar for Majestics
0
173
Member Avatar for yarita
Member Avatar for Majestics
0
160
Member Avatar for amitahlawat20

int i=0; //Temp var char *p=new char[i]; // p having zero length while((*p=getche())!='\r') // getting character i++; // increment according to need I think this will help you!

Member Avatar for Narue
0
96
Member Avatar for heidigjr
Member Avatar for WaltP
0
100
Member Avatar for Jennifer84
Member Avatar for Lensva

Actually You are calling a recursive function .... it will continue until value of j becomes 1

Member Avatar for Lensva
0
99
Member Avatar for barbiegirl

[code=c] #include<stdio.h> #include<stdlib.h> #include<conio.h> #define n 4 void main() { //variables float table[n]; int no=1,i; float x=0; float d; clrscr(); //program for (i=0; i<n; i++) { printf("Enter the number %d : ", i); scanf("%f", &table[i]); } for (i=0; i<n; i++) { if(x==0 && i!=0) no=0; else x=table[i]; } if (no==0) …

Member Avatar for barbiegirl
0
195
Member Avatar for Majestics
Member Avatar for Majestics

i Dont have window.h header file , can i make a programme for copying picture from one drive to another?Any one help me in interpets . I am new using c++ so please please help.

Member Avatar for Nick Evan
0
123
Member Avatar for Majestics

Can Any One Tell Me How To Handle Registers In C ,while We Are Dealing With Mouse Handling ... Can Any One Explain With Some Example.

Member Avatar for Ancient Dragon
0
82
Member Avatar for Majestics

The End.