49,757 Topics

Member Avatar for
Member Avatar for number87

what's wrong with this line when I try to compile in C++?? The src code was originally in C. It gets an expected identifier error with my c++ compiler [CODE]typedef enum {false, true} bool;[/CODE]

Member Avatar for wildgoose
0
359
Member Avatar for mrnutty

Can someone help me out. I haven't dealt with pointer function much. Here is the class definition for which it resides, although its only part of it. [code] template<typename Type> class vec2D { private: bool (*drawFunc)(unsigned int ID); unsigned int Col_id; public: //Enables each object member to have its own …

Member Avatar for mrnutty
0
140
Member Avatar for gretty

Hello I am reading a text file & I want to make a for loop, loop repeatedly until the end of the file. Is my code below correct, in terms of syntax? Is this possible to do. [CODE=cplusplus] #include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; // …

Member Avatar for gretty
0
2K
Member Avatar for jeezcak3++

Hi, I am new to the forum. I am in the learning process and I will stick around until I learn everything from you. I try to create count down starting at 15 seconds. But when I compile, "clock identifier not found." I am !ondering the same thing, too. Perhaps …

Member Avatar for mrnutty
1
778
Member Avatar for sara9111

[B][COLOR="Red"]Hi...There Wts that mean in C++??Wt I have 2 do in the program??Wt I should write? write a C++ program that test parts a and b. (Declear additional verable in the function main, if necceccaey). # include <iostream> using namespace std; int one (int x, int y); double two (int …

Member Avatar for mrnutty
-2
97
Member Avatar for muzhe

Hi all, I am writing a program in C++ to generate input files for a two programs for testing purpose. I can generate data files individually by specifying the name. What I want is to be able to run the program once and it generates a number of data files …

Member Avatar for Ancient Dragon
0
802
Member Avatar for sara9111

Hi There.... # include <iostream> using namespace std; int one (int x, int y); double two (int x, double a); int main () { int num, x, y; double dec, a, first; cout<<"please enter two integers numbers: "; cin>>x>>y; cout<<"please enter a double number: "; cin>>a; num = one (x, …

Member Avatar for sara9111
0
179
Member Avatar for tazboy

