49,761 Topics

Member Avatar for
Member Avatar for omegajam

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 …

Member Avatar for squinx22
0
80
Member Avatar for kylcrow

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 …

Member Avatar for kylcrow
0
86
Member Avatar for quintoncoert

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 …

Member Avatar for Ancient Dragon
0
280
Member Avatar for nkhosinathie

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 …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for sInFuL69er

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; …

Member Avatar for vijayan121
0
104
Member Avatar for jenymaru08

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] …

Member Avatar for meiyantao
0
178
Member Avatar for afflictedd2

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 …

Member Avatar for vijayan121
0
113
Member Avatar for jaepi

hello, there... how would you send a signal to end this loop [code] string s; int counter; while(cin >> s){ counter++; } [/code] thanks...

Member Avatar for jaepi
0
49
Member Avatar for adolif

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. …

Member Avatar for John A
0
111
Member Avatar for machine

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? …

Member Avatar for John A
0
239
Member Avatar for fatnickc

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 …

Member Avatar for fatnickc
0
231
Member Avatar for muzammilpn

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/

Member Avatar for iamthwee
0
137
Member Avatar for rashmi43

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]

Member Avatar for Narue
0
91
Member Avatar for addlebrains

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.

Member Avatar for WolfPack
0
145
Member Avatar for louis7370

[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() { …

Member Avatar for iamthwee
0
103
Member Avatar for emg70

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 …

Member Avatar for iamthwee
0
121
Member Avatar for Zay

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 …

Member Avatar for Narue
0
1K
Member Avatar for Covinus

[code] hBitmap = LoadBitmap(NULL, saFileName); [/code] ho come i cant load any bitmap using this function? hBItmap is always null

Member Avatar for Covinus
0
230
Member Avatar for CRD

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 …

Member Avatar for CRD
0
78
Member Avatar for snickers6226

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: *** …

Member Avatar for Salem
0
92
Member Avatar for jaepi

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...

Member Avatar for Salem
0
115
Member Avatar for jpknoob

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 …

Member Avatar for Lerner
0
95
Member Avatar for rapperhuj

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..

Member Avatar for Ancient Dragon
0
106
Member Avatar for squinx22

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...

0
49
Member Avatar for squinx22

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....

Member Avatar for squinx22
0
97
Member Avatar for ndeniche

[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 …

Member Avatar for ndeniche
0
499
Member Avatar for JaksLax

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 …

Member Avatar for Salem
0
143
Member Avatar for quintoncoert

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 …

Member Avatar for Ancient Dragon
0
155
Member Avatar for jaepi

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){ …

Member Avatar for ithelp
0
44
Member Avatar for nkhosinathie

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 …

Member Avatar for nkhosinathie
0
111

The End.