General C++ Programming - July 2016 (Page 5)

pointer variable used as type specifier
In typedef struct WSAData { WORD wVersion; WORD wHighVersion; char szDescription[WSADESCRIPTION_LEN+1]; char sz...
Jul 21, 2016 at 4:08pm
[1 reply] : A typedef can declare multiple types. http://en.cppreference.com/... (by AbstractionAnon)
Substitute for goto
Well, I'm trying to eliminate all the goto in my code, but I can't figure out a way of doing that if the command is inside a do/while loop. Any tips, guys? =) *...
Jul 21, 2016 at 3:01pm
[4 replies] Last: Thank you new1! Doing by your way, it gives the expected result, but I... (by closed account 21vXjE8b)
Visual Studio windows for help
I am using Microsoft Visual Studio Community 2015 and I am working with some friends to make a little console text RPG, then we realized that running it in the ...
Jul 21, 2016 at 2:52pm
[1 reply] : https://www.youtube.com/watch?v=YR6fxe1wa8g&list=PLS1QulWo1RIZz6uDid--... (by Thomas1965)
Polymorphism question
I have a base class as follows: class SYMBOL : public std::string { // Bunch of SYMBOL specific attributes protected: virtual COMPARE_CC Com...
Jul 21, 2016 at 2:22pm
[4 replies] Last: I like your bowl of fruit metaphor. :) I think I've found a solution ... (by AbstractionAnon)
by new1
Update the time in between dates !!
Hello, I confused with this, i want to find the time count for day to day in a week. Ex: If suppose we specify some flag setting as 'week' in code. Then it wi...
Jul 21, 2016 at 1:40pm
[no replies]
Function to always round up to the nearest tenth (1,2,3,4,5)
Hello, I'm trying to figure out how to make a C++ function that always rounds up to the nearest tenth. For example: A value of 20.5 would remain 20.5 A v...
Jul 21, 2016 at 1:12pm
[88 replies] Last: Of course, but I hope I haven't put you off . It's like if you wanted... (by TheIdeasMan)
C++ or maybe F#
Hello. Not sure if the right subforum, but here goes... I just recently started to learn C++ and reading about it i stumbled upon F#. As i'd like to learn a...
Jul 21, 2016 at 10:04am
[6 replies] Last: An other approach to find the 'righ't language is to ask yourself "In ... (by closed account 48bpfSEw)
by hm2251
Question
What software applications where 1-D and /or 2-D arrays must be used in the program? List only two application and explain a)Why do you think there should ...
Jul 21, 2016 at 4:40am
[2 replies] Last: Images are basically 2D arrays, and videos are 3D arrays. (by LB)
by Leria
Books to clean my C++ Knowledge
Hello cplusplus-forum : ) I'm looking for a book to get a clean understanding of C++11/14. Since I learned with questionable sources, I would really like ...
Jul 21, 2016 at 2:31am
[11 replies] Last: @Joe Are there any C++ books recommended for C++ experienced programme... (by Naughty Albatross)
by CMOM
C++ Array Sorting Help
I have finished my code which is used to sort an array, however I continuously am getting an error on line 44 saying "error: expected primary-expression before ...
Jul 21, 2016 at 1:59am
[2 replies] Last: [quote=TheIdeasMan]Just a note for the future :+) There also shouldn'... (by Naughty Albatross)
Make a loading screen
I am trying to make a text RPG and I have a series of class creators, for example, it takes a long time to make all the NPC's in the game, so, for the users ben...
Jul 20, 2016 at 8:59pm
[1 reply] : Here you go. #include <chrono> #include <iomanip> #include <iostrea... (by Duthomhas)
Importing SFML header files into Xcode 7
Hey guys, So I have just began to dip into media libraries and I am having trouble importing the sfml header files into xcode. When I choose the SFML applicati...
Jul 20, 2016 at 7:52pm
[1 reply] : This is not a "general C++ programming" question. It is quite specifi... (by PanGalactic)
implementing virtual function; no member function declared in class
I get the following error: no ‘CefRequestHandler::ReturnValue SimpleHandler::OnBeforeResourceLoad(CefRefPtr<CefBrowser>, CefRefPtr<CefFrame>, CefRefPtr<CefR...
Jul 20, 2016 at 3:25pm
[5 replies] Last: I got this figured out. thank you. I had to reinstall everything and t... (by wrightpt)
C++ ifstream problem
Hi everyone. I'm having a problem when my program try to read out a number from my .txt or rtf. file. Can you take a look at my code and tell me why am I gett...
Jul 20, 2016 at 12:22pm
[6 replies] Last: When you write 1234 to a rtf file the file will contain: {\rtf1\ansi\... (by Thomas1965)
Trouble Removing and Renaming Binary Files
I tried to write a Program to Insert Information of an Item to an existing Binary File. But something is fishy. The Compiler shows NO ERROR. The New Records ...
Jul 20, 2016 at 11:25am
[5 replies] Last: Sorry, After a self-compilation, I found that the trouble isn't in Ins... (by Science001)
by kugen
switch statement
Currently my code is not working, Im trying to count the total of each remainder from the 20 numbers user inputs. How shall i improve it so that i can total the...
Jul 20, 2016 at 8:57am
[5 replies] Last: http://www.cplusplus.com/forum/beginner/194552/ (by TheIdeasMan)
initialize member list for stack
Hi, I know vector & array containers are more suited for this, but I want to know how to initialize stack container with member list, if possible. If its in th...
Jul 20, 2016 at 8:13am
[3 replies] Last: @ Arslan7041 My Bad !! !FacePalm! I was discombobulated: std::stack... (by TheIdeasMan)
Roll Dice Program
Hi, I'm currently working on a dice program in which I'm to create a function (called rollDice) that rolls a pair of dice until the sum of the numbers rolled is...
Jul 20, 2016 at 7:17am
[3 replies] Last: [quote=TheIdeasMan]Just a note for the future :+) There also shouldn'... (by Naughty Albatross)
by DrFre
converter error
Hey folks I got the following function definiton ReportResult SendCrashReport(const wstring &url, const map<wstring, wstring> &p...
Jul 20, 2016 at 7:01am
[5 replies] Last: the calling convention didn't help. I just marked my callback function... (by DrFre)
Can't get my function to run
//Ask the user to enter a number. //Then tell the user whether the number is positive or negative and whether the number is even or odd. //Note that 0 is cons...
Jul 20, 2016 at 1:30am
[3 replies] Last: It compiles and asks the user for the integer. It works up to the Sign... (by stpeter97)
July 2016 Pages: 1... 34567... 13
  Archived months: [jun2016] [aug2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.