Beginners - March 2016 (Page 40)

confusion with primary expression if/else if statements
 
I keep getting an error code at line 39 that says a primary expression is required before || token. I've read some of the forums and googled a little but I can'...
[3 replies] Last: Thank you so much for that little piece of help, that makes a big diff... (by jjkrynock)
Trying to use two functions
 
My first time writing functions, really. I'm getting the error "a function definition is not allowed before '{' token" at the second function. What am I missing...
[3 replies] Last: @thors36, thanks I caught the missing braces there after posting this.... (by kanjiwa)
struct data type error
 
fixed
[4 replies] Last: Omg it runs but still theres a problem with the code. I will try my be... (by chang123)
Towers of Hanoi with dynamic array and 2 classes
 
I am at my wits end at this point. I cannot get the contents of the dynamic array to stay set once I exit the function that sets all the contents for the peg. ...
[1 reply] : The header file for the tower game, with three calls to the peg class ... (by tigerlilycnm)
Call A Function in one class from another class
 
Is it possible to call a function inside one class from another class? I have one class that holds a HashTable. It has a get function which returns a pointer to...
[1 reply] : here is simple example of accessing data from another class. http://c... (by rafae11)
Whats wrong with my std::enable_if?
 
Hi I want to overload output operator<< but I want to do it differently for integers and for floating point numbers so I tried to define it like this templat...
[2 replies] Last: Tnx a lot for reply man! Just come home and I was ready to post a bit ... (by etrusks)
Are Different Coloured Strings Possible In C++ Console
 
Are Different Coloured Strings Possible In C++ Console?
[1 reply] : There is no "C++ console". There are various terminal emulators that ... (by keskiverto)
by nbro
Program that calculates the frequencies of characters read from the standard input
 
After almost 2 years without touching any C or C++, now I need to do it again, finally :) even though I've forgotten a lot things. I've created a program that ...
[4 replies] Last: Ok, thanks. At the end I decide to go with your way ;) (by nbro)
opening files
 
does anyone know how to open file in macbook air using code::blocks because I'm having trouble opening files.
[4 replies] Last: OSX uses a Unix-like convention for file paths. This means that you us... (by Computergeek01)
How do I count occurrences of upper and lower case letters as the same?
 
Write your question here. I'm writing a code that counts the number of occurrences of each letter and then output the number of times for each. However I want ...
[2 replies] Last: I just need to count lower and upper case as the same. Why do you ... (by Thomas1965)
Good SDL tutorials
 
I am having trouble understanding Lazy foo's SDl tutorials. Are there any tutorials out there that are simple, thorough, and explain each command completely? ...
[no replies]
Why do we need to free memory?
 
So I'm working with SDL2 and being a good little programmer I make sure to delete any pointers, windows ( SDL_DestroyWindow ), and textures ( SDL_DestroyTexture...
[12 replies] Last: @Moschops I'll give that a try. (by CGunn86)
Need Help For nested loop
 
do{ MAIN MENU 1. Count String 2. Random Numbers 3. Exit Enter Your Choice: if (1) Enter String: EXAMPLE Do you want to try again? y/n (if YES it will just retu...
[4 replies] Last: @theturk1234 & OP - you have some problems in the code you posted whic... (by AbstractionAnon)
Flush & Endl problem
 
Dear all, I'm new in programming and I'm just testing Arrays with pointers. Problem: 1. If I choose endl then it pick 2 element of the array 2. If I c...
[4 replies] Last: Why do you think it is a compiler problem? Chervil 's explanation sh... (by AbstractionAnon)
Linear Search Function
 
I am trying to make all the characters in an array uppercase, however it is giving me an error that says: cannot convert std :: (aka std::basic string<char>)' ...
[1 reply] : line 1: You're passing an array of std::string objects. line 10: Yo... (by AbstractionAnon)
by Mohi
Making some sort of intelegent table :D
 
Hello guys, I have written a code to get information of 10 employees including First Name,Last Name,National Code,Starting to work Time and finishing time it wo...
[3 replies] Last: Line 77: timeOutput() is a void function. You can't cout a void. If... (by AbstractionAnon)
I need help removing the comma and some help with managing a "word"
 
Let's suppose that this is an another .txt file; max,6,13.6,84.9,10.1,47.4 And this is what I write for the file input. #include <iostream> #incl...
[3 replies] Last: That was just an example of how to correctly test for input failure in... (by AbstractionAnon)
by Rawrr
Troubles with Functions
 
I am having trouble getting a char function to work, I have everything else working, but for some reason when i try to run my program it is telling my that I am...
[2 replies] Last: So, since getFahrenheit and getCelsius are only actually doing an equa... (by Rawrr)
I need help removing the comma and some help with managing a "word"
 
Let's suppose that this is an another .txt file; max,6,13.6,84.9,10.1,47.4 And this is what I write for the file input. #include <iostream> #include <fst...
[1 reply] : Do not duplicate post. http://www.cplusplus.com/forum/beginner/186054/... (by AbstractionAnon)
std::ifs.seekg problem
 
Hi, I was trying to create class through which I could read specific characters in a file using operator and it kind of worked. It was working if there was ...
[5 replies] Last: As always thank you man! Looks like the book is not that super in dept... (by etrusks)
March 2016 Pages: 1... 3839404142... 47
  Archived months: [feb2016] [apr2016]

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