No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
36 Posted Topics
Re: If the mission is tough we will achieve it.If the mission is impossible it will take some time. | |
Re: NO I am a kid who has been to a missionary school & I mst say RL looser teacher tend to spank. And it also puts the life of spanker on risk as one of my teracher's bike was burnt down :) Now in a diff. school where spankin is … | |
I have posted the update member function as many the 12th students can copy my project. I want to open the binary file compare the roll numbers with the inputted roll if it matches the object of the file should be overwritten with a new object i.e *X. [code] void … | |
I have to make a project today itself on turbo c++ :- It should have OOP. Classes. and use of database i.e I/O on text files. Can anyone suggest a unique topic and I will be asking help related to the same here =) | |
Can anyone explain me pointers to 2D array ?? I have to input array of string using and read them in another function but I am having a REALLY TOUGH time with pointersan anyone explin it to me or refer good guide to pointers ?? I am using borlnd c++ … | |
#include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> class array { private: int A[20]; int ele; public: void input(); void display(); void bub_sort(); void insert(); void del(); }; void array :: input() { int i;char ch[20]; for(i=0; ch[0]!='x'; i++,ele++) { gets(ch); A= atoi(ch); } ch[0]=0; ele=(ele-1); return; } //======================================================================== void array :: display() { … | |
Guyz I Don't want to write another array function using VOID I wanna do it using pointers for the extra grades...... can ny one give me a clude or just6 a sample code snippet on how to return a 2-D array ?? I have to fing sum of upper half … | |
Re: BAN RAP ? NO WAY!!!! Such a govt. will be upthrown within a day. Or the city jail will be full of teens. tsounds like the song "Hip - Hop police" where they ban hip hop in the US. | |
Re: road side Lemonade of Delhi. Dunno what they put in it which makes it so different from the homemade ones. | |
Re: keep on dividing number till it gives true value. while( n%10 => 0) { conversion code } | |
Re: annoying things that people do :- gnawing snoring farting (in public) chicks laughing for no reasons policy of appeasement wearing absurd colored goggles wearing pole like heels not believing that ur honest "ladies first" adam ate the apple first. etc etc etc. | |
Re: ok so you want user to input and if theres no input for a while the input loop to close ??? I will search for it..... for now I have the idea to use getch in a loop, and set some timer..... I am googleing now for time.h .Will post … | |
Re: which compiler has mathlab ????? we have <math.h> is it obsolete ? | |
How to set font style color and bg color; the online examples are very tough ; can ayone give me a easy and understandable code ?? | |
so far I ask user for number of terms : [code=c++] cout<<"Enter the number of therms in the array \n\n"; cin>>x; for(i=0; i<x; i++) { cin>>arr[i]; } [/code] But It looks preety non-user friendly, I wanna input it just like we enter a string. We the user should hit shift … | |
Re: [QUOTE] case 1: addrec;break; case 2: sertel;break; case 3: sername;break;[/QUOTE] they supposed to be written like this sertel(); | |
Re: strlen for counting nuber of words : for reading and counting I use. for( i=0 ; a[i] != '\0' ; i++) { cout<<a[i]; length++; } | |
[QUOTE]char str[] = "SACRED"; strcpy( &str[2], &str[3]);[/QUOTE] what the single & do ?? is it a typo of && ?? and what bout the other elements ?? won't the str[3] be repeater teice i.e SARRED ? | |
Re: ask the user for which hour is it cin>>x; ask the temp. cin>>y store in a array arr[x-1]=y; or use a function that takes time controlled in put if there is any. try to get more info. on <timer.h>. | |
Re: is the s.erase user defined fuction ?? coz I can't find it anywhere in c++ help. | |
Re: [code=c++]/* Wap to input a string and calculate its length */ #include<iostream.h> #include<conio.h> #include<stdio.h> #include<string.h> void main() { clrscr(); int len=0,i; char str[50]; cout<<"**** Atishay c++ programming LTD. ****" <<endl<<endl; cout<<"Input a string (word)"<<endl; gets(str); for(i=0;str[i]!='\0';i++) { len++; } cout<<"Your entered string has length of "<<len<<endl; getch(); }[/code] | |
Re: how bout this one : [code=c++]void cout_mat(int matrix[20][20],int r, int c) { for(int i=0; i<r ;i++) { cout<<endl<<endl; for(int j=0; j<c ;j++) { cout<<" | "<<matrix[i][j]<<" | "; } } }[/code] It gives out put in somewhat a tabular form. | |
Re: use selsort [code=c++]#include<iostream.h> #include<conio.h> void sel_sort (int array[20],int x) { int i, j, first, temp; for (i= x - 1; i > 0; i--) { first = 0; for (j=1; j<=i; j++) { if (array[j] < array[first]) first = j; } temp = array[first]; array[first] = array[i]; array[i] = temp; … | |
The programme you guyz helped me with for the past 3-4 weeks is done.......It was done last week but I had exams. hrez the code :) you guyz can execute and see it :P Thanx ancient dragon and nieke [code=c++] // password fuction #include<iostream.h> #include<conio.h> #include<stdio.h> #include<process.h> #include<string.h> int password() … | |
alingment : [QUOTE]DOTS REPRESENT SPACES DESIRED OUTPUT Item................................................Price Burger..............................................100 pizza.............................................. ..50 patty................................................ 25 coke.............................................. ..10[/QUOTE] OUTPUT BY PROG. [code=c++] Item Price Burger 100 pizza 50 patty 25 coca-cola 10[/code] DISPLAY CODE [code=c++]for(k=0; k<no; k++) { cout<<endl; for(m=0; arr[k][m]!='\0'; m++) { cout<<arr[k][m]; } cout<<" "<<price[k]; }[/code] Interger array input without asking … | |
Help me with the J loop itz suppose to terminate on hitting enter to pass on loop to the outer loop for incrementing row. I tried a[i][j]!=(char)13 but it failed. [code=c++]#include<iostream.h> #include<conio.h> void main() { clrscr(); int no=0,i=0,j,k,m,price[20]; char arr[20][50]; cout<<" ================================================================="<<endl; cout<<" Food on the run Restaurant "<<endl; cout<<" … | |
How to make c++ fullscreen (sort of) in vista :- [URL="http://img167.imageshack.us/img167/4783/45870184ss2.jpg"]http://img167.imageshack.us/img167/4783/45870184ss2.jpg[/URL] Your screen should look like this :- [URL="http://img518.imageshack.us/img518/6136/sshot3td7.png"]http://img518.imageshack.us/img518/6136/sshot3td7.png[/URL] | |
Re: you haven't inputed a 2D array [code=c++] char arr[20][20] [/code] thats the syntax for a 2D array. | |
Can anyone help me wiht the prog. arrange a 1D array in ascending order. No need for the prog. code just explain me the logic. | |
Re: your exe is automatically stored in ur working folder after running the program ..... double click it and it shuld run. | |
[CODE]corr[8]="pizzaboy"; error-- cannot convert char* to char corr[]="pizzaboy"; error-- char has zero values corr[0]="p" corr[1]="i" corr[2]="z" ----- syntax error corr[8]='pizzaboy' ------- char const can have 2 chars [/CODE] Is there any way to input:'( :'( :'( :'( :'( | |
My project is to build a hotel menu and billing program. The problem is I have to use user defined functions to do it. 1st Function [code=c++]int password(char usr_name[8], char pwd[]); { int j=0,k=0,i=0,m=0; corr[8]=pizzaboy; for(i=0;usr_name[i]!='\0';i++) { if (usr_name[i]=corr[i]) n=1; } else n=0; po[5]=qwerty; for(j=0;pwd[j]!='/0';j++) { if (pwd[j]=po[j]) m=1; else … | |
Guyz I have again got a problem with functions. [ICODE]"" Write a function to input matrices"" [/ICODE] Or how can I input using fuctions ?? is it possble ?? so far I have developed a few lines. [CODE] //fuction to input a 2D-array. int multi_array(int r , int c)//r is … | |
Re: use getch in the end.... though getch is used to input. cout<<"c++ is cool"<<endl; getch(); // freezez the screen till a key is pressed. | |
I am making a quiz show in C++ I need help in storing the answers of a quiz in a array like [QUOTE]cout<<"Q.1 Who is Known as the lady with lamp ?"<<endl<<endl; cout<<"A. Sonia Gandhi "<<"B. Florence Nightngle"<<endl; cout<<"C. Mother Tersa "<<"D. Madame Rozario"<<endl<<endl<<endl;[/QUOTE] So how do I Input the … |
The End.