49,761 Topics

Member Avatar for
Member Avatar for usafsatwide

I'm not sure if you all need all my files, but I'm getting the following error message when compiling: productionworker.cpp(8) : error C2440: '=' : cannot convert from 'const char [4]' to 'char' productionworker.cpp(10) : error C2440: '=' : cannot convert from 'const char [6]' to 'char' Can anyone help? …

Member Avatar for usafsatwide
0
255
Member Avatar for maniakdusoleil

So, I'm working on a project for my Intro to Software Development course; it's a sudoku puzzle program. So far, I've encountered two big bugs: 1.) When I wrote the code in Visual C++, the display worked fine(it showed up on the screen as a normal puzzle), but when I …

Member Avatar for StuXYZ
0
2K
Member Avatar for interist

Hello everyone, I'm newbie with c++. I need to ask you probably a very simple question. When I write a file with numbers from an array I then read in a file something like: 7 8 9 10 11 12 When I then read this file and print on screen …

Member Avatar for mrnutty
0
78
Member Avatar for saqib_604

hy! I am writing an integer array class. but there is problem to return array from getter function. any one tell me the procedure of this task. And tell about extract operator for that class.[code]#include<iostream> using namespace std; class integer{ friend ostream& operator<<(ostream& output, const integer& num); private: int array[10]; …

Member Avatar for mrnutty
0
294
Member Avatar for mybluehair

I have a nice c++ program going right now, and I want to create a new feature for my users. The problem is, this new feature would cost me money. So what I would like to do is charge users if they decide to use this feature. I would love …

0
54
Member Avatar for Andreas5

