Beginners (Page 90)

by Putler
size_t vs size_type and ptrdiff_t vs difference_type
Are there any differences between these types?
[1 reply] : size_type and difference_type are class member types which gives i... (by MiiNiPaa)
Compound interest function
Hello guys! I am writing a function that calculates a compound interest. It takes 3 parameters. ...
[16 replies] Last: Ah well, as long as it works. I suspect you need to make sure all data... (by kemort)
(C++) 4^20 problem
Hey guys, I'm a total newbie and I suck at programming. I have following problem: For CompSci. c...
[6 replies] Last: Thank you very, much now I get it. I managed to get correct, uncut res... (by anndurill)
by mtmsl
Sequentially Outputting Elements Of An Array
I've been working on an example from a book, which says to do the following: Write a C++/CLI prog...
[2 replies] Last: Yes, there seems to be a flaw in your algorithm. I believe your code f... (by squished18)
Arrow member selection
Just wanted to ask if arrow member selection operator is used to access a pointer from any function ...
[2 replies] Last: thanks (by Eslam Elmishtawy)
what happens internally in the below function call
Hi all, int func(int&a,int&b) { //some statements } int main() { int a=10,b=20; ...
[3 replies] Last: As I said, that depends on the optimizations the compiler may perform.... (by helios)
Displaying relevant values from an array
My task is to create a program that allows the user to input int values. It will then count the occu...
[1 reply] : Why are you checking ary but outputting values from intCount ?... (by MiiNiPaa)
Why isn't it giving the factorial properly.
Write your question here. #include <iostream> using namespace std; long fact(int n) { ...
[1 reply] : 1) while (n>0, f<n) is equivalent to while (f<n) 2) you are multi... (by MiiNiPaa)
why a macro defined as member function cant access the private data.
Hi All, why a macro defined as member function cant access the private data. class A { int x...
[2 replies] Last: Macros are expanded before compilation starts so they doesn't care abo... (by Peter87)
Operators, Variables, Objects
I'm just beginning to learn C++, and in the book I'm using as a guide, it asks me--as an exercise-- ...
[4 replies] Last: Well done. The point about putting it on the right line is the machin... (by kemort)
why functions in a class are defined outside the class using scope operator
Hi all, code below class A { int a; public: int func(int x); //why the definition i...
[1 reply] : why are we defining outside the class. So we would not clutter the c... (by MiiNiPaa)
by RotciV
SIGSEGV Error, return value 3221225477
Hello, I am a beginning programmer and I am having a problem with my program. My program is suppose ...
[4 replies] Last: What are you doing on line 5? (by keskiverto)
by Faurax
Compile resources in projects
Hi, this is probably a newbie question and I am not sure if this is the right forum for this. I hav...
[no replies]
Explain difference b/w the two codes
How does the compiler interpret the position of the initialization int f(1); in both the cases...
[3 replies] Last: Any initialization expression should be before while loop. (by Knightrider29)
reading a set of bits with a boolean operator, I think
For part of an assignment that I'm working on for class, I need to write a for() loop that will read...
[2 replies] Last: To check if a bit is on you can use bitwise AND. unsigned char byte ... (by maeriden)
by Cadis
Tax deduction function
I'm trying to write a function for whether or not tax deductions are applied based on income and fam...
[4 replies] Last: Thank you for all the replies! I'm still learning to use C++ so please... (by Cadis)
I keep getting an undeclared identifier error. (1,2)
Hey guys, I am trying to write a program for class and I keep getting an undeclared identifier error...
[30 replies] Last: I thought that was what your prof might be doing MJ. It's all good pra... (by kemort)
by Sylnox
Understanding Exception Object Propagation
I just read about exceptions over on, and while I think I understand most of it, I have...
[4 replies] Last: Whoops. I didn't see your edit at 8:52. To be honest, I do not know... (by JayZom)
If you want the user to input an integer value into your program for a variable named number, what a...
[18 replies] Last: Hmm. Alright. If you're on chapter 3, then you might be learning abo... (by JayZom)
what will be the program in C++ using FOR LOOP??
#include <iostream> using namespace std; int main() { int odd; int even; for(odd =...
[6 replies] Last: If you want more help, you'll need to give us more information about w... (by JayZom)
Pages: 1... 8889909192... 120
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.