I have a person class: [CODE=C++]class person { protected: string fname, lname, gender bdate; public: person(); // getters and setters };[/CODE] and a student class: [CODE=C++]class student: public person { private: string major, grade; public: student(); // getters and setters }[/CODE] } I'm not sure how to make the implementation …

Member Avatar for Stefano Mtangoo
0
132
Member Avatar for lotrsimp12345

Random numbers appear and i have no idea where they are appearing from. Problem is in << operator. Not sure how to fix it. Main #include <iostream> #include "Format.h" using namespace std; int main() { Format format; format.setJustification('l'); format.add_word("one"); format.add_word("two"); format.add_word("is"); cout<<format; return 0; } Implementation #include "Format.h" #include <vector> …

Member Avatar for lotrsimp12345
0
111
Member Avatar for licktress

Hey guys, I'm creating a program that prompts the user to inputt the name of the process that they wish to end, but the problem is, the system("TASKKILL") function won't accept variables. for example: [CODE]string cProcess; cout << "Enter the name of the process that you would wish to end" …

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

Up until now, I've been using the old C way of sharing objects by passing pointers instead of references. But I've run into some trouble. Here's a simplified case of what I'm trying to do: [code=c++] #include <iostream> class Test{ protected: int a; public: Test() : a(0) {} void change(int …

Member Avatar for Asafe
0
80
Member Avatar for azjherben

This is a Winsock select() server in C++ (I'm posting in this forum so of course) and I have two problems with it. (title) 1. My select olny returns above 0 when a connect request is recived, the rest of the time it returns -1. So I can olny recive …

Member Avatar for azjherben
0
164
Member Avatar for Nogat21

Hey All, i'm doing this project in c++ consisting in reading an mp3 file and extracting the informations within it. Thing is i'm starting to be pissed by this persistent error that stops me from test the code. This error is, as far as my (limited) knowledge goes, caused by …

Member Avatar for Nogat21
0
171
Member Avatar for jko2326

This program is from the collopy book. I just had to type it in and create a text file so it would compile correctly for a class assignment which I did. But the very last record will not be shown when i compile. This is what is in the txt …

Member Avatar for jko2326
0
133
Member Avatar for lehe

Hi, Here are my two questions: 1. I am now learning to manage my code with CVS, and I just want to make a repository for my C++ files, Makefile and bash and python scripts only, not the object files and executables. So I made several subdirectories under my project …

0
50
Member Avatar for Smoking Bros

Hello! I kinda just fell over this great C++ plug-in for Visual Studio 2008 C++, Dark GDK. I installed it and that DirectX, August 2007, shit and it was downloaded and installed correctly with no errors, but still it doesn't show the new Wizards template when I start a new …

Member Avatar for Ancient Dragon
0
191
Member Avatar for mohd9789

Hello, I'm working on a project for my master degree that uses codes called CurveLab [url]http://curvelet.org/software.html[/url] I don't know how to install it to my system. I tried to follow the steps but I filed to do so. Can anyone help me with doing that? I'm really in need to …

Member Avatar for mohd9789
0
90
Member Avatar for AirGear

can i access cmd command from cpp? for example, C://Program Files/asdf.exe

Member Avatar for necrolin
0
110
Member Avatar for tnind

Hi, I am pretty new to C++ but have lots of experience in java/c# and know the basics (classes/structures/pointers etc) but am having some problems linking to external source libraries. I am trying to use something called the openframeworks which I have downloaded and I need to include "\libs\openFrameWorks\ofMain.h" but …

Member Avatar for JasonHippy
0
122
Member Avatar for hayatihamid

i've been trying to store a coordinate in a vector array, and reading the coordinates from a .txt file. there was no error, but the size of the vector is still 0 (i'm sure there was no value in the vector array) here's my code: [ICODE]#include <stdafx> #include<iostream> #include<fstream> #include …

Member Avatar for hayatihamid
0
3K
Member Avatar for thiemebr

I have an AlphaSeats [60] array and the loop I did, changes the value to 0 and it's suppose to stop when it reaches the index 59 but it goes on and end up changing other variables - PartyName, PartySize and Airplane value to 0 too... Here is the code. …

Member Avatar for Reprise
0
78
Member Avatar for C.c

can help me ?? i want to loop to "Please choose the section you want" after all the calculation, but it only loop to "key in the number of adults"..Please help.. #include <iostream> using namespace std; int main () { int adults1, childrens1, adults2, children2, adultstotal, childrentotal, choices, total_ticket1 = …

Member Avatar for ithelp
0
116
Member Avatar for saminchat

Hi all, I am a new software developer that recently joined my company right after I finished my school. We use Microsoft Visual C++ for development. While at work, I found that many co-workers are very experienced in software development; they can code quickly to solve the problems. I feel …

Member Avatar for ithelp
0
107
Member Avatar for umair125
Member Avatar for kvprajapati
0
115
Member Avatar for umair125
Member Avatar for faranshabbir

Hello, I compiled my trayicon utility c++ code in visual studio 2005 express edition and tray icon balloons showed up successfully but later I deleted my firewall, switched on to windows firewall and now I am on another firewall software. Now i ran my same project and balloons showed up …

Member Avatar for faranshabbir
0
170
Member Avatar for skiing

I am really confused on this problem someone please assist me I am suppose to create a random number generator that passes in a high and low value and return a random number using a generator that is not biased. It makes use of the idea of cuttoff. I know …

Member Avatar for kvprajapati
0
125
Member Avatar for atch

Hi, in my code below if I move scope protected below public just as I would like to see it this code won't compile. I always thought that order of members in class is without any importance but here I see something different or I'm doing something wrong? Thank you. …

Member Avatar for jesseb07
0
103
Member Avatar for aliaks

Ok, so as suggested I have rewritten this thread. It was suggested that the code posted to be shortened and only revelent code be posted. I did both of these and people started asking where all different things were, and why cant they see other files etc. Uploaded is the …

Member Avatar for NathanOliver
0
141
Member Avatar for tarekwehbe

sale_item sale_item::operator + (sale_item &s2){ } sale item is a class how to overload this operator sale_item::sale_item(const char N[],const char C[],double P){ } this is the constructor

Member Avatar for NathanOliver
0
70

The End.