Beginners - April 2012 (Page 30)

Why is Multithreaded debugging difficult?
 
Why is Multithreaded debugging difficult? Plus why is it that a "thread-printf" function appears to have issues outputing data untimely when you have to messure...
[1 reply] : Why is Multithreaded debugging difficult? Most of us can't do lots of... (by kbw)
Help on assignment
 
One part of my assignment is to implement one class to get the values and set the values. The 5 parameters are 1st Parameter : sunType, String 2nd Paramete...
[8 replies] Last: Okay thanks alot =) (by CLearner88)
Problem using functions in classes
 
I am currently facing error where the compiler shows me this locationData.cpp 6 :error no void locationData::setSunType member function declared in class locat...
[6 replies] Last: A few compilers do it. It's a precompiled header file that saves on c... (by MrHutch)
what would the classes be
 
hey, i have some code here and im wondering what the classes are in it. Also what would the attributes and operations for each class be? This is not my code but...
[8 replies] Last: how does timing come into it? it doesn't need a ticker. (by xhavokx)
add char array into another char array
 
hello, the question is how to add char ca and char cb into char c? //char c {'0','1','2'} = char ca{'0'} + char cb{'1','2'} tnx
[1 reply] : If you have char ca = {'0'}; char cb = {'1', '2'}; car c ; to ... (by hamsterman)
by Haijal
I am having a error and I can't find the problem
 
//Specification: Append and display records in a address database #include <iostream> #include <fstream> #include <string> using namespace std; //proto...
[3 replies] Last: Except that's not what you're doing in line 101. " " is not ' ' The ... (by cire)
by Hexicz
Newb function question.
 
Hey everyone! I am quite new to c++ and programming in general, so this will be a newbie question. I am going through the tutorial provided by the cpp web...
[2 replies] Last: I see, thank you :)! Now looking at the by reference section this make... (by Hexicz)
cplusplus exercise
 
I am trying to answer the exercises provided by the site,here is the link. http://www.cplusplus.com/forum/articles/12974/ and im stuck at pancake glutton; I ...
[3 replies] Last: I can't really seem to pinpoint where to put the codes you said... can... (by chaossettler)
Struct assignment (very difficult)
 
On the keyboard type sequence records containing data of a medical examination of schoolchildren: Full name, date of birth, height and weight.Print out entere...
[15 replies] Last: what? no. basically i need to enter the information and sort it accord... (by cocopuff)
Default argument in a function
 
When a normal function is called, first its arguments r pushed to the stack. In a fuction has default parameter, how compiler handle it in both the cases whe...
[no replies]
Look for assignments to write
 
Im always rummaging through this forum looking for assignment i can write. Ive solved a good amount of project Euler but i feel that only helps me with math log...
[2 replies] Last: exactly, thank you very much (by Need4Sleep)
question on decrementing
 
Hi, I'm trying to decrement health so when it gets to a certain level it will call up another animation, but it doesn't seem to work right. Any help would gr...
[3 replies] Last: ....ya.. Ive actually modified it a couple times. I'm thinking it migh... (by mhouse777)
by Lebron
C++ Please help, very small answer..
 
I wrote the codes but I couldnt add that part After a game has been completed, the program asks the user if they want to play again. The user is allowed to pl...
[3 replies] Last: I learned something new.. it worked thank you cire ;) (by Lebron)
Programming Project Help!!
 
I am currently working on a C++ project and i need some help these are the instructions... The goal is to build some "event object" classes that would be usefu...
[4 replies] Last: Im pretty sure i have the event.h and the main.cpp correct but im star... (by jwblair)
Calculate the surface area, volume, or cross sectional area of a sphere
 
I somehow managed to get stuck in an infinite loop and i have no idea how to fix it. #include <iostream> #include <iomanip> #include <cmath> #include <ma...
[3 replies] Last: Yes i saw that now. Thank you for your help. I ran into another proble... (by SocksSocks)
making a function using structures?
 
problem: 4 a. Write a c++ function named larger() that returns the later date of any two dates passed to it. For example, if the dates 10/9/2015 and 11/3/20...
[1 reply] : 1. Use code wrap [ code] Code here [ /code] 2. Indent 3. Point out whe... (by paulthepenguin)
Error on time conversion program
 
Good afternoon, I wrote a program that convers 24 hour input from user to a 12 hour time with AM and PM. I did it without functions and it worked perfectly. T...
[3 replies] Last: #include <iostream> #include <cstdlib> #include <time.h> using name... (by ui uiho)
Doesn't recognize variable value including spaces
 
Okay, so I'm starting out just now making a simple Q & A program for a class right now, but when I type in the correct if value for "question", it skips right t...
[4 replies] Last: How to system("pause"): http://cplusplus.com/articles/iw6AC542/ (Sorry... (by Duthomhas)
a simple question
 
the question goes like this, "create a class named Book. data member include the book's title, author, price, number of pages. member function include data entr...
[1 reply] : class book{ private: std::string title, author; int price, pages; pu... (by ui uiho)
what is 'double' used for?
 
look at this functon double substract(int num1, int num2){ return num1 + num2; } what is double used for on that function? thanks
[2 replies] Last: the function you posted has no need to be a double. change it to int ... (by ui uiho)
April 2012 Pages: 1... 2829303132... 66
  Archived months: [mar2012] [may2012]

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