Beginners - May 2014 (Page 36)

Allowing access(friend)- C++ Primer Exercise 7.32
 
I would like the function clear in Window_mgr to access the private part of Screen, but I dont know how to #ifndef SCREEN_H #define SCREEN_H #include ...
[5 replies] Last: @cire Thank you for your quick reply, this is from my book, and these ... (by closed account EwCjE3v7)
Help with While loop
 
Can someone tell me why my while loop at the end always triggers an "invalid response" even though it does equal "y or n" (Note I did add a cout after the cin ...
[5 replies] Last: kesk it's a "char" (by mebruler)
Build Error?
 
I am using to try and make a calculator. When I try to build the code it gives me this error. ||=== Build: Debug in Calculator Final (compiler: GNU GCC Comp...
[2 replies] Last: Thanks. (by Mstoltz17)
Homework help
 
I literally can not read what my professor wants this function to do, i get the jist but just not sure how he wants it implented, a little help explaining pleas...
[1 reply] : I literally can not read what my professor wants this function to do,... (by cire)
Random char (a-z) withouth repeats
 
Hi guys, im doing a game, which needs to repeat at least 26 times, once for each letter of the abc, which needs to be random every time. I got this, but is not...
[3 replies] Last: thanks a lot both =) (by dualdark)
type Double
 
i want to know when do we use type double ? Thank you !
[1 reply] : Since computer memory is limited, you cannot store numbers with infin... (by JLBorges)
c++ using structures and arrays in files help
 
help im stuck i want to get everything starting from the second place as the question says Description: After Dubai organized its first International Ma...
[no replies]
by merta
I'm sorry i cannot do this problem
 
I want to create a tree like this: 0. level = A (the root) 1.level = B( left of A) C ( right of A) 2.level = D( left of B) E ( right of B) F( left of ...
[4 replies] Last: I'm sorry, this cannot help me, ı cannot solve the problem? Another a... (by merta)
by yemmh
Latin Capital Thorn Problem in C++
 
#include <iostream.h> #include <conio.h> int main() { clrscr(); int option; do { //Displaying Options for the menu cout << "1) 5...
[1 reply] : Remember you are printing to a console - it might not be able to displ... (by TwilightSpectre)
ctor not allowed return type
 
Hello. I wrote a part of code I need for my projects in algorithms class, and i get this message error C2533: 'Entropy::{ctor}' : constructors not allowed a ...
[2 replies] Last: Yeah, thanks, my bad. (by lovebites)
Dynamic char array in c++
 
I have to input an expression(without space) e.g. <><>>>><<<<. Currently I am doing it with char e . But since the actual expression length can range from 1 to...
[3 replies] Last: you would use std::string e; the length of each std::string is theoret... (by Little Bobby Tables)
List Sorting
 
I need to sort my data. Here are part of my code. void Branch::Check(string code, int month){ ofstream rf("Rezultatai.txt", ios::app); rf.setf(ios::...
[no replies]
hangman
 
okay i need any ideas you guys can provide. I'm making a hangman game and while i know it is overly complicated, i don't care about that just yet. Running it, i...
[1 reply] : Your biggest problem is this i know it is overly complicated, i don... (by admkrk)
Creating Native Array of Custom Class
 
I am attempting to create a native array of objects which I have to reiterate through over and over again for OpenGL. So performance is key. The problem i...
[1 reply] : Maybe I should explain a little about how this is supposed to work. M... (by ckoeber)
Error Catching Question
 
In this constructor I am loading descriptions/area names from files, is this an effective way of error checking? I want to make sure that if for some reason the...
[1 reply] : In this case, it looks like you want to use exceptions. They also allo... (by TwilightSpectre)
by quayda
No Output for Array
 
I've created arrays that consist of the times that certain meds are supposed to be taken. I've voided out most everything just so that I can work on the first a...
[12 replies] Last: Thank you so much!! It's so much easier to learn when you can understa... (by quayda)
Help Please
 
I am trying to make a basic calculator but my else statement is not working. Please tell me how to fix it. Here is the code. | |...
[14 replies] Last: Thanks. (by Mstoltz17)
So close - At my wits end!! Void function help
 
I have a project that deals with calculating the best day for business using a void function found near the end of the code. Only problem is it won't pass anyth...
[3 replies] Last: You're passing them your arrays not your data types =D The correct va... (by closed account j3Rz8vqX)
by wolfv
Is there a way to force Class to reinitialize?
 
I am testing a class in a loop, where each iteration of the loop will start a new test case. Each iteration of the loop needs to start with the class in it's in...
[4 replies] Last: Thank you Smac89. That worked. (by wolfv)
Having trouble with the Sort function
 
Hey, I am working on a program that reads in a file with a student's name,their id number, 5 quizzes,2 midterms ,and a final. After that i have to drop the stud...
[4 replies] Last: Right... because you aren't sorting the students, you are sorting each... (by Duthomhas)
May 2014 Pages: 1... 3435363738... 55
  Archived months: [apr2014] [jun2014]

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