Beginners - January 2016 (Page 16)

Subscript Operators - HELP!
 
Write your question here. //my .cpp file #include "../include/dblstk.h" #include <iostream> #include <stack> DoubleStack::DoubleStack(){ stack...
[8 replies] Last: @ Crthomas I just noticed one pedantic thing: Name your header and ... (by TheIdeasMan)
expected ',' or ';' before '{' token
 
I know very little about code in general. I am watching a "all in one" video tutorial on C++, but I wanted to take the lesson of Switch statements above and bey...
[11 replies] Last: Learn cpp is really good, I used that before cplusplus.com @TheIdeaM... (by RUNNER PRO AGARIO)
Code C2664
 
I am getting the error HMODULE LoadLibraryW(LPCWSTR)': connot convert argument 1 from 'const char ' to LPCWSTR' and argument of type "const char *" is incompat...
[4 replies] Last: Missing closing parenthesis. // timebeginperiod TimeBeginPeriod = (ti... (by JLBorges)
input file won't open
 
My input file won't open. #include <iostream> #include <string> #include <iomanip> #include <fstream> using namespace std; //functions... int load...
[4 replies] Last: oh ok. (by RUNNER PRO AGARIO)
Problem with if/else statements. Need help!
 
I am doing an assignment and I used if statements so many times, but today I got an error I don't know how to fix. I checked all my brackets and what not and ye...
[2 replies] Last: Thanks! (by masterofbob69)
2D STL Vector pass by value
 
I'm reading through an input file that is formatted as: f 123/456/789 987/654/321 741/852/963 I've parsed it so that the "temp" variable stores each 3 digit in...
[3 replies] Last: push_back makes a copy, a whole new instance of the object, on the end... (by Moschops)
Where is my move assignment?!
 
Hi, I was having this exercise where I had to implement simple default constructor constructor copy constructor copy assignment move constructor move a...
[5 replies] Last: Tnx for this good update man! Checked out both of them. (by etrusks)
How to not allow the user to type something on console
 
I know it is pretty noob question but i was not able to find any information on internet. I'm working on a fake loader.how can i not allow the user to type some...
[no replies]
String Parsing
 
Hello all, I have a text file that has multiple geometries in it that I'm trying to parse. The issues is that they are delimited differently. I am looking for a...
[5 replies] Last: Thanks for your help guys. For any that run into this issue after me, ... (by HungryX2Hippo)
by Dreibs
Problem with this Complex Class
 
Long story short, The code originally compiled without the ostream and istream. I don't understand how those two work all that well, and operators aren't my thi...
[5 replies] Last: > after tinkering with it a bit. If the errors do not correspond to th... (by ne555)
Help with ch 6 in programming and principles with c++
 
In ch 6 "Writing a program", what is the use of the function Token_stream(); inside that class? Dont we make a token stream by saying" Token_stream ts; ". Wha...
[3 replies] Last: Token_stream::Token_stream() :full(false), buffer(0) // no Token i... (by Moschops)
by asya
Switch statement to convert number to word
 
Hello, I have another program to write: Write a program using a function and a switch statement. The user should be prompted to enter a number in main. The fu...
[2 replies] Last: Thank you Ispil. It worked. (by asya)
SDL Help!
 
I've been learning SDL through a YouTube video series (CodingMadeEasy). I have a problem with the window and drawing things to it: When I make the window it sho...
[7 replies] Last: well I'm an idiot :| Thank's for the help (by jdm1891)
Problem with journal program
 
I'm trying to make a basic journal program. The primary problem I'm having is with the do while loop. When I input yes/no the loop doesn't end. Also if y...
[1 reply] : Line 43 should be }while (y==1); Might I suggest also that instead ... (by Moschops)
Trouble with structs
 
Hello all, i have an assignment that requires 2 structs (1 of them nested inside the other) with an array of the struct. the user will input data such as name ...
[3 replies] Last: GetData needs to return a value So... um... make it return a value. ... (by MikeyBoy)
why are my GCC applications so huge on windows?
 
Write your question here. I wrote some of what I thought was pretty elegant, concise, and efficient code... but GCC still outputs this file at 1.5 megabytes. ...
[2 replies] Last: > options I can feed the compiler to try and optimize for filesize bet... (by JLBorges)
how to read integers from a binary file
 
i need a help to know how to read integer value from binary file and store it in a integer buffers. later i read integers from this buffer and do some processin...
[1 reply] : Reading from file: http://www.cplusplus.com/doc/tutorial/files/ The se... (by Thomas1965)
How To Use an Offset?
 
How do I add an offset to an address? 0x79C500 is the Address 0xA00 is the Offset 2030000 is the Value private: System::Void button1_Click(System::Object^ s...
[no replies]
How can I optimise this
 
I'm sure my order checking for loops can be optimised here... #include <string> #include <iostream> #include <vector> using namespace std; string gl...
[no replies]
Placeholder object instance;
 
Hey guys, I'm trying to solve an A* pathfinding problem, I've ran into a problem where I can't set a placeholder object to get filled in the constructor later ...
[2 replies] Last: Ah thanks, I just made parent a list of Nodes and pushback into it in ... (by Code Apperentice)
January 2016 Pages: 1... 1415161718... 29
  Archived months: [dec2015] [feb2016]

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