49,761 Topics

Member Avatar for
Member Avatar for MarzenaM

:sad: Hi! I am a new member on DaniWeb site. And I need your help!!! I just started C++. I have project to do. The user must insert 4 integers. My main problem is that I may not input th digits seperately, but should input the number as a whole. …

Member Avatar for MarzenaM
0
103
Member Avatar for satish.paluvai

:sad: for comipiling the c/c++ program my editor is taking so much time for even it is 2 or 3 lines of code also .because of this i am unable to do more progrmas in a day. please help me to do it fast.i am useing tc editor

Member Avatar for ~s.o.s~
0
106
Member Avatar for SHWOO

I am writing a class character for an assignment. The class relates to a role playing game. I am getting an error which I don't understand. This error occurs in the default constructor of the implementation file. The dynamic help says that I created an object without creating a pointer …

Member Avatar for vijayan121
0
142
Member Avatar for jan1024188

hello, I am using Visual Studio 2005. When I write come C++ code (using iostream header) I get this error when compiling c:\users\jan\documents\visual studio 2005\projects\lesso\lesso\main.cpp(1) : fatal error C1083: Cannot open include file: 'ioestream': No such file or directory What should I do?

Member Avatar for jan1024188
0
116
Member Avatar for adnichols

I have been having difficulty trying to figure out how to read in data backwards. I get the idea, but have no idea how to properly code it since it is string data from a txt file. I was given the basic file to start with, but need to add …

Member Avatar for adnichols
0
129
Member Avatar for satish.paluvai
Member Avatar for vijayan121
0
79
Member Avatar for mathgirl

I need to create a decision tree that sorts any three integers in ascending order. This is what I did:[code=c] #include <iostream> using namespace std; int main() { int x, y, z; cout << "Enter three integers: "; cin >> x >> y >> z; cout << "Your three integers …

Member Avatar for WaltP
0
153
Member Avatar for Tales

Can someone help me with this? class Note{ private: [INDENT]double Freq; int milisec; [/INDENT]public: [INDENT]Note(); Note(double Fr, int ms){ [INDENT]Freq = Fr; milisec = ms; [/INDENT]}; ~Note(); [/INDENT]}; Ok... now I declare something like this: Note mynotes[MAX_NOTES]; is there a way to find out the array size? Thanks

Member Avatar for vijayan121
0
135
Member Avatar for crews87

i need to write a program that, There is a file of Beach Boys albums on the internet. Each entry has the following form: Name of album Artists from 1 to 20 names of songs (in cut number order) An album separator line is made up of equal signs Your …

Member Avatar for John A
0
85
Member Avatar for ramya_bugbuster

hi friends... i need code for notepad program... i'm trying to create a new notepad using c++... i cant complete that... i need code for database connectivity with this program for dictionary use in notepad program.. pls help me guys!!!!!!!!!! ---- ramya

Member Avatar for Lance Wassing
0
116
Member Avatar for teh_man

Hey All i am making a connect four game. I have done most of the code but need help in some bits 1) Which is how to code to see if there a win from vertical, horizontal or diagonal. - The Grid is 7 by 7. - I no idea …

Member Avatar for Lerner
0
133
Member Avatar for tjay

