General C++ Programming (Page 9)

Buffer problem with getline
 
Hi, string input; do getline(cin,input); while (gtp_process_command(input)); For a program...
[3 replies] Last: okay... i finally solved my problem.... it wasn't a c++ problem but a ... (by Mahrgell)
HELP! Switch statement
 
I cannot get this program rolling to save my life! Any help would be greatly appreciated! Thanks i...
[1 reply] : You should have a load of errors here. Did you try to fix them or at l... (by MiiNiPaa)
inline asm (Fasm) with C++
 
Good morning everyone, Kindly be of some form of assistance to me. Here is what I wanted to know....
[1 reply] : can you do [...] inline Asm Yes. However it is compiler dependend. I ... (by MiiNiPaa)
by sky3
List class functions
 
My problem is when i try to call the get function i have no idea how to get the data from my file. i...
[no replies]
Creating a class
 
I'm pretty new to OOP and it's kind of rare for me to use C++, but I think know the basics. I'm usin...
[6 replies] Last: Yes, you can easily turn your initialize function into the constructor... (by LB)
Random function
 
For my final project I am supposed to design a game of War. My main question is, after reading a fil...
[2 replies] Last: Or...try a Fisher-Yates shuffle: http://en.wikipedia.org/wiki/Fisher-Y... (by long double main)
Template
 
Is this correct? On line 4, should I use "int" instead of "T"? #include <iostream> using namespa...
[2 replies] Last: Thank you (by Stephanie16)
need help with a dynamic array
 
Hidy ho all, I'm working on a dynamic array program. very simple, and I think I just about have ...
[18 replies] Last: You can use the escape sequence "\t" to put a tab between output. Or i... (by wildblue)
reading integer value
 
Rkbs,5453; Wdqiz,1245; Rwds,3890; Ujma,5589; Tbzmo,1303; Vgdfz,70; Mgknxpi,3958; Nsptghk,2626; Wuzp...
[16 replies] Last: cool thanks. (by generic2709)
File linking/coding problem
 
This implementation file VectorBag.cpp is linked to a header file VectorBag.h which declares all...
[2 replies] Last: The problem is that my professor wrote the "VectorBag.h" file and so I... (by fizanimtiaz93)
by LB
Empty class & null pointers
 
If a class is empty, is it safe, or is it undefined, to cast to it from a nullptr and call member fu...
[10 replies] Last: JLBorges hit the snail on the head. I was just curious if there was an... (by LB)
by approa
problem 3 euler
 
//why is this not working? // euler problem 3. https://projecteuler.net/problem=3 // there are no ...
[3 replies] Last: int s are typically 32-bit. int s= 600851475143 This number is wa... (by Disch)
2-dim array display output for matching game
 
I am creating a matching game, using US States and a 2-dim array. As you can see, when the below ...
[3 replies] Last: Some screenshots of the problem will probably help me find your proble... (by Mats)
by Subo93
2D array calculation
 
/*when I compile this it gives a error message.. /tmp/ccxagark.o:os.cpp:(.text+0x2e): undefined r...
[1 reply] : Your declaration and implementation do not agree. void calincremen... (by AbstractionAnon)
by chhe
2d vector adding columns
 
I have a basic question regarding 2d vectors. The following code makes a 2d vector and fills it with...
[5 replies] Last: Well you weren't specific how you wanted it. To do that you will have ... (by giblit)
by Subo93
2D array find max
 
//it outputs max is 0 ,can anyone show whats the error?thanks.. #include<iostream> using namespace...
[2 replies] Last: Thanks.. (by Subo93)
Methods arguments alteration rules in Java and C/C++
 
Hello and thank you for reading my post. First of all, I am more a Java programmer in my programm...
[1 reply] : Where to start with this? So many problems. point.cpp line 5: ct... (by AbstractionAnon)
Vector of pointers: Push back objects/const parameters
 
I have a class called Question: #include <string> #include <vector> using namespace std; ...
[2 replies] Last: I'm making a 20 question style game. The pointers are for AI purpose. ... (by dleanjeanz)
by younes
Compile a method separaltely
 
Hi, There is any method to compile a method of a class separately from the other methods and the ...
[1 reply] : Put it in a separate .cpp file. (by AbstractionAnon)
by younes
using c++11 in Mac operating system
 
Hello, I would like to use c++11 in my Mac system. Could someone show me how to install the compi...
[6 replies] Last: http://clang.llvm.org/get_started.html edit: coliru.stacked-crooked p... (by Little Bobby Tables)
Pages: 1... 7891011... 58
  Archived months: [feb2014]

Cannot post in this page. To post a new message, go to the first page.