Exercise 12-5 in Accelerated C++. My operator+= works: [CODE]void Str2::operator+=(const Str2& a) { iterator new_data = alloc.allocate((avail - data) + a.size()); iterator new_avail = std::uninitialized_copy(data, avail, new_data); new_avail = std::uninitialized_copy(a.data, a.avail, new_avail); uncreate(); data = new_data; limit = avail = new_avail; }[/CODE] However i cant get the operator+ to work:( …

Member Avatar for Andreas5
0
91
Member Avatar for ttx336

Hello All, this is my first post here, I was a novice Pascal and C programmer back in the DOS days, now I am taking a C++ class based on "Programming - Principles and Practices Using C++" by Bjarne Stroustrup. In the book he gives an example in which he …

Member Avatar for ttx336
0
95
Member Avatar for NubKnacker

I've been trying to get it to work but it just won't. For some reason everytime I run a program it freezes up my command prompt and I have to close it forcefully. Does anyone know a fix to this? One reason why I absolutely have to use this compiler …

Member Avatar for jemy
0
338
Member Avatar for jackmaverick1

I have been studying c++ on my own for about a year (i'm 11) and have mastered classes, functions, logical operations, and some other basic things. Now I'm interested in learning to make and use GUIs. I already know how to make a message box and have the code but …

Member Avatar for jackmaverick1
0
194
Member Avatar for BobbieJean

Hi, I have to write an airline ticket program for my class. My instructor gave us an example of a similar program so I thought I would build and run it to help me understand it better but he seems to have given us code for a program that doesn't …

Member Avatar for jonsca
0
190
Member Avatar for vinotharan

[CODE]#include <iostream> #include <string> using namespace std; class w { public: void InsertRow(String* myConnection) { // If the connection string is null, use a default. if (myConnection->Equals(S"")) { myConnection = S"DRIVER= {SQL Server};SERVER=MyServer;Trusted_connection=yes;DATABASE=idb;"; } OdbcConnection* myConn = new OdbcConnection(myConnection); String* myInsertQuery = S"INSERT INTO test (id)"; OdbcCommand* myOdbcCommand = new …

Member Avatar for tesuji
0
329
Member Avatar for seanzshow

Hi, I am attempting to come to terms with pointers and have come up against a problem. By my understanding the code below should: a, assign the value 3200 to total. b, attach the memory address of total to ptr. c, send the value at ptr to val. d, display …

Member Avatar for Fbody
0
132
Member Avatar for wwefriend
Member Avatar for Ancient Dragon
0
81
Member Avatar for kiavash2k

Hi, Space Haste II complete sourcecode --------------------------------------------- You can download the game demo and checkout screeshots at gamespot. [URL="http://www.gamespot.com/pc/action/spacehaste2/index.html?tag=result%3Btitle%3B0"]http://www.gamespot.com/pc/action/spacehaste2/index.html?tag=result%3Btitle%3B0[/URL] and here you can download the game complete sourcecode. [URL="http://www.devharbor.com/ms-visual-studio-net/170-space-haste-2-source-code-1.html"]http://www.devharbor.com/ms-visual-studio-net/170-space-haste-2-source-code-1.html[/URL] =================================== Freecraft with sourcecode (similar to warcraft) --------------------------------------------- [URL="http://www.devharbor.com/games/179-freecraft-complete-with-sourcecode-msvc-project--1.html"]http://www.devharbor.com/games/179-freecraft-complete-with-sourcecode-msvc-project--1.html[/URL] Just one thing this website require to register for free to allow …

0
54
Member Avatar for gyan_sachan

Hi all, Using C++ .net I have developed a new Gina.dll to replace the one that windows has in order to add support to Biomatrics under windows NT. At the end of the programming phase i detected that the Logon Scripts were executed,But In login Dialog box last successfully login …

0
39
Member Avatar for thr

hello I want too choose among c++ + qt + php and java for my programming language and platform please help me too choose best platform I want to choose a platform that has this features : speed, portable I am c++ programmer and familiar with java programming language i …

Member Avatar for JamesCherrill
0
168
Member Avatar for angel_banned

Dear all user and admin, My father now is paralyze with a symthom that been called MotorNeoron.. He cant do anything. He just sitting and and laying. Cant move his hand, leg, and all of his part. He ask me to help him making an shortcut key for him.. He …

Member Avatar for jonsca
0
291
Member Avatar for steventaal

OK, so I have this program I am writing called 'GradeBook', and there is a problem that starting on int Menu1(), ' if (menuchc == "4") ', and ending [code=c++] if (menuchc == "y", "Y") { string tmp = "start " + po; system(tmp.c_str()); system("pause"); main(); } [/code] so, I've …

Member Avatar for jonsca
0
121
Member Avatar for wwefriend

hey all,how do i begin to learn a C++, can someone give some guide or idea for me?? thanks..hmm .... i got knowleadge about computer fudamental and basic computer skill

Member Avatar for daviddoria
0
91
Member Avatar for ssuss

hi every body..... ^_^ i have these problem in linked list and i need some one to answer it please..... Develop menu driven C++ program to manage the College of Science Book Store. Your program should maintain three linked lists: one for books, another one for students and a third …

Member Avatar for steventaal
-3
176
Member Avatar for cwarn23

Hi, me again. I don't mean to be a pain but I have another question. I'm trying to add an event handler to the code (Irrlicht game engine) but I can't seem to retrieve data from the main function to the event class. Below I have [ICODE]bool check = ((IGUICheckBox*)event.GUIEvent.Caller)->isChecked();[/ICODE] …

Member Avatar for cwarn23
0
160
Member Avatar for dmane

Dear All, I am developing an app that will hook on to the ExtTextOutW and capture the text to be displayed on the screen and log it to a file. I am doing this on Windows XP and VC++ 2008. I have managed to do the above for a notepad …

0
115
Member Avatar for shayankhan

Hey Guys!!!! I am searching everywhere but i did'nt find actual answer from internet or may b I am wrong.. I am making a program that stores data.. my all program works perfectly but there is one problem i cannot solve.. i am new to WINDOWS FORM (Object ORIENTED) and …

Member Avatar for shayankhan
0
130
Member Avatar for ika_fantasy00

Hi, I just like to know, can an input data from user (keyed in) be compared with data contained in a files (.txt). Because, I need to compare one data (string) to so many strings or a group of data (about 100+). Therefore, I like to avoid from using so …

Member Avatar for ika_fantasy00
0
192
Member Avatar for VBNick

Why does the debugger stop execution and give an error when WaitForSingleObject() is called on a closed HANDLE?? when I run my program outside of the VS2010 IDE, WaitForSingleObject(invalid handle) just returns WAIT_FAILED like its supposed to. Is there anything actually wrong with calling it on an invalid handle?

Member Avatar for VBNick
0
2K
Member Avatar for cwarn23

Hi, long time no C. I have started using the Irrlicht gaming engine but have bumped into a problem which has been bugging me for the past 6 hours flat. I have a variable containing a std::string but it needs to be converted to a (const wchar_t *) string. Does …

Member Avatar for cwarn23
0
117
Member Avatar for technology

Ok Guys I need some help with a small nigglying problem I have traditionally used the following code to check for a keypress when using the console and in msdos thats how far back Ive been using getch() but need to do something similar to this in C++ with cin …

Member Avatar for ShadowScripter
0
194
Member Avatar for VBNick

can anyone tell me why this would freeze? I'm trying to find a way to terminate a thread from outside of it, and allow the main program to do garbage cleanup, like closing any HANDLEs used or freeing any memory allocated. I trigger an event which should cause that loop …

Member Avatar for VBNick
0
100
Member Avatar for angel_banned

Dear Friends, How can we control just for that programme only.. *************************************************** * FOREXAMPLE * *************************************************** * I tried and successfully done with auto clicker * * using Dev C++ on CCleaner. But the question here* * The mouse will keep clicker while Im minimize * * the CCleaner. The …

Member Avatar for iamthwee
0
130
Member Avatar for leeba

I am trying an exercise in a book and can't find my problem. I want an invoice class with a seperate implementation file and a file to use it. Below are the three files. [code] // invoice class //Invoice.h #include <string> using namespace std; class Invoice { public: Invoice(string,string, int, …

Member Avatar for leeba
0
94

The End.