49,761 Topics

Member Avatar for
Member Avatar for voidnull
Member Avatar for MattyRobot
Member Avatar for leadenwinter

I'm a total newbie and.. with the code above.. What I want to do is have 10 dValue numbers, but if, of those 10 I only enter 5 values, the exe shouldnt ask me to enter all 10 and just add the 5 values I entered when I press the …

Member Avatar for MattyRobot
0
217
Member Avatar for dwhvw

Hi, How can I convert the TeMyEnumeration constants to integer values? See code below [CODE] typedef enum{ zero, one }TeMyEnumeration; typedef struct{ TeMyEnumeration myEnumeration; int myInteger; } [/CODE] I send this complete structure, byte by byte, using a memory pointer to some serial output. I want the myEnumeration variables also …

0
80
Member Avatar for initialise

Hi, I'm hoping someone can help! I'm writing a sign language tutor that displays a video of someone signing and then expects the user to record themselves performing the same sign. The program works perfectly when run through Visual C++ 2008 Express Edition. However, if the .exe file is run …

0
58
Member Avatar for KIEX

help me with the linked list where we have parkinglot ,with class apassenger,class acar,class aParking area.the program should register passenger, driver,car also able to remove a car in parking area[code]limplementing a linked list[/code]

Member Avatar for Dave Sinkula
-1
67
Member Avatar for metalclunch

Well. I've been developing a small game. This is what I have done: I've created a Engine project, which has these files in it: Geometry.h Engine.h Engine.cpp Now, I've created another project, called Test, and it has only one file in it: Main.cpp. I've included the Engine.h by modifying the …

Member Avatar for metalclunch
0
119
Member Avatar for skirmish

I'm having some real problem with a list of objects. My objects in this case are called Aircraft & I've given them these features: [CODE] int flightNo; void setFlightNo(int i) { flightNo = i; } int getFlightNo() { return flightNo; } [/CODE] Ok, all good - until I put them …

Member Avatar for skirmish
0
125
Member Avatar for evilguyme

hmm.. i have just a bit of experience in c++ and i'm just coding a program to learn. it is a windows forms app and there are 3 forms in one same project. how do i get a textbox value from one form and use it as a variable in …

0
64
Member Avatar for philastean

