General C++ Programming - November 2011 (Page 24)

Template function call error
 
Long story short: my add_track function is messed up in my playlist.cpp file and i cannot figure out why, please help! more details below: Ok, so I have an a...
[1 reply] : void Linked_List<T>::append(T in_data) Linked_List<Track> playlist_a... (by ne555)
program won't compile - problem with void function
 
I'm getting the following errors: 10 E:\Lab 7 - Test Averages\Lab7.cpp variable or field `calcavg' declared void 10 E:\Lab 7 - Test Averages\Lab7.cpp `ifstr...
[8 replies] Last: I talked to my instructor and the problem was that there was not any c... (by jefgreen)
Need help with my bubble sort!
 
I have a programming project where I must generate 10,000 random numbers and sort them out using bubble sort and shell sort. But before I start on shell sort i ...
[1 reply] : you declaed flag variable but it is not used at all in "BoubleSort" fu... (by codekiddy)
What is random?
 
Need someone to help me.. need examples..
[13 replies] Last: Thank you very much..=) (by Maza Ron)
casting problem
 
Hi, i have the code: #include <iostream> using namespace std; struct arg_struct { double vec ; int length; }; int func(void *argument) { struct arg_s...
[15 replies] Last: ^ args is not a pointer. (by ne555)
Is this software possible?
 
Hey, just wondering if it's possible to make a software that would put a password prompt on a file, and a user would have to enter a password before allowing ac...
[5 replies] Last: I agree with both of us, webJose (by ceruleus)
Quick fix?
 
My program outputs: Enter hours:16 Result: Monday, 16 pm PROGRAM ENDS It is supposed to output: Enter hours:16 Result: Monday, 4 pm PROGRAM ENDS ...
[2 replies] Last: That did it...thank you soo much! (by jhotz30)
help please!
 
hahaha I'm first year programming and have missed a few days of class...can someone help me with this assinment.... Write a program to produce an invoice rep...
[1 reply] : Best if you just study a C++ tutorial or 2. Here's one: http://cplus... (by webJose)
by xwilx
redefine access label for an inherited function
 
Hello, I am a bit confused here. In the following code class A { private: virtual int getI() = 0; }; class B: public A { public: int getI()...
[3 replies] Last: This might help. http://meditation-art.blogspot.com/2007/11/c-function... (by kbw)
by aghtar
Pool Volume, 2 functions, some LNK Errors.
 
Hey Guys, Im new to this forum and a begginer on C++. I started this little program this morning, and am currently struggling with some LNK Errors. I got the fi...
[4 replies] Last: use modulus operator % http://www.cplusplus.com/doc/tutorial/operato... (by ceruleus)
by cea11b
myfile.getline problems
 
Hello all, I'm having some trouble with a loop in my program. The point of this program is to read in a file that will have a first name, last name, and a numb...
[1 reply] : Wow never mind I figured it out. i had to change Recordcount(filename)... (by cea11b)
problems using defines inside macros
 
hi there, i'm doing something in C where i needs to modify an initializer at compile time. #define _PCN 3 struct SOMETHING_t { uint8_t variableA; f...
[5 replies] Last: also if you do want to multi pass, (things that will horrify your CS p... (by cppabuser)
help on a program
 
Good Evening- Needing help on a program. Any suggestions would be greatly appreciated. Please see the following: I am struggling to get the correct output...
[9 replies] Last: Morning! Not quite, no - your original code had 'days' defined as st... (by jim80y)
Seeking help identifying software development security tool
 
Hi, First, my apologies if you feel this is a mispost or that I’ve invaded the wrong "realm" (please don’t flame me :( I chose this forum (along with a ...
[no replies]
Problem with binary file access
 
Hello, I have a problem I can't find any reason for: I have to write an 3 dimensional unsigned char array to file and read it again later. I did this so: writin...
[6 replies] Last: oh right that's fstream for you ... well just cast it as char into fst... (by cppabuser)
issues with arrays
 
Not sure what to do or how this is even possible...i want to sum two 2d arrays as you can see and let the user insert the rows / columns /* Create a 2d ...
[no replies]
error: expected unqualified-id before ' { ' token
 
this error keeps appearing whenever i try to compile this program: error: expected unqualified-id before ' { ' token #include<iostream.h> typedef int sti...
[7 replies] Last: and i have no idea how to create it again...or correct it, for that ma... (by anadunid)
Game programming
 
I have a question i am very interested in looking into game libs but, i cant seem to know of any good ones. Can someone point me in the right direction also if ...
[1 reply] : SFML has a good rep http://www.sfml-dev.org/ (by Moschops)
Serialport C++
 
hello; I have a written program for obstacle detection with kinect camera. I wanted to send the distance between the camera and the obstacle via Bluetooth or...
[4 replies] Last: using namespace System.IO.Ports.SerialPort; That's got .NET and C# ... (by Moschops)
This program shows the use of LOGICAL operators. Keeping in mind that all 3 operators have to be used in one single program!
 
The problem comes in the part where the user enters '2' for the logical OR operator and then asks for USERNAME and PASSWORD. But it doesn't work out properly. T...
[1 reply] : your code: if (((user,25) == 'abd') && ((pass,20) == 'abs')) this ... (by codekiddy)
November 2011 Pages: 1... 2223242526... 47
  Archived months: [oct2011] [dec2011]

This is an archived page. To post a new message, go to the current page.