Beginners - August 2014 (Page 11)

Can I use exceptions in the constructor?
 
Hello Sorry for my English in advance! Can I throw exceptions from the constructor? I want to sen...
[9 replies] Last: > there are a lot of subtle considerations when throwing an exception ... (by JLBorges)
Problem in <string> class copy function
 
I'm trying to copy a part of a string to an array using copy function. Why does the following cod...
[3 replies] Last: How to solve this? Given the length of str and the value of n ,... (by cire)
nullptr problems
 
This is a code provided at www.cplusplus.com/doc/tutorial/dynamic/. The provided code doesn't work o...
[2 replies] Last: Thank you very much. (by OmidMech)
Member function of a class is not working
 
When I run the following code it shows me |24|error: no matching function for call to ‘info::show...
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/functions/ (by keskiverto)
by h4ever
How to access member using singleton? Visual Studio watch
 
How to access Stat in watch while debuging? I have singleton with Stat class keeping information abo...
[no replies]
Can't run the program
 
I am new learner towards C++ and is doing my tutorial question. I simply dunno what is gong on with ...
[5 replies] Last: I have resolved it. it is due to have two source file with one project... (by istante)
by shekhu
fflush
 
What is the use and need of fflush keyword ?
[4 replies] Last: thanks (by shekhu)
by zachmc
Actually learning to program
 
hey guys I'm fairly new to c++ programming but I've been finding it really annoying to actually lear...
[1 reply] : if you wanna learn you should buy a book this is not a class.It's just... (by cpm14)
Bool question?
 
How do equations in bools like this determine if it's true or false, and also after it does the firs...
[3 replies] Last: @hellworld136 Correct. Even if the value is a negative number. (by whitenite1)
cant find silly mistake
 
Ok, so I'm obviously making some stupid mistake, but I've been trying to find it for 20 minutes so.....
[5 replies] Last: Thank you Duoas and giblit! (by heyyouyesyouiloveyou)
Stack trace (stuckdump)
 
Hello. I wanted to ask if you can help me, on how to understand where is the problem , when the com...
[2 replies] Last: Ok , where i can find the stack trace with symbols and context ? so i ... (by sheepnoir)
by ewilkz
Classic Hello World
 
Hello, I am having an issue with the classic hello world program. I seem to have an issue when inser...
[5 replies] Last: To use system() put #include <stdlib.h> or in C++ #include <cstdl... (by Chervil)
Store Program
 
Write your question here. Hi everyone, I have to write a store program for my assignme...
[5 replies] Last: That really doesn't help me any other tips on how to add these things ... (by neel3123)
Unexpected value change
 
I'm writing a code that saves some values to an array in a class Grid. However, my index number chan...
[1 reply] : Are you sure trapX is not out of bounds? (by Peter87)
create a program that differentiate between banks
 
Hello. I've created this code that differentiate between various uses of banks like for example if ...
[1 reply] : I've got plenty of pointers, but I think you may find the most useful ... (by rssair)
Store UTF character \u2587 into a char/wchar_t
 
When I print out \u2587, it prints out the character I want it to, but when I assign that to a wchar...
[2 replies] Last: If you are using a C++11 compiler, stick to u8 strings, and make sur... (by Duthomhas)
Problem with return value?
 
I have a getter object that is suppose to return a value of type bool(default value is false). When ...
[9 replies] Last: Conditional breakpoints have limited expressive power, or the exact co... (by helios)
Number generation and variable types
 
How could I generate numbers from 000,000,000-000,999,999 in this format: 000000000 000000001 000...
[9 replies] Last: Um... #include <iomanip> #include <iostream> cout << setfill( '... (by Duthomhas)
Code game
 
Hello, i am new to C++ and doing an assignment, "Binary Code Breaker" I've looked through the forums...
[2 replies] Last: I have also made a binary code encoder and decoder mine gives it the k... (by kmtompkins)
Array Style Refinement
 
I signed up for a C++ class during my graduate studies in 2002. The class was cancelled, I took Java...
[6 replies] Last: I've now read several articles on code commenting and see how I could ... (by unixman)
August 2014 Pages: 1... 910111213... 40
  Archived months: [jul2014] [sep2014]

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