No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Hey everyone. It seem's this is the place to post anything we want (within reason) so I thought I would start a thread to find out what your favorite quotes are. I'll start with one of mine (though I have loads more): [B]People always turn away from the eyes of … |
|
Re:
As you travel to various states/countries...you'll find many people have different ways of disiplining their kids...some however, have gone overboard to the point of abuse. So do you think that it's wrong to spank kids and how far should the law of the land go in determining how much 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:
Good day. I recently had a conversation with a few parents. We were talking about how the morals have declined since they were kids. We can see that most kids today often tend to imitate what they hear(music) and see(movies/videos). Many people say that rap music for example should be … |
|
Re:
Yes i know, far from a serious topic and very much like the what are you listening to topic, but i felt that this should go here being as it would be pertaining to alcohol. this is where you mention... recipes i guess, or stuff you liked/just tried with some … |
|
Re:
i am doing a decimal to binary conversion and i have figure out how to do the conversion i just don't know how to make it cout so that it is in reverse.... i was also told that it could done in a while loop here is the code [code] … |
|
Re:
What are the most annoying things people around you do? One of my pet peeves: Some "know it all" old timer treats you like a little kid, just because you are young and he/she is not too bright. |
|
Re:
After searching around this forum for a bit, I found getch() in conio.h, this very closely matches the type of function I am looking for, but I don't want it to wait for the user to enter a key (It would be nice if it would just return -1 or … |
|
Re:
Hi, I want to create a simple exe(Without any supporting files...just a standalone exe) We dont have Matlab compiler I read in web that we can create exe in Matlab6.0,6.1 using C++ compiler. I have Matlab 7.1 and above. With the current Matlab version can we use C++ or C … |
|
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:
i want do this pro that looks like phone index but i have problems and i dunno how to fix this its console application - c++ source file plz help me quikly [CODE]#include<iostream.h> void main() { char names[10],n; double tel[10],tel1; int x,i,f=0,f1=0; cout<<"1 - add new rec"<<endl; cout<<"2 - search … |
|
Re:
How can i read in an array and then count the number of words that end in punctuation? Thanks for any insight. |
|
Re:
Everything compiles, but after I input I just get an infinite loop. Is there something I can do differently to make it not loop? [code] #include <iostream> #include <iomanip> #include <string> using namespace std; // Program Description // This program will calculate test results for // a set of test … |
|
[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:
I have been given an assignment to construct a program that reads in temperatures every hour for 24 hours, find lowest, highest, and average, then output the temps in a tabulated form. I'm semi-sure I can manage the computational and display part, but I am at a loss as to … |
|
Re:
can u please temme the string funtion which will eliminate the character in the desired position in C++. ie in (string.h) example i need to remove the 4th character in "SACRED" so the resultant array must be "SACED" without a blank space in the deleted postion. so the size gets … |
|
Re:
Hey, I'm not sure how to do this. I know how to convert a char into an int, getting the ascii value, or the numeric value, but that's not what I want to do. Basically I have a CHAR, I give it a value, usually a short sentence, then I … |
|
Re:
Hi, I should printout the value(s) of the "sum" of the end of the code... But i don't know...:( I am not good at C++. Please help! The code is not so difficult: it generates random 3 dimensional vectors, e.g. number of 5. Then makes a matrix of 3x3 from … |
|
Re:
Need help writing a program that reads a series of 5 integers and determines the largest and smallest. |
|
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:
when i use a dynamic 2d char array using pointers, i dont get any errors but the program is not executed correctly... //Pro to enter and display strings using dynamic 2d char array. [code=c] #include<iostream.h> #include<conio.h> void main() { char **v; int s; cout<<"Enter size :: "; cin>>s; v=new char[s]; … |
|
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. |