General C++ Programming - December 2011 (Page 31)

linked list using array
 
guys, i am new to c++. do you have a code linked list using array. ex. if i will type a particular string, it will be put in the array using linked list then an...
[3 replies] Last: You can store the elements in an array in their order of appearance, a... (by Gaminic)
How do i split this two ? C++
 
Hi guys, im sorry if my English very bad :) i got problem with this char str = "staff101"; i would like to split "staff" and "101" and cout them. i...
[3 replies] Last: a) You're not looping. Your only checking the first digit. b) Your at... (by Gaminic)
by PhL3gM
Leap Frog game help
 
Hi everyone, I'm trying to do the leap frog game http://www.akidsmath.com/mathgames/leapfrog.htm but my program will not provide user interaction, the compute...
[1 reply] : I need to store my array into a stuck I can't figure out whether you ... (by hamsterman)
any suggestions please .. facing an error
 
I have written a class of my own named inputlayer. inside this class i have a struct named neuron. In the constructor of inputlayer i am creating an array of th...
[5 replies] Last: I would like to see the code. Besides the operator you've got the ... (by ne555)
POSIX Thread Implementation of Sleeping Barbers Problem
 
Hi all, I'm working on simulating the sleeping barber anecdote. I believe my code is sound, but when I run it, it produces strange output. I have included ...
[no replies]
Vector of pointers help
 
I have a vector of pointers of a parent class, the "draw()" function is overloaded through each derived class. I need to print the vector out using the draw fun...
[1 reply] : shapeV.push_back(&mySquare); This looks a bit suspicious. If you are... (by Peter87)
number to words conversion > called by a function
 
hi guys ! :) . I just started using c++ and I can't seem to understand how to use functions :( . My professor revised the problem . He said that we should use a...
[3 replies] Last: oh my , thank you very much !!! :> . I have also studied about functio... (by closed account 1wk4izwU)
Need help in iomanip
 
Hello, I need some help with iomanip. I can't seem to understand why some of it works and some dont. It prints fine, but its all out of wack. It depends o...
[no replies]
by Gldnbr
Updating a line in a file
 
Is it possible to update a line in a file? The first number of the file is how many names there are in the list. For example, this is my information.dat...
[4 replies] Last: Nevermind, I figured out my problem (by Gldnbr)
output files
 
i need help writing output to an output file. i am working on a slot machine program. here is the code i have. #include <iostream> #include <ctime> #includ...
[1 reply] : http://cplusplus.com/doc/tutorial/files/ (by Moschops)
by bjfcom
memory leak w/out variable allocation
 
I keep getting a huge memory leak with the g++ compiler (v. 4.4.1), as can be seen from the command "top" which shows "used" memory on my 16GB machine running U...
[6 replies] Last: thanks for all the replies. @Cubbi: I'm running another program that... (by bjfcom)
static and non static member problem
 
1) whats wrong with the static members they give error "the function should be non static or non member function 2) while defining the functions how do I diff...
[7 replies] Last: thanks guys Vins3Xtreme,coder777 and bbgst and peter87 thanks (by mahinkhan22)
Heap corruption error please help!
 
I am getting a heap corruption error from my code, I am only calling the constructor with "hello" in the parameter and then I am using cout with the getName fun...
[3 replies] Last: Thanks a lot guys I completely forgot about the null char. (by dschmell)
When should I use struct?
 
Hello everyone! Can someone give me an example of why and when I should use a data structure? I've written this just to get the hang of it but I mean classes ca...
[9 replies] Last: That's a function, and unfortunately it does not suit my needs of trea... (by LB)
by Faurax
Pause a thread from an other?
 
Is it possible to make one thread pause an other in a simple way? For an example lets say I have 2 threads created and started from int main(). Thread1 has to...
[6 replies] Last: I solved it in an other way, but thanks for the good learning! (by Faurax)
Computer Science
 
Hey, (if you want just skip to the questions) A while ago i starting reading about programming, and as i had always been into computers and didn't really ...
[no replies]
Using Getline to input data from a file
 
I am writing a program that will input data from a file and place it into a struct.The idea is to input a list of Beatles songs from 5 different albums, I am st...
[no replies]
reading from file
 
Your program should read the input files and holds the data in the given following structs: struct student{ char stid ; char name ; char surname ; course...
[no replies]
Win32 app problem. (1,2)
 
this piece of code causes an error #include <fstream> { using namespace std; ofstream.outputFile; outputFile.open ("hiscore.txt") ...
[20 replies] Last: maybe it will help if i say what I need that to do, I need that to rec... (by Echo773)
AES
 
I'm programing the advanced encryption method. I'm nearly done but have hit a snag. Any suggestions would be appreciated. The output ask for the key, doesn't gi...
[no replies]
December 2011 Pages: 1... 2930313233... 39
  Archived months: [nov2011] [jan2012]

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