49,761 Topics
| |
I need some help to build the simple code (LAB exercise): The “main” of the C++ program attached to this assignment expects a class called “item.” This class must have methods for “enter” and for “print.” Below is a description of what each method should do: item.enter() should allow the … | |
Hey guys, I need to write a struct that measures the distance from a point (x,y,z) to the origin. I am good on how to write it as a struct, I just don't know the formula for the distance. Can someone help me out? Also, the formula for a dot … | |
I am using VC++ express 2005 and I have a dll and two header files. The one header file inherrits from the other and the dll contains the source code. Can someone please tell me where do I write the include commands for these header files? I can create and … | |
hello everyone. i'm developing a program containing a for loop where the answer of each each respondent to each questrion is read in. the program is saying:100 people conmpleted the following questionaire: what is your highest qualification? 1.if grade 10 1.if grade 12 3. if any tertiary qualification how old … | |
Hello everyone, i've gone blank atm and i cant think i have a class [code] class Client { public: int aa; int bb; }; [/code] different file [code] class agent { private: vector<Client> clientRequest; public: void getClient(); }; [/code] and i get information from a file [code] infile >> C.aa; … | |
how to make a program which the out put is: enter n=5 [code] 1 2 3 4 5 4 3 2 1 2 3 4 5 4 3 2 3 4 5 4 3 4 5 4 5 [/code] this is the code i use but an error occur [code=c] … | |
Hi, I'm wondering how to give a map a fixed size like you can give an array a fixed size by just "byte data[SIZE*DATASIZE]".. or if it's possible anybody know.. struct Table { map<int, int> table; // }; struct Table *flightChart; The reason I have to give this a fixed … | |
hello, there... how would you send a signal to end this loop [code] string s; int counter; while(cin >> s){ counter++; } [/code] thanks... | |
HI, I JUST started C++ today, and I'm used to programming with Game Maker. With Game Maker, it comes with a "dictionary" of ALL the functions, constants, and variables that are pre-defined. I just downloaded a c++ compiler but it comes with NO references and I've been googling very badly. … | |
Hi i have to use linked lists to get information from the user and dispaly it. I am having trouble with displaying the linked list. If you look at my second function where i am trying to list the information, you might be able to tell what the problem is? … | |
I'm in the middle of writing a C++ program which will eventually sort data, using a tree. I would like to swap a child with its parent if the child's value (could be anything, using a template) is less than the parent's. however, I have become stuck when trying to … | |
Can any one help me in providing help I am working on Tree Structure My problem is to take input as an expression like a+b(c/t) and Using Binary Tree converting it into postfix RPN ab+ct/ | |
Without changing the main function modify the following code so that the o/p is [B]Initialize[/B] [B]Hello world[/B] [B]clean up[/B] [code=c++] #include<stdio.h> #include<iostream.h> #include<conio.h> void main() { cout<<"Hello world"; }[/code] | |
I keep getting this message during compiling. There are no strings or open " marks around. In fact, even if I move the lines around, the error remains pointing to the same line. | |
[code=cplusplus] #include<iostream.h> #include<fstream.h> #include<cstdio> #include<typeinfo> #include<cstring> #include<sstream> #include<algorithm> #include<ctime> char* itoa(int n, char *buf,int) // { // ostring out; // out<<n; // strcpy(buf,out.str(),c_str(); // return buf; // } class string class const struct Node class VCDdetails { private: char vcdid[6]; char movietitle[50]; char castofmovie[50]; int numvcdcopy; public: void addVCDdetails() { … | |
pls help just started learning c++ and cant get my head around how to do this: write prog for data logger which records one reading per day at a specific time for 5 days.the logger records in the format:n1805071500 the first letter preceding the numbers can mean one of below … | |
Hi; need your help , now i want a hint for this question to know how to solve it : [code] template <class T> void sortqueu(queueType <T> & q); [/code] this function is to sort all elements of that queue . using queue operation only (it is not a member … | |
[code] hBitmap = LoadBitmap(NULL, saFileName); [/code] ho come i cant load any bitmap using this function? hBItmap is always null | |
I have a Problum building An Exicutable as It does not find the include file. code [COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]"stdafx.h" [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] _tmain([/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] argc, _TCHAR* argv[])[/COLOR] { [COLOR=#0000ff]return[/COLOR] 0; } Error message fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory Any assistance would be appreciated in fixing this … | |
I am trying to compile my project and I keep getting this error: cannot find `ld' C:\Dev-Cpp\Projects\Makefile.win [Build Error] ["Final] Error 1 The Compiler Log says: Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\Projects\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\Projects\Makefile.win" all g++.exe FinalProgram.o -o "Final Program.exe" -L"lib" collect2: cannot find `ld' make.exe: *** … | |
hello there...is there a way to check if the file you get is the file you really want...like for example, you want an .iso file, if yo placed any file like .txt, the system will exit...but if you placed a file with .iso extension, it will continue to run...thanks... | |
| Alright guys? I've just started doin a bit of C++, but i'm havin a few problems!!! I'm makin a numbers game and so far have managed to program the game, but i'm wantin to juice it up a bit! Can anyone give me some help or hints how to include … |
wat are some causes of segmentation fault.. in c++ programming when it comes to compiling.. ?? my main prob.. is i can't completely compile my program.. ahmm.. it can't find my database.. | |
How would I create a desktop launcher of my application? I am using ubuntu.. All I want is to compile the program using Makefile and during the compilation it will then create a desktop launcher automatically. thank you... | |
Gud day, Suppose I have these files: hello.h hello.cpp main.cpp in what directory will I put the hello.o and hello.hpp so that I will only type $ g++ main.cpp -o main not, $ g++ main.cpp hello.cpp -I. -o main.cpp in the terminal.. thanks.... I will highly appreciate youre response.... | |
[U][B]Dear poster:[/B][/U] we don't actually have any issues with answering your doubts/questions or solving your problems, but it would be very time saving for us (problem solvers) if you could please mark your threads as solved when your problem has been solved, since, when you don't do that, we read … | |
I am getting a Segmentation fault when I run my code. It is happening right now when the 100,000th array location is being populated. But it has been at different spots when I ran it before. Any ideas?? [code] /** * @author Jason Mejak * * This program uses the … | |
I am new to c++ and I am using visual c++ express edition. I am spending quite a lot of my time doing excercises and am using the command line to compile them. I have now reach the stage where I am seperating the header files and the .cpp files … | |
hello there, im currently doing some programming in burning an iso file using c++ and LINUX...is it possible to check if a medium(cd-rw) is empty or has a data inside...because im going to make a function that checks if a medium is blank or not, like: [code] if(cd-rw is empty){ … | |
hello everyone. i'm calculating certain 100 people that have completed a questionnaire and my program has to dertermine the number of males between20-30 and their highest grade which is grade 12,also the program has to determine the number of people above 32 and their highest grade which is tertiary as … |
The End.