Beginners (Page 72)

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)
by Kernul
Searching for sequence in a file
This is an exercise I found: With a file containing a very long sequence of numbers, write a program...
[19 replies] Last: Oh right! Anyway, now it works! Thank you for your help! :D (by Kernul)
Using Stored Values
Hello. I'm a beginner to C++. I'm trying to make a simple program whereby the system asks the user...
[1 reply] : You could always use a container to store these answers. I would proba... (by JayZom)
convert 2d character array to 2d integer array
simply what i want to know is if i can take a 2d array of characters and convert them to a 2d array ...
[1 reply] : That isn't a 25x25 array, that's a 5x5 array. You'd have to use a 2x f... (by Ganado)
how to use "friend"
Hello, I am having an issue with my program, but I don't know what I am doing wrong. #include ...
[2 replies] Last: Oh I think I understand, you could only something similar to what I tr... (by heyyouyesyouiloveyou)
Pages: 1... 7071727374... 102
  Archived months: [aug2014]

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