Beginners (Page 2)

I/O - How to read data from input file and write it to ouput file and calculate the average number
 
My input file is named scores.txt with the below information: Becky Muggah 34 65 76 43 76 34 76 3...
[2 replies] Last: Thanks, but I have not yet learned about stringstream yet; therefore, ... (by acrosby)
Linked List Help
 
Hey guys I am having problems with memory management... Each time I call the createNode function I ...
[5 replies] Last: Your lines 26-30 are close, but ... trying to read curr->next right af... (by keskiverto)
Finding the sum of an array
 
Could someone please explain to me why this the way as it is? #include<iostream> using name...
[11 replies] Last: int *array = new int ; is an int pointer , it points to a dynamic a... (by andy1992)
no matching function call
 
So I have a few errors with no matching function call line 108. Please help I deleted chunks of code...
[2 replies] Last: int tmp = Sdisk::getblocksize(); there is no matching function call ... (by andy1992)
by Musi
Initialize const global variable.
 
I've been trying to use const global variables but they never seem to be initialized even after main...
[3 replies] Last: Copy initialise a BitMask object: const BitMask MASK_ONE = <some expr... (by JLBorges)
help me on kik
 
guys i 'd like to have anyone 's kik to chat about c++ and if i will need some help to ask you. or w...
[no replies]
I need help on this coding
 
It asks me to code as this, "Write a function that has one argument called number_of_lines that is ...
[5 replies] Last: Thank you @Pindrought (by thiendo)
How to track when all the elements of a vector <bools> are false?
 
Note: I'm not using c++ 11 unfortunately so I don't have access to all_of(). I basically have a v...
[3 replies] Last: If the size of the vector doesn't change after it's constructed then y... (by dhayden)
help me with functions
 
in the race (placebet , userResponse) function the compiler is telling me that i have too many argum...
[1 reply] : You need to make sure that function prototypes, function definitions a... (by wildblue)
RockPaperScissors
 
Hello, I decided to write a rock,paper and scissors game where the computer and player take turns...
[7 replies] Last: OK. I am a complete beginner, so Rock, Paper and Scissors game requir... (by pacman169)
by drax
string arrays loop
 
Hi, In my code I would like to search through both arrays, to find if they have a matching string...
[2 replies] Last: Consider what happens if you enter "ham". When a==0, line 26 will be ... (by dhayden)
what is a return value
 
hello, i want to know what is a return value in a function! please i don 't want complicated words ...
[2 replies] Last: If you need a definition just look it up! For instance, the tutorial ... (by cnoeval)
struct vs array
 
what is the use of struct if i can just use array rather than creating object of a struct again and ...
[9 replies] Last: I think you're missing that you can also have an array of structs. St... (by AbstractionAnon)
How to print special keys
 
Hi, I'm using visual studio and can't seem to print and repeat alt 205 several times on the scree...
[1 reply] : You don't need the assignment "=" or the \ string s ( 20, '=' ); or ... (by PCrumley48)
by iluv41
Searching an array for enum type
 
I have an array that has types char, char, int, and enum type Category. I have to search the arra...
[5 replies] Last: print the titles of all the entries in a certain category How abo... (by AbstractionAnon)
prompt the user to rerun the program
 
I completed this program, but I want to promt the user to re run the program by pressing y or n for ...
[4 replies] Last: Yup - if answer is char; if answer is string, double quotes. I someti... (by PCrumley48)
Message encoder malfunction
 
I am attempting to make a program that will encode (or scramble) a message that can be decoded by th...
[1 reply] : The statements in the function are getting run in sequential order, so... (by wildblue)
What is a pointer notation?
 
Write your question here. I am wondering what a pointer notation is in C++. Can someone provide me a...
[1 reply] : int *ptr; ///pointer , these ppointer can only store an address to ... (by andy1992)
by krad23
Function with argument by reference
 
Is there any actual difference between these 3 function declarations? int f(int x) { return x; ...
[2 replies] Last: int f(int x) ; Can be called by passing any integer expression - lv... (by JLBorges)
How to read about error expecially about unresolved errors?
 
If I have this error Error 1 error LNK2019: unresolved external symbol "class std::basic_string<...
[6 replies] Last: I see. Thats really annoying. I hope they add that feature on next c+... (by procastination)
Pages: 1234... 107
  Archived months: [aug2014]

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