Beginners - April 2012 (Page 22)

How to change visibility on c++ using code?
 
To be more specific. What I want is to do certain questions for the user to answer and then disappear and have another and so on. I want it to be like first the...
[1 reply] : That depends on the GUI toolkit you're using. Most provide functions l... (by Athar)
Need help with Linked Lists
 
Hi all, I am trying to program linked lists, this time without looking at the book. The program is throwing an unhandled exception, accessing memory violatio...
[6 replies] Last: Thanks so much for this help ! =) I remember reading that thread that... (by iDontGetIt)
C++ GUI Tutorial
 
Hello all, I am very much new to C++ programming, currently in chapter 3 of "C++ how to program" book. It seems like they are not talking about GUI design. C...
[no replies]
Help with printing a map
 
void MapCity(int x, int y){ if(x==0 && y==0){ cout << "|----|-!!--|---|" << endl; cout << "| | | |" << endl; cout << "|...
[no replies]
reading binary
 
I'm trying to condense some code, but am running into issues: My original code was: bool InFileH::readBin(void* val, std::streamsize size){ if (inFile.tellg...
[no replies]
by ozone
global variable not comming up
 
i am trying to write the global variable b4 the initialization but its not working, i am trying to call odd into even and even into odd, but i am really stuck i...
[8 replies] Last: O.M.G @vlad am not the 1 who posted this it was ma cousin and he his a... (by ozone)
Error! Why?
 
#include <iostream> #include <conio.h> #include <string> #include <iomanip> using namespace std; int main() { int a ; for(int i=0; i<=10; i...
[7 replies] Last: Disch "i<=10;" this means less than or equal to 10 Yes. Since i ... (by Disch)
by PRW56
error with cin.get()
 
the error is that it skips past it in the console and goes to the end, this is the form it was in directly out of the book im using, im using the GNC GCC compil...
[5 replies] Last: can someone post code that works, that uses cin.get(), with the GNC GC... (by PRW56)
Destroying any and all objects
 
How would I 'destroy' (destructor or other), or reset the data members of any given amount of objects? Likely, I would be using a single global/static function...
[8 replies] Last: Great! Thanks for the help everybody. (by cantide5ga)
is this illegeal??
 
so, in my program, I must use an equation--- where the "total" is equal to "p" times "e"with the power of "r"times "t". How would I print that? Can I prin...
[2 replies] Last: yes, i am trying to print total = p * e^(r * t). i was correct! t... (by fionwu0421)
by PRW56
unexpected class error
 
well this is word for word one of the examples from my c++ book, I have no idea what the error means, the error is: error: new types may not be defined in a ret...
[2 replies] Last: thank you, didnt notice that... (by PRW56)
Question about the refference of this site
 
I recently saw that the header windows.h is missing from the refference of that site. Why is that? Where can I find all the functions in that header? Thank y...
[1 reply] : Only standard headers are on this site. For a reference of windows fun... (by hamsterman)
by GT90
File handling functions
 
Hello, I'm almost at the finish line writing this program, but I've fallen at the last hurdle, something I cant get my head around, so any suggestions would be ...
[3 replies] Last: Would I have to put ofstream& into each printResults()? Putting the ... (by shacktar)
suggestion required
 
hi,can you plz tell me what book i should read as a beginner of c++........
[2 replies] Last: You can try C++ in Action. (by CosminNTG)
Moving the reader one space over
 
Writing a program for class to read from a file and output, and needing a little help. Data file looks like: Smith Eleanore 110/73 Get looks like: myfile >>...
[2 replies] Last: I've gotten it figured out now, thanks a bunch. (by Eli1001)
create a .def file
 
Hey everybody, I have just installed the Exress version of Microsoft Visual Studio and I am ubable to define a .def file. I would be grateful if you could he...
[4 replies] Last: I did it finally thanks! (by andrinirina)
Floating point precision.
 
Hello, Just a quick question this time! I've experienced several times that comparing non-integers to exact values is generally a bad idea (cases where (a - a)...
[no replies]
by Dmahn
file user input and getting the last line
 
Im supposed to write a program that asks the user to input a a song title and stores it into a file. the other functions are to print the most recently added s...
[4 replies] Last: pseudo code variable song infinite loop start get first line and ... (by Danishx83)
can I declare an array without declaring it's size in static code?
 
#include "stdafx.h" #include <iostream> using namespace std; void printuda(int myarray , int maa); int main() { int udam = 1; cout << "Input amo...
[6 replies] Last: ...but that would be a bad idea for a variety of reasons. That's how y... (by Athar)
by rp1011
Learning C++ from books written in 1998
 
I know this is probably going to be a pretty random question but I want to learn C++ but the only books that I have on C++ are my dad's from when he did his deg...
[5 replies] Last: yeah, I see what you mean, the object oriented part of C++ is what I r... (by rp1011)
April 2012 Pages: 1... 2021222324... 66
  Archived months: [mar2012] [may2012]

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