Beginners - August 2014 (Page 24)

by PCPC
Object question
 
I am studying C++ as a newer, I would like to know the idea for the following lines as possible to work? Thanks any experts to help. iOpSetA = myObj; ...
[2 replies] Last: If those operators exist, you'd invoke them with: iOpSetA = *myObj; ... (by kbw)
Arc Synthesis tutorials help
 
Hello there I have started again trying to learn C++. I am trying to get the hang of graphics programming so have thrown away a lot of stuff I found which only ...
[4 replies] Last: I kind of know what premake is doing, just in very simply terms, thats... (by CrazyCrinkle)
Vignere Cipher
 
Hello Guys, Not sure if I've advanced past beginner yet so I'll post this here, I'm having some problems with my Vignere Cipher, it is only reading the first...
[5 replies] Last: ah wonderful ive tried both, I have run into a problem with extern int... (by MrBeavis)
getline is stopping at quotations
 
For some reason the getline function is not returning all of a line for me. Here are the first three lines of my input file, it is from the kaggle Titanic comp...
[1 reply] : Use of string stream to parse would make things easier: #include <io... (by JLBorges)
Buffered stream cout?
 
In my C++ book, it says that cout is a buffered stream. This means that the data will be written to the buffer and will be printed when it reaches the endl mark...
[9 replies] Last: Every C++ stream uses an associated stream buffer object to perform bu... (by JLBorges)
How to identify instance methods and header methods in documentation
 
I have been reviewing the site's reference documentation a lot and I still can't tell when a method is global or an instance method. For example, if the foo he...
[1 reply] : It says on the title of the page. For example: std::getline(...) vs s... (by firedraco)
Iterator erase called before return?
 
I'm working with the EyeTab code available on Github (https://github.com/errollw/EyeTab/tree/master/EyeTab_SP2). I've been chasing down bad output values, and r...
[6 replies] Last: Okay, I've stripped just these methods out into their own project and ... (by cachang)
direct initialization and copy initialization
 
Hey, guys, I have a few questions regarding direct initialization and copy initialization. 1. if I defined a variable and then defined another variable using t...
[11 replies] Last: Get it. Thanks a lot! (by glenjoker)
by AisuX
Struct, not declared in scope (Function help)
 
How do I make structures work in other functions, similar to this one? #ifndef STRUCTS_H #define STRUCTS_H using namespace std; struct Employee { st...
[1 reply] : where is the <string> header? (by Cody0023)
Code::Blocks broken... Not recognizing ||
 
I think Code::Blocks is broken... its not recognizing the logical OR operator: #include <iostream> #include <windows.h> using namespace std; int main() {...
[2 replies] Last: the error is you probably already have the executable open somewhere e... (by giblit)
Help understanding code
 
Could someone help me understand this piece of code. excerpt from the official SFML 2.1 tutorial: A sf::Time value can be constructed from different sourc...
[3 replies] Last: http://www.sfml-dev.org/documentation/2.1/classsf_1_1Time.php (by giblit)
HELP! Can't deconstruct.
 
I currently have the code for a bowling program in C++ and I am very much a novice in C++ I need to use this program to develop and change it into my own, such ...
[9 replies] Last: It does require user input so I guess I'll leave it there. (by LiamSalt)
no matching function with function pointer as arguments
 
Hello, I'm trying to define a class with LuaBridge. There is a C++ class called Entity that has a member setPosition(float,float,float). luabridge...
[2 replies] Last: Normally I should not need an instance of Entity when defining a lua c... (by Werner2)
by ci one
function pointer vs. inline
 
I need to make conditional function calls, inside a loop (few thousand iterations, hence looking for an efficient way). The condition is set outside the loop t...
[3 replies] Last: Thanks! (by ci one)
structs help
 
so i am working on structures to put into a game where i have an inventory system but it is very cumbersome when adding new items into the game and its over all...
[2 replies] Last: Thanks a lot. (by Antone333)
Changing/Transforming
 
Hey guys, i wonder if you know how to change a letter from a word. For example, i want the letter "a" to always change to b or whatever i want to be its place....
[6 replies] Last: The problem with coder777's method is that it uses "special characters... (by keskiverto)
how is a primitive type implemented ?
 
this is a question for pure curiosity : learning c ++ I discovered that a type is defined by a class, and we can also write our own operators for that type....
[1 reply] : Primitives are implemented in the hardware. Operations between primiti... (by helios)
by Nezar
Why is this defined in this header ?
 
Why is NODE_H defined in the code below ? #ifndef NODE_H #define NODE_H #include <iostream> using namespace std; template<class T> class Node...
[3 replies] Last: Thanks. (by Nezar)
understanding code example
 
Hi, I am learning about using loops to compare arrays. I need help understanding the following example in my book. // compstr1.cpp -- comparing strings us...
[4 replies] Last: You're welcome! (by MikeyBoy)
working with files in Class
 
hi all in second func(output) i want to cout amount variable(that was saved in text.txt) but only "0" will print :( #include <fstream> using nam...
[2 replies] Last: Change line 43 from: my >> amount >> name; to my >> name >>... (by Chervil)
August 2014 Pages: 1... 2223242526... 40
  Archived months: [jul2014] [sep2014]

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