[B]* please help me to download the file (inpout32) form the page ( [url]http://www.logix4u.net[/url] ) becuase : [/B] * when I opened that page , appeared there is error in page. * please put the file in this forum.

Member Avatar for Ancient Dragon
0
21
Member Avatar for rajeev_rsd

I'm working on a Project, which includes downloading some files from INTERNET, and the code language is C++, I'm using Codegear C++ Builder 2009, If anyone knows how to download a file using c++ code. please help me, I'll be greatly thankful if you provide a code snippet and then …

Member Avatar for kvprajapati
0
140
Member Avatar for chunalt787

I am writing a database API in C++ and I cant seem to think of a good way to handle the errors. For example if certain error conditions are met I would like to set some sort of error flag and allow every class to check that flag. I have …

Member Avatar for David Boon
0
209
Member Avatar for yonghc

I am inclined to suspect that Borland C++ compiler 5.02 is seemingly full of bugs. Even though my C++ codes could be bug free, it reported External errors on compiling and failed to create an EXE file to run. Thanks to Mr. Salem, I have successfully compiled the above codes …

Member Avatar for yonghc
0
410
Member Avatar for icu222much

I am trying to create a program where it will read in the student name, nationality, and grades, and calculate their tuition fee based on those information. I began to write a bit of code by I have ran into some problems. When I try to run my code, the …

Member Avatar for icu222much
0
72
Member Avatar for AirGear

i usually use Visual Studio 6 or sometimes Dev Cpp.. but, they can't show me the runtime and the memory spent.. i need that information, to make sure that my program is qualified.. can someone help me about cpp compiler that can do that? thx.

Member Avatar for AirGear
0
132
Member Avatar for CD-4+

hello every one.. i m a newbie and was going through structures.the code is as followes: [code]#include<string> using namespace std; #define n_emp 3 struct workerdb { string name; short age; int salary; }employee[n_emp]; void printdb (workerdb); int main() { int n; for (n=0;n<n_emp;n++) { cout<<"name: "<<endl; getline(cin,employee[n].name); cout<<endl; cout<<"age: "<<endl; …

Member Avatar for mrnutty
0
154
Member Avatar for sjcomp

Hello, I would like to find out if there is a c++ library that supports fuzzy string search. If I have a list of words such as: hello, there, cool. But I search for 'Helo' I would get Hello. I assume this is a solved problem for spell checkers. Anyone …

Member Avatar for mrnutty
0
109
Member Avatar for OffbeatPatriot

When you're done reading this feel free to tell me if I've completely misunderstood .NET As I understand it on Windows code can be compiled to IL which then allows it to be used from any .NET language like c\c++\c#, and basic. So could I, and if I can how …

0
69
Member Avatar for arelius

Hello all, I am taking a course in C++ and in Ada. Our professor has given us the choice to be tested in language profficiency in either C++ or Ada. The test format will be of simpler programming problems and more geared towards shortanswer concepts. I was wondering if anyone …

Member Avatar for dgr231
0
236
Member Avatar for vatsa.devil

i'm a little confused with the keypress thing.. this is how i write my code.. if(KEY_DOWN(VK_UP)){ // my statement ... } now what i want to achieve is, i want my statement to execute only once when i press up key. instead what happens is it keep executing till i …

Member Avatar for sfuo
0
225
Member Avatar for Kombat

p1a.c: In function `main': p1a.c:20: parse error before `char' p1a.c:46: parse error before `char' p1a.c:47: `result' undeclared (first use in this function) p1a.c:47: (Each undeclared identifier is reported only once p1a.c:47: for each function it appears in.) p1a.c:47: `basechars' undeclared (first use in this function)

Member Avatar for Kombat
0
145
Member Avatar for AceiferMaximus

Is it possible to call a .dll I made in C#, and use it in my unmanaged C++ code? If so, can someone show me an example of how this is done, or a link to go about doing it. I wasn't able to find much on google, and most …

Member Avatar for AceiferMaximus
1
2K
Member Avatar for daviddoria

When debugging my code, I put a break point at this line: [code] std::set<unsigned int>::iterator it; [/code] When I step over that line, I get "Debugger reported the following error: cannot access memory at address 0x10". I am using KDevelop that ships with Fedora 11. I've used that line of …

Member Avatar for Nick Evan
0
3K
Member Avatar for dpreznik

Dear friends, I need a help with a Wait (Hour Glass) cursor. In my MFC program, I have the following code: [CODE] void CBookDoc::SomeMethod() { AfxGetApp()->DoWaitCursor(1); // display the hourglass cursor ... // Some stuff is done ... AfxGetApp()->DoWaitCursor(-1); // -1->>remove the hourglass cursor }[/CODE] I wonder why the cursor …

Member Avatar for dpreznik
0
535
Member Avatar for yonghc

Two lines in the codes below have been remarked out else compiling would fail: //arrcon[1]=*scon; //count << "arrcon[1] " << arrcon[1]; The intention was to assign character values to an array with 5 elements, each with a maximum 35 characters, declared as a string array, arrcon[5],[35]; I was trying to …

Member Avatar for yonghc
0
392
Member Avatar for Lukezzz

I have filled up a List with many elements of "Hello". Now I wonder how it is possible to use MemoryStream to "chunk" this and append it to an existing file.("C:\\OutFile.txt") I have googled around on examples for 2 days without really understand how to do this. I have understand …

Member Avatar for kvprajapati
0
185
Member Avatar for anuraggupta16

when i compile, it gives the following error : Undefined first referenced symbol in file main /auto/usc/gnu/gcc/4.2.1/bin/../lib/gcc/sparc-sun-solaris2.10/4.2.1/crt1.o ld: fatal: Symbol referencing errors. No output written to a collect2: ld returned 1 exit status Can anyone please tell as to what's going wrong here.[code]I have some code where i want to …

Member Avatar for MattyRobot
0
119
Member Avatar for vishalkhialani

Hi, I need to use the borland c++ complier for making my college project. I use only linux and I am unable find the compiler. Any help will be much appreciated as I am stuck. cheers, Vishal p.s- Gcc and other compilers are not allowed for the project .

Member Avatar for vishalkhialani
0
510
Member Avatar for gerbanzo129

Hey i have this homework problem that i can't seem to solve. i have already did the rest of the program but i have to change the output of this program but i can't seem to make it work. the output they want is.. Home Owner Price of Home Seller's …

Member Avatar for necrolin
0
90
Member Avatar for Trekker182

Hello everyone, I'm writing some code for an assignment that reads in a line of characters into a STL list, sorts them alphabetically and then has to reorganize them vowels to the front. Right now I'm stuck on the step of writing a function that accepts the list as a …

Member Avatar for Trekker182
0
195

The End.