48,986 Topics

Member Avatar for
Member Avatar for Ana_Developer

I cant find the error here.. [CODE]#include "stdafx.h" #include <deque> #include <list> #include <queue> #include <iostream> #include <fstream> #include <string> #include <sstream> #include <set> using namespace std; char file_name[15]; char links_file[15]; char alg[15]; char with_list[15]; char new_name[15]; int depth; long idstart,idgoal; class Action { public: long start_node; long end_node; int …

Member Avatar for Ana_Developer
-1
224
Member Avatar for Mz3g

Hi guys, I'm new to C++ and I'm doing a small project, I got a little problem with reading a specific number from a text file. for example: size 2 3 I want my program to read the 2 to a and the 3 to b. Also I want the …

Member Avatar for Mz3g
0
273
Member Avatar for clutchkiller

Is this API striclty for 3d applications including sound and modeling etc.... or can you program windows forms as well? Just wondering

Member Avatar for VilePlecenta
0
85
Member Avatar for RehabReda

hi guys i have a little question i don't understand this line typedef [COLOR="Red"]basic_string <char>[/COLOR] string ; i have searched but can't get it any one can help ur help will be appreciated

Member Avatar for mrnutty
0
96
Member Avatar for sid78669

As part of a homework, I created the following Puzzle Class and it works. The thing is, it only work if i put the class in q2.cxx, the main code file. If I place them in three seperate files, I get hell load of problem. Can anyone please look at …

Member Avatar for Ancient Dragon
0
147
Member Avatar for b.bob

Hi, I am a newbie to C++ (and programming in general) I have the following: [CODE] char* fOutMsg; strcpy(fOutMsg, "03DS2"); [/CODE] -------------------------------------------------------------- in another place: [CODE] char fPpn[32] = {0}; strcpy(fPpn, " "); [/CODE] ------------------------------------------------------------------- in another location: [CODE] char fStr; struct* ioEx; strcpy(fStr, W2A(ioEx->authcode)); [/CODE] --------------------------------------------------------------------- more: [CODE] char* …

Member Avatar for dusktreader
0
348
Member Avatar for Dani

[B]ADT.h[/B] [code] struct process { int pid; // process id char* file_name; // file name of the process to be run int cpu_time; // amount of time the process needs with the cpu int request_priority; // priority from 1-5 (higher is better) int pr; // adjusted priority rate }; /**********************************************************************/ …

Member Avatar for Fbody
0
1K
Member Avatar for 28daniela28

I have the following code ( I'm creating a binary tree and then I want to print the values on it's leafs) but when I'm running it, it never enters in that if from the parcurgere function. What have I done wrong? [CODE]#include <iostream> using namespace std; class node { …

Member Avatar for 28daniela28
0
134
Member Avatar for walter clark

I have about a year of full time experience with Visual C++ 2008. I am productive but I'm still frustrated with the debugger. Is this the right forum to get help with the debugger? My biggest problem is not seeing any value when the variable is deeply burried within an …

Member Avatar for walter clark
0
121
Member Avatar for WolfPack

Is it possible to read data from a binary file to a C++ class using [inlineCODE]istream::read[/inlineCODE]? I know it can be done for structures, but I couldnt do it for a class. [Edit] Want code? [CODE]#include <iostream> #include <fstream> class BITMAPFILEHEADER { private: char type[ 2 ]; // Magic identifier …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for nayadin

1) The class interfaces do not follow good object-oriented design principles, which make them bug-prone and hard to extend/subclass properly. Improve the object-oriented design of the classes. 2) The class interfaces are almost completely undocumented. Include proper interface documentation in the .h-file. 3) There seems to be a bug somewhere, …

Member Avatar for VilePlecenta
-1
348
Member Avatar for cnidhi007

Hi! I want to read a dbf file in c/c++/vc++. Which platform would be ideal? And how should I go about it? Regards, Nidhi

Member Avatar for Salem
0
173
Member Avatar for iammfa

since few minutes I tried practice "static_cast" to convert from short variable to int variable, I wrote this trivial program to print the variables before using static_cast and after using static_cast in console screen, but the variable not converted..! [CODE] //EGYPT population | static cast #include <iostream> using namespace std; …

Member Avatar for mrnutty
0
88
Member Avatar for Evan M

I've been messing around with c++ and attempting to fully understand certain behaviors. Given the following program: [code=C++]#include <iostream> class Test { public: Test(); ~Test(); void func(); }; Test::Test() { std::cout << "Constructor" << std::endl; } Test::~Test() { std::cout << "Destructor" << std::endl; } void Test::func() { std::cout << "Deleting …

Member Avatar for Evan M
0
103
Member Avatar for tanu4m

Create student class to store id, name and phone number. Derive this class as report to store id, name, phone number, mark1, mark2 and mark3. Write constructor, destructor and methods to take data and print data. Also write a method to print total mark.

