49,761 Topics
| |
Hi. I am trying to use assembly in C++, and need a few pointers(pun intended) lol I want to use C++ structs as operands, but can't figure out how. my code is like this so far: TEST.CPP [code=cplusplus] extern "C" WORD _add(WORD num1, WORD num2); int _tmain(int argc, _TCHAR* argv[]) … | |
Hi I'm a beginner and I need some help with designing this program. It basically asks to make a class named Employee that has these variables: Name, Id Number, Department and Position. The class should have these constructors: 1- A constructor that accepts the arguments: Employee Name, Id Number, Department … | |
Hello there guys, I'm new to C++ and i've got something to ask. I want to create several classes at different .cpp files. But i want to create objects from some of classes at other classes. let me explain it with an example: Main.cpp ClassA.cpp ClassB.cpp These are my cpp … | |
I am trying to figure out how to run programs and compile them in C++ if anyone can help please let me know. The major problem I am having is on this particular problem Prb04-3.cpp it will not let me run it. I tried to paste it on here and … | |
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 … |
The End.