[COLOR=navy]I request to all the programers plzzzz help me out in this assignment.[/COLOR] [COLOR=#000080]its not for me but for my boss's doughter. i made a mistake by deleting it from the USB now she have to submit it within two weeks plz help me Since i have no background in …

Member Avatar for Lance Wassing
-1
393
Member Avatar for 7arouf

hi can anyone tell me what do we mean by: system( "PAUSE" ); and system( "CLS" ); in C++ thanks

Member Avatar for Lance Wassing
0
559
Member Avatar for Caped Sam

Hi, I'm very new to C++ and I am getting the following error when I try to compile: [Linker error] undefined reference to `CSerial::CSerial()' [Linker error] undefined reference to `CSerial::Open(char const*, unsigned long, unsigned long, bool)' [Linker error] undefined reference to `CSerial::~CSerial()' . . . etc. This is the code …

Member Avatar for satish.paluvai
0
370
Member Avatar for desijays

i was just going through some source code and came across the directive [code] #pragma comment( lib, "irrlicht.lib" ); [/code] I got mixed and confusing answers when i read about it in the vc++ documentation. Could someone please explain clearly the purpose or necessity for such code? I do have …

Member Avatar for desijays
-1
157
Member Avatar for Duki

Hey everyone, this is a big one. The question has asked that I define functions and then write the function main to test the functions I wrote. I keep getting the following error at my first cout in main: error C2679: binary '<<' : no operator found which takes a …

Member Avatar for Duki
0
578
Member Avatar for faiz

plz help me in debugging a program(urgent).it's the implementation of ascending and descending priority queues using array.i've made a program but it is not functioning properly.the problem is that when i initialize the array in the class the ascending priority queue stores only zeros and the descending priority queue is …

0
53
Member Avatar for kenjutsuka

[code] void entry(int itemsales1[255][255], int itemcount1, string itemnames1[255]) { int count; char *days[]={"Monday", "Tuesday", "Wednesday", "Thursday", "Friday"}; cout << "Enter item's name: "; cin >> itemnames1[itemcount1]; for (count = 0; count < 5; count++) { cout << "Enter " << days[count] << " sales: "; cin >> itemsales1[itemcount1][count]; } return(itemsales1, …

Member Avatar for kenjutsuka
0
92
Member Avatar for ntredame

I can't figure out what I have wrong in teh following program. I am trying to count total characters, vowels, and consonants. I have even worked through it with a friend and neither of us can figure it out. The code follows: [code=cplusplus] #include <iostream> #include <string> #include <cstring> using …

Member Avatar for ntredame
0
4K
Member Avatar for yaya_star

i need a code, that generate a 100 array of size (10) and 100 array of size of(50), and 100 array of size of(100), and 100 array of size of(200),with random numbers, then for the 1oo array of size(10), in log file then for each array of the 100 array …

Member Avatar for jan1024188
0
255
Member Avatar for ajaxjinx

Hi, I am making a small software. As a part of the Command Line Interface I am supposed to include the "tab help facility" .Incase the user is typing a command and in between he presses the Tab key, the software should display all the avavilable commands. I am unable …

Member Avatar for vijayan121
0
967
Member Avatar for yaya_star

code of genertaing 100 arrays of size 10 with random numbers in it? in c++

Member Avatar for stymiee
0
69
Member Avatar for kevinmscs

I have this class: [code] class Pizza{ protected: string desc; public: Pizza(){ desc = "unknown pizza"; } virtual string getdesc(){ return desc; } virtual double cost(){ return 0; } }; [/code] And one of its subclass: [code] class Small: public Pizza{ public: Small(){ desc = "Small"; } double cost(){ return …

Member Avatar for thekashyap
0
137
Member Avatar for guy40az

Does any one know of a complier that supports the 80 bit long double?? Or do you have any idea how to get one on VC++ 6.0 Thanks

Member Avatar for John A
0
219
Member Avatar for Duki

Hey all, I'm doing hw, and I did a desk-check for this program and got completely different answers than that of the computer when the program was put into the compiler. The question says to consider the function `defaultParam` void defaultParam ( int u , int v = 5 , …

Member Avatar for Duki
0
103
Member Avatar for Tales

I want to make a query in C++ using the MySQL++ API. Here is my problem, in PHP for example I make something like this: $query = "SELECT * FROM table1 WHERE id = " . $value; In C++ I can't do that. I need a way to make $value …

Member Avatar for Ancient Dragon
0
107
Member Avatar for B.Y

Well, I happened to download Dev C++ on my laptop today ... I jus wrote a simple "Hello World" program .... but when I compile & run ... compilation is successful but the result window flashes & disappears ... Can anybody plz help me with this?????????? Also, how can I …

Member Avatar for ~s.o.s~
0
94
Member Avatar for guy40az

When you output data to the screen do you recommend using cout or printf, I must admit when I first starting using C++ last week I really liked cout. Now I like printf better, It seems easer to format the output like you need it. I am not really sure …

Member Avatar for ~s.o.s~
0
514
Member Avatar for mrjoli021

I have an Excell file that I need to read to be able to bring the cells into a struct. I have tried using fstream and I get garbage. How can i go about this??

Member Avatar for iamthwee
0
90
Member Avatar for amelie

Hi All,I'm using a C++ client and server of different language.Using sockets for communication.After 10 - 15 hours of successful exchange of information a problem has occurred.Client seemed to send messages to server, but server didn't respond.After few hours, the client was killed.Suddenly, the server started dumping the messages towards …

Member Avatar for amelie
0
188

The End.