Beginners - June 2010 (Page 20)

Exceptions in Constructors
 
Say if two constructors throw exceptions, then the compiler calls terminate()... meaning it doesnt know what to do.. The pity fact is that I am not able to u...
[2 replies] Last: Ok, that section doesn't help answer the question. I think the ques... (by jsmith)
nOOb trying to learn C++ with MS visual studio.
 
I'm reading some tutorials on C++ and I'm having problems right off the bat. I'm just trying to make the first example in the book work: #include <iostr...
[4 replies] Last: Thanks guys! especially for all these fantastic links. I am capable of... (by avocadobaby)
Program won't wait for input ??
 
Hello again, i've a simple little program below that compiles ok and seems to work. Basically it asks you to input a letter until a 'Q' is detected and then qui...
[3 replies] Last: Here is the program doing the same task .... #include <iostream> ... (by systempause)
pointer
 
Hi . what is my error in program #include <iostream> using namespace std; int main() { char name ; char* ptr1,*ptr2; cout << "Enter ...
[4 replies] Last: Ok.I can try...Thanks.. (by systempause)
Weird compiler error?
 
There is nothing wrong with the code but the compiler throws this error: 1>arrfun3.obj : error LNK2019: unresolved external symbol "void __cdecl show_array...
[8 replies] Last: In summary: Your declarations and definitions have to be of the exact... (by magnificence7)
by geoff
Reading/Writing binary records
 
Hello, I need to write my own file format, for storing vertices and the like. I've been googling for a few days now and looking at quite a few examples( incl...
[1 reply] : Fixed, stupid thing to do. I was opening and closing the log in the fo... (by geoff)
Is it possible to have stl containers as default parameters
 
class ABC { ABC(int i,int j=0); } The above code takes j as a default parameter. But is it possible to assign a default value to an std...
[12 replies] Last: Thanks firedraco & Albatross If my understanding is rite about the... (by karthick88)
Calling window codes
 
So what I did is make a form in Visual Studio, and I want to copy and paste it into a dll I am making, how can I force this dll to make the window appear when I...
[1 reply] : Like, I figured I could use Form.Show or FormShow() which ever one it ... (by C to the UNIT)
Is it possible to assign null value as the default value for a default parameter
 
consider the following prototype void function_name(std::string str1 , std::string str2="karthick"); Now, will i be able to assign a null value...
[3 replies] Last: I think I asked a dumb question. There is no way of assigning a nu... (by karthick88)
by k1313
Self-starting program???
 
hi, i'm fresh in c++. i've just finish my first "big" program :). is it possible to make it and save it as self-starting one? maybe as .exe? to launch it on oth...
[6 replies] Last: As I said, you need to link the CRT statically. See http://stackover... (by Athar)
Error with MessageBox on console.
 
I've been getting this problem with my program. Every time I run it, it continually pops up blank messages. #include <iostream> #include <fstream> #include...
[3 replies] Last: The file_exists () function should return bool . That'll fix it. ... (by Duthomhas)
Adding linear linked list capability to an existing program.
 
For my final program for my CS class, I am supposed to convert this program I already wrote which is basically an electronic journal to store the journal entrie...
[2 replies] Last: OK, we actually did learn about LLL, we just never saw a complete prog... (by rylarson)
how to show the user the list of book from which the user want and....
 
#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv ) { int numchosen, bid=0, numbc=0, i=0, m, math_starting...
[4 replies] Last: can u help me to modify it by using vector that have mentioned to me..... (by beginner01)
c++ needs some feed back :)
 
An object of class LabMetaData has the following attributes: Lab Number - A whole, positive number. Zero is valid. Lab Title - A title for the Lab Assignme...
[2 replies] Last: well for my lab it asked me to "In this lab you will create a new clas... (by jade777)
Can this be done any cleaner/more efficient?
 
I made a small database and it works perfectly, but is there a way to make it cleaner? include <iostream> using namespace std; string gr = "grootte: "...
[8 replies] Last: Well, I post because I like helping people, not because I like posting... (by m4ster r0shi)
by wtf
Something strange...
 
Why does the following code compile? int fuck ; fuck[-2000] = 3; cout << "fuck[-2000] = " << fuck[-2000] << "\n" << endl; I've just noticed some...
[4 replies] Last: Probably it had not as much to do with the fact that it's less out of ... (by Albatross)
ASCII code
 
hello for all I want to know what is the ASCII code for Enter ?? and how to use it in any program ?????????
[7 replies] Last: http://www.cplusplus.com/forum/articles/7312/#msg33734 (by Duthomhas)
by neeko
Stack around variable corrupt
 
My program keeps crashing during cleanup (return 0;). The error message I am receiving is; "Run-Time Check Failure #2 - Stack around the variable 'variable' ...
[2 replies] Last: Edit: Nevermind. I figured it out. Just another dumb mistake of not de... (by neeko)
type conversions
 
The book I'm learning C++ with briefly (as in a couple pages) talks about using the typeName (value) // converts value to typeName type to convert valu...
[2 replies] Last: So, typeName(value) creates a variable (basically) of the type you spe... (by Kieth89)
by Frouge
Easy answer needed!! Will not allow input
 
I am very new at C++, but I have perused the forum and saw only one similar quesiton. I am writing a program that will prompt the user for inputs, one a name,...
[4 replies] Last: Everyone, thanks I ended up commenting out "//" anything with the nam... (by Frouge)
June 2010 Pages: 1... 1819202122... 26
  Archived months: [may2010] [jul2010]

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