Member Avatar for Ancient Dragon
-1
86
Member Avatar for downtimedk

Hi Guys. I made a WIN32 program in VS C++ Enterprise 2008. It works fine but I need a good example on how to implement a file open function via my menu. Anyone have a good example? Kind regards Kurt

Member Avatar for Ancient Dragon
0
192
Member Avatar for nick30266

i open the program go to [B]file [/B]and when i press [B]open[/B] the program stop working saying that the program has stopped and then close. everything else is fine. i installed the program again but the same. the same program work without a problem in other computers. i think it …

Member Avatar for Ancient Dragon
0
63
Member Avatar for mimis

Hi, I want to make a global 2D array ( i mean outside of the main function), so it will be available from all the functions. But my problem is how can i read it's size from the keyboard? If anyone know, plz help me. Thanks in advance.

Member Avatar for Fbody
0
93
Member Avatar for mmasny

Would you be so kind and help me solve this problem? [code=C++] #include <string> using namespace std; class Okno { protected: int x1,y1,x2,y2; string nazwa; public: }; class NieDesktop : public Okno{ private: Okno& ojciec; NieDesktop(const NieDesktop&); }; class OknoWlasciwe : public NieDesktop{ OknoWlasciwe(const OknoWlasciwe&); public: OknoWlasciwe(Okno&,int,int,int,int,string); }; OknoWlasciwe::OknoWlasciwe(Okno& _ojciec,int …

Member Avatar for mmasny
0
301
Member Avatar for lipun4u

[QUOTE]The static_cast operator can explicitly convert an integral value to an enumeration type. If the value of the integral type does not fall within the range of enumeration values, the resulting enumeration value is undefined.[/QUOTE] Can somebody explain the above stuff with example ??

Member Avatar for lipun4u
0
72
Member Avatar for VilePlecenta

On the left is the dialog ran from VC++ On the right is run from my app [url]http://img208.imageshack.us/img208/2019/wonder.png[/url] Why the version ran from my app lacks is: Combo Box Options Color, Design is from the 90's style

Member Avatar for VilePlecenta
0
178
Member Avatar for shizu

Hi All.. I am using Microsoft Visual C++ 6.0 to build a software.. during software running, sometimes will happend application error, and force to shutdown the program. The application error detail like below.. Date : 1/25/2010 Source : Application Error Time : 2:14:09 PM Category : None Type : Error …

0
53
Member Avatar for Jerail

... and I don't know why. I'm just getting back into C++ programming after years of not using it at all. I tried to make a simple program that - Creates 10 random numbers between 0-99 and prints them - Categorizes each number by range - prints the sum of …

Member Avatar for Jerail
0
421
Member Avatar for ttunstall07

This is the problem im working on: *Write a program that has nested loops *First, write the inner loop -Use “for” loop to display Hello two times *Second, write the outer loop -Use “do while” loop to display the inner loop three times -Before the output of inner loop, you …

Member Avatar for WaltP
0
120
Member Avatar for XStrong

[CODE]/* #include <iostream> #include <iomanip> using namespace std; int main() { cout << " " << endl; double sum; double numb; double ave; int counter = 0; cout << "This program averages numbers." << endl; cout << endl; while (true) { cout << "Number: "; cin >> numb; if( numb …

Member Avatar for thomas_naveen
0
151
Member Avatar for mevkurray

Hi all. Im developing a qt app to use on a wince device. I have compiled the OpenSource version of Qt for winCE, and it is working. My program compiles fine. However, if i have any slots defined in the header file, it throws the following linker error: moc_updatedialog.obj : …

0
70
Member Avatar for atticusr5

hey everyone, I got a weird error when I run my program. I compile and link and run the program through the terminal in Ubuntu. I have to compile or linking errors, and the program run's fine, except when the program asks: "Would you like to see a display of …

Member Avatar for atticusr5
0
85
Member Avatar for isralruval

im having trouble with my program. it reads the student id, and both grades from a file and then a function its suppose to calculate the average of both grades and then pass the results to the main program using pass by reference. And for some reason my average its …

Member Avatar for jonsca
0
102
Member Avatar for Xorifelse

I've searched the forums a bit but I couldn't really find anything relative to this matter. I'm relatively new to C++, and I always used cout and cin. But I find the syntax style a bit off, so I was searching for alternatives and found scanf, sscanf and well printf. …

Member Avatar for WaltP
0
138
Member Avatar for ayushii

[I]<<split from [URL="http://www.daniweb.com/forums/thread257500.html"]here[/URL]>> [/I] plsssssssss help me guys ..... i want a c++ code for arithmetic & scientific calculators individually,..... plsss help... i need it within a few days.......plsssssss

Member Avatar for WaltP
-5
98

The End.