49,757 Topics
| |
So I'm making a GUI program representing the functionality of a microwave control panel. I need help with programing the buttons that have the numbers assigned to them. So numbers 0 through 9. I have two labels, one for seconds and the other for minutes. I also have a button(cook … | |
[code] // s2.cpp : Defines the entry point for the console application. // Project Stage 2.cpp : Defines the entry point for the console application. /* Algorithm Menu() Choose option Create a new expense Enter the initial amount of money in bank or to add money to bank from paycheck … | |
I'm trying to write my first game, and in order to do so, I need to design a recursive algorithm with backtracking capabilities. In the game, there is a grid of tiles. Some of these tiles back be moved to; however, a few of them are impassable. The goal of … | |
[B]How to open a picture in c++ ( jpeg or any other format)[/B] | |
After creating a class called student i aslo include a constructor and destructor the implementation code is shown below. student::student(){;} student:: ~student(){;} but i still have an error message as - " return type specification for constructor invalid" can any one help me figure whats wrong ?? | |
I'm trying to get myself acquainted with memory allocation and deallocation while writing a program that will actually be usefull for me. The program is a simple datareader, that tries to read a matrix from file. The "main" program which works is 'int get_lex(char *in,char *delims,char ***returnvals)' This will essential … | |
Hi, what I'm trying to do is call my validate() method from inside another method but it won't compile and I'm not sure why.. I'm pretty new at this. Here is my validate(): [CODE]ListNode* validate(const Position<T>* pos) const throw(PositionInvalidException) { Position<T>* tmp = const_cast<Position<T>*>(pos); ListNode* tmp2 = dynamic_cast<ListNode*>(tmp); if (tmp2.head … | |
This problem is driving me nuts so if anyone can help resolve it i would really appreciate it. It is a unique situation in dealing with different user accounts. I have a win32 project in vs 2005 I create a thread that calls a dialogbox from resource when an event … | |
Hi, i need some help to make a prograsm that will read from a file and sort the numbers in lowes to highest order. For example the file will contain 5 4 3 2 1 and i want to to come out as 1 2 3 4 5 . How … | |
I am doing a project in c++. I want to open Pdf files. HOw can I do it in turbo c++. Should I have to switch to other IDE? | |
Hey, I wrote some code to send http (see below) and i get a connection error 10056 which means its already connected. However on wireshark i see rst packets from the server, and it doesnt send a packet... In my program i call connect sock then sendhttp. i only call … | |
I am new to ctt programming and I am having some problems trying to get an understanding of what this programming is all about. The following program is the code. Note that in the program we must include the requirement that the program end if the user inputs an invalid … | |
I *finished* my first program. Compiled it, ran it, tested it. I like it so I saved it. Now when I go into the folder i saved it to there are two files: 1 .cpp file that opens the code in my compiler. 2 .exe file that opens the program … | |
Hello to all, i have developed a miller rabin primality test program but return me wrong result all the time. I don't know what wrong with it after few days of debug. Code: [code=cplusplus] #include <iostream> #include <sstream> #include <string> #include <bitset> #include <vector> #include <limits> #include <algorithm> #include <functional> … | |
hi there, i'm quite the beginner at c++, just got to my last project for my course to do. The project asks me to create a family tree using linked list. It says the tree and its components should be templated so it can have a family tree of any … | |
using tc4.5 on windows xp...for many programs compiled,it shows error: BGI graphics not supported under windows... plz help me run these programs.. | |
I'm a toal noob to programming. i just bought a C++ book and im trying to develop some very simple programs. I'm using dev C++. I'm stuck on this one, its having an issue linking. here is my code: [code=cplusplus] #include <iostream> #include <math.h> #include <stdlib.h> #include <time.h> using namespace … | |
Please can some one help me here; I have 4 questions to solve /a. Write a member function to check whether two singly Linked List have the same contents. //b.Write a member function to reverse a singly Linked List using only one pass through the list. //c.Insert a new node … | |
hey, got a quick question regarding template classes. I've made several data structures that I've found to be very useful (using template classes) but it's getting tiresome making a new explicit specialization every time I implement it in a new way. Such as if I want to do this in … | |
I need to know a way to open a notepad document from one of my programs without opening a console window. The calling program is a standard window, so it would look bad if a console widow opened. There are a couple of things you should be aware of as … | |
anyone know why this wont work? [CODE] fstream f; f.open("a.dat", ios::in | ios::out | ios::binary); [/CODE] it doesnt create a.dat... also how would i switch f from read state to write state? | |
Hello. Recently I have started to learn C++, however I ran into some problems. First of all, take a look at this part of code: [CODE] while (Uncomplete) { if(counter > 8) draw = true; if(draw == true) { PlaceCursor(0, 10); cout << "Its a draw!\n" << "continue?"; getch(); Uncomplete … | |
Good day programmers I am a beginner and I am designing a game with C++ using Microsoft Office Visual Studio 2005. I need to add pictures to it, and I wonder if there could be some code to add or open a picture. Could someone please guide me? Thank you. | |
I have a problem I'm trying to write to a list box but everytime I do the program states : Unhandled exception at 0x5c560a97 (msvcr90d.dll) in Dialog_Box.exe: 0xC0000005: Access violation reading location 0x00070000. when I take out SetWindowText(); the program is fine. here is a copy of my code: [code=cplusplus] … | |
hello guys, if u are kind please explain me why the following function is not correct : [ICODE]void insertAfter(char *);[/ICODE] Here is the implementation. Header File : [code=cplusplus] #ifndef _LinkedList_ #define _LinkedList_ class node { private : char *name; int age; public: node * next; node(); ~node(); char * getName() … | |
Hi, I have this "number game" which i just learned tonight ..It runs..but ,not without this warning box poping up, which says: "uninitialized local variable 'guess' used"...This confusing me because i know i did everything exactly like i was taught ...can you find/fix my problem abd explain please it'll be … | |
in visual C++, we have to write #include <list> to use linked list and all it funtion. So, where is the actual file (.h, .cpp) that contains the declaration of the linked list? is it in "C:\Program Files\Microsoft Visual Studio 8\VC\atlmfc\src\mfc\list_o.cpp" Thanks | |
Hello! When my program in C++ exits, it throws errors like: EInvalidPinter with message 'Invalid Pointer operation' ... and later: EAccessViolation with mesage 'Access violation at address 00000010 ... and finally: Abonarmal Program Termination I can't locate the code responsible for it ( I am using many libraries in my … | |
Im trying to create a c++ server. Im using the schedule_Mgmt IDL , where module-schedule_Mgmt and i hav 3 interfaces , 1-config , 2-Listener, 3-MessageServer the following is my server code : [code] #include "schedule_MgmtI.h" #include <CosNamingC.h> int main( int argc, char *argv[] ) { try { cout << "Starting … | |
I am having problems with compiling some code in C++ which i am learing from Deitel and Deitels C++ how to program. When trying to compile one of their examples i get the following errors D:\Web Design\C++\C++ how to program\Fig03_15>g++ fig03_17.cpp C:\DOCUME~1\SKILLI~1\LOCALS~1\Temp/ccUzb5iL.o:fig03_17.cpp:(.text+0x1aa): undefined reference to `GradeBook::GradeBook(std::string)' C:\DOCUME~1\SKILLI~1\LOCALS~1\Temp/ccUzb5iL.o:fig03_17.cpp:(.text+0x283): undefined reference to … |
The End.