Beginners (Page 81)

I don't know why the output is 4 2 4 because I don't understand line 7 #include <iost...
[2 replies] Last: int x = 5; int y; int* px; int* py = &y; // py points to y px = &x ;... (by nvrmnd)
Look for a data structure like sets in Pascal
In Pascal, I can write a boolean expression like ch in ['Y', 'y', 'N', 'n'] to find whether the ch...
[7 replies] Last: You need to write these helper function once. Put them into header fil... (by MiiNiPaa)
Hi i have strange problem im new in c++
when i compile this program its only show me the C why?!?? #include <iostream> using namespa...
[4 replies] Last: thanks pal :)) (by raminlich)
by bbb718
help n eed quick help on easy problem
need quick help how the heck do i set this up been at it for 4 hours now and nothing The main p...
[5 replies] Last: Err,. That statement is not for you Peppercorn, it's for bbb718, I bel... (by LuminaChen)
Loops and Functions
I'm creating a small program that asks you to type in a number to display a characters Bio. It work...
[2 replies] Last: You have been very helpful thank you for taking the time to reply! (by superdaz83)
by enemy
How many elements has that array???
Hello! If U rememebr this program, array a /array z should have 3 elements each. In first functi...
[4 replies] Last: Many thanks! Clear now! (by enemy)
Any help plz ! The grades is given out of 100 and it have to be out of 20 I faced a l...
[3 replies] Last: The formula is: for (int i = 0; i < NUM_GRADES; ++i) total += gra... (by Stewbond)
Ilteration code C++
Hello. I need a simple code which would calculate me this (need to use one of theses functions: whi...
[1 reply] : int n; std::cin >> n; double sum = 0; for (int i = 1; i <= n; ++i) ... (by MiiNiPaa)
by enemy
How to empty array in another function?
Hello! I generated an array in pus function. Then, I want to empty it in po fundtion. Please, how to...
[12 replies] Last: Now it WORKS!!! THNANKS!!! (by enemy)
If else misbehaving.
I have to write a program that outputs certain sentences based on the size of a number. #include...
[4 replies] Last: There is no need to check if it is greater than 0 on line 19. If it is... (by giblit)
Pointer and Memory Questions.
Hello, I've wrote a simple program that uses pointers and dynamic memory to create an array with an...
[9 replies] Last: Exactly. Sorry about the roundabout explanation, it was like 7 am and... (by maeriden)
Delete file based on number [i]
Hi I have written a program that allow user to add in their file. But now I want to allow the user t...
[no replies]
It's been a while since I have been here. This is very basic, I need a way to open a file, read only...
[6 replies] Last: Thanks but it seems I have stumbled upon a new issue. I'm going to try... (by RealGiganitris)
by odogg
multidimensional vector
Hi How to create a multidimensional vector in C++, and assign all the elements to default values...
[2 replies] Last: or: #include <vector> #include <iostream> int main() { std::ve... (by cire)
by stdeez
input files
Given this input: 5 4 1 2 45 1 3 4 2 3 16 2 4 6 3 4 8 How do I read in the 5 and store i...
[1 reply] : int myInt; filestream >> myInt; (by Yanson)
Problem with struct member vars
So I thought I had a solid understanding of structs, but I'm running into some problems. I have a st...
[3 replies] Last: I see, so assigning it must be done outside the scope but modifying it... (by hinesro)
by Legato
Explain left and right associativity to me
Hello, when i first was trying to learn c++ i associated cout with <<, the << i envisioned goi...
[5 replies] Last: is cout and cin just used for a command prompt output/input? If you w... (by maeriden)
Bad practice with inline functions?
When writing inline functions when defining classes, if i have a simple "get function" that only ret...
[3 replies] Last: Makes sense, thank you. I don't have a professor as I am teaching myse... (by heyyouyesyouiloveyou)
Move cursor in terminal Mac OSX
In Windows, you can include <windows.h> to accomplish this with the SetConsoleCursorPosition() funct...
[no replies]
merge sort problem
i had 2 linked lists and i want to merge them the out put is different . please help me . thanks . ...
[2 replies] Last: yes it's right (by max v max2)
Pages: 1... 7980818283... 115
  Archived months: [feb2014]

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