Beginners (Page 2)

by cotro
Passing funcion to pthread_create
Hello, I am currently playing with the pthread_create. I have a test function called void *abaco (...
[3 replies] Last: I guess you could use a struct, that contains both a pointer to the ob... (by Peter87)
Explain this code to me
Hello this is my first post here so pardon me if I'm doing it wrong. My college gave me a piece of c...
[1 reply] : Ill do a little of it. Runner& operator=(Runner& ob) //an assignme... (by jonnin)
Input storing with vector and pointers, help!
Hello! So im doing this program where the user has to write age, name, how many rooms the apartmen...
[11 replies] Last: Thanks you Yolandi and Andy for the help, both solutions were just gre... (by FreeSocks)
Radom Array Menu
Write your question here. Hello im having trouble with this code im working this is the question: C...
[3 replies] Last: int linearSearch(){ int linearSearch(int array , int ... (by chesnut03)
reading text files
how would i make a program that: -reads a text file -user inputs a string -looks for that string ...
[3 replies] Last: I wouldn't bother doing it in that order. I would ask the user for th... (by zaphraud)
stuck on array in header file
Hey everyone, im declaring an array in my header file. When i try to define it in my .cpp class fi...
[3 replies] Last: Not in the way you're trying to. (by Repeater)
hey i have an issue with my code no issues are actually present - the code runs fine however it d...
[4 replies] Last: yeah if you want to be able to kill the player from within any functio... (by zaphraud)
Decodying from int to string message
Hello, I am making a program that asks you to choose a file to encrypt a message to and then encrypt...
[5 replies] Last: Thank you so much, yes that did help! (by mikaylaelena)
File tools
How do I write a program that asks the user for the name of a file? The program should display the f...
[5 replies] Last: Hello flamminghot, In the future pick apart your instructions into sm... (by Handy Andy)
Desperate for help
Got an assignment due in a few days and program is almost complete, however I can't get it to take t...
[5 replies] Last: Wow! Thanks for the replies everyone. Yeah the sides is pointless, no ... (by EyeFive)
For loop help - estimating integral of cosine
Hello all I am writing a program to estimate the integral of cosine and compare it to the value of s...
[2 replies] Last: math.h and cmath are redundant, just use cmath. as for looping over t... (by jonnin)
Problems with converting from node* to node
Can someone please help me understand why my logic is false here? Much appreciated if so! cl...
[4 replies] Last: You're welcome - glad it helped! (by MikeyBoy)
Maybe Declaration problems,(nested classes)
Undefined symbols for architecture x86_64: "entrance::new_processor", referenced from: ent...
[1 reply] : Line 165/168: You can omit entrance:: since you are within that scop... (by coder777)
Numbers not adding together?
I am simply trying to calculate the sum of these numbers. They are listing instead of adding togethe...
[1 reply] : You keep setting the sum to 0 on every pass of the loop. Move line 29 ... (by lastchance)
Please Help My program!
Hey all! I need help with my first program! I made a guess game and i want to have 5 tries and when ...
[5 replies] Last: Sorry, my bad. You did not actually state what problem you do have and... (by keskiverto)
Questions on Destructor
1. Why is the destructor called before going out of scope? 2. Why is the statically allocated obj...
[4 replies] Last: Thank you, TheIdeasMan. You found the bug. (by phztfte1)
Trouble with error Undefined symbols.
Undefined symbols for architecture x86_64: "entrance::rbt", referenced from: entrance::del...
[2 replies] Last: Hi Peter, your reply makes my program work well, thank u very much. (by cabbdeng)
Substring not reading space?
CODE 1 #include <iostream> #include <string> using namespace std; int main() { strin...
[1 reply] : It's not std::string::substring() that's stopping at the space. It's t... (by tpb)
Print only 20 values from BSTree
Hello, I'm wondering how I can only print 20 values from a Binary Search Tree, recursively. I would ...
[11 replies] Last: sorry, forgot to add the &n to pass by referrence (by DaRealFonz)
by clbj
calculate molecular weight
i cant figure out why that my program is not correctly calculating the molecular weight of atoms. it...
[11 replies] Last: #include <iostream> #include <fstream> #include <iomanip> #include <c... (by lastchance)
Pages: 1234... 52
  Archived months: [jan2018]

Cannot post in this page. To post a new message, go to the first page.