Beginners - May 2013 (Page 58)

how do string accept characters having spaces?
 
how do string accept characters having spaces? Or do you know other ways to accept spaces? Let's say...
[1 reply] : Use std::getline function. For example std::getline( std::cin, first ... (by vlad from moscow)
C strings
 
Can anyone help me? Can I assign string in C? on C++ it works like this, string name = "david"; ...
[2 replies] Last: Thank you :) (by Datolius)
GUI
 
Hi. I don't understand how to make design for C program, I mean GUI programming, I try some code but...
[1 reply] : There is no such thing as "does not compile". There is "compilation fa... (by keskiverto)
Fibonacci
 
the sum of the printed numbers? #include<iostream> using namespace std; main() { int n, ...
[no replies]
Colored shapes
 
Hello, I have an assignment to make a colored shape. Can some one tell me how do I do it?
[4 replies] Last: struct rectangle { enum colour_t { WHITE, RED, GREEN, BLUE, MAGEN... (by JLBorges)
Static (?) class
 
Hello All, I want to create a Math class with some special functions in it. So far I have created...
[1 reply] : You can do like //Math.h class Math { public: static double sin(d... (by MiiNiPaa)
class program
 
Write a program that listed all the capitals for countries in a specific region of the world. Create...
[2 replies] Last: well, i know how to create an array, but not a class. i don't know wha... (by irkzuptang)
I hate programming
 
Hi guys.I'm writing this message with my eyes full of tears :(.. The problem started after my grade...
[6 replies] Last: You do not have to be a genius to program nor have the best grades bec... (by backslashx00)
Matrix multiplication
 
Now i have a problem to calculate multiplication of matrix that's not the problem i wrote it but t...
[12 replies] Last: any help ??? (by elattar)
Need help with my snake game
 
Hi guys I'm new here and I need help with my code. The code i'm using is already used so I want to ...
[11 replies] Last: Technically speaking, plagiarism is not against the law. However, it i... (by Daleth)
help me please....A function to read vector???
 
A function, called ReadVector(), which reads a vector of any size from a given file name, and return...
[no replies]
by jag64
Creating a Hashing program?
 
Writing a C++ program that: (1) defines and implements a hash class that constructs a 23 element ar...
[12 replies] Last: [quote=cire]Neither sum , nor i , nor hashword , nor firstlet , no... (by cire)
while (!ourfile.eof) not working
 
Hi! I'm writing a program to manipulate data from a text file. The text file includes names followed...
[5 replies] Last: Just kidding. After I just input.clear(); after the input>>number loop... (by Jacob Curtis)
by Vash
Having trouble formatting whitespace when reading from a file
 
So in this program im supposed to be reading characters from a file. So i opened the file and read t...
[5 replies] Last: blastspace is used to know if we have continued spaces. It is set to t... (by writetonsharma)
array of different types
 
Im trying to put a Point a Circle and a Cylinder (3 different classes deriving from each other, poin...
[5 replies] Last: @spiritedDedication My base class is shape. Point derives from shape... (by TheIdeasMan)
How do I use a pointer of a parent class to call a child's function?
 
How come when I use men ->attack(men ) it only calls the basic man attack function and not the der...
[2 replies] Last: virtual http://www.cplusplus.com/doc/tutorial/polymorphism/ And mak... (by JLBorges)
Data Structures, would appreciate an example of something in particular. (See post for details)
 
The following is from the documentation of the site we are on right now under: Pointers to Struc...
[3 replies] Last: Thank you both very much. Thank you aceix and thank you cire! Marked ... (by warryan)
by bdwg
Passing Polymorphic Pointer to Pointer into Function
 
In trying to pass a pointer of pointers from one function to another, I lose my objects somewhere. ...
[1 reply] : void interpolate(function* infunc) //pass a copy of the pointer { ... (by ne555)
by fetzjr
SFML Code will not compile?
 
Okay so i am follow a youtube series on SFML 2.0 By the first lesson i am already encountering pr...
[1 reply] : That 'sfml::Renderwindow' needs to be 'sf::RenderWindow', plus 'int ma... (by closed account D3pGNwbp)
by odai
small help !!
 
is there any code for template queue class using vector !!! or how can i write this class !! ...
[3 replies] Last: Both vector and queue are templates. A vector of queues is simply: ... (by AbstractionAnon)
May 2013 Pages: 1... 5657585960... 66
  Archived months: [apr2013] [jun2013]

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