General C++ Programming - April 2014 (Page 27)

HELP - External Libraries?
 
Hi, I've finished my series of tutorials and built a investment calculator with QT, now that's finished and I wanted to create a small radio that allows to retr...
[2 replies] Last: Qt comes with its own IDE I used. I'll also mention I use both codeblo... (by glowdemon1)
Sentence Capitalizer C++
 
I am writing this program and need it to capitalize the first letter of each sentence, but it is not working. #include <iostream> #include <iomanip> #in...
[4 replies] Last: Ok I am going to try that. But I thought that where I put j++ it moves... (by austinhorton24)
Stop infinite loop by pressing enter.
 
I wondering how to stop a infinite loop. The program clears a file then opens it and refreshes it over and over(the file is going to be modified by another pro...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/27441/#msg146817 If a key is ... (by Duthomhas)
New project doesn't cout any values?
 
I'm trying to build a new project and i installed some new libraries in it but when i try to compile any code it doesn't give me any value just press any key to...
[4 replies] Last: Uhh okkkk Do not do it like that do it like this cout << "Hello Worl... (by Mizfizz)
Operator overloading
 
Hey guys, I am working on an assignment in which i have to perform th following task myClass itsObject1,itsObject2; itsObject2=5000+itsObject1; i hav...
[1 reply] : friend vli &vli::operator + (int &a,vli &obj); Since operator+ is ... (by nvrmnd)
by y510
Tell me whats wrong with my code plz?
 
slen is the array length, and I need em to input an array of characters which is S1 , array1 is the array i have at the beginning of the code. But my main prob...
[4 replies] Last: now can someone help me? (by y510)
Buffer problem with getline
 
Hi, string input; do getline(cin,input); while (gtp_process_command(input)); For a program-to-program communication (GTP - http://www.lysator.liu.se/~...
[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 in advanced. So here I have a program that is supposed to ...
[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. I know some c++, done some win32, and some normal projects...
[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. it says that it cant convert fstream to int. int is my functi...
[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 using Visual C++ 2010 Express on Windows 8. What I want to do a...
[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 file (Deck of 52) and initializing an array to have all the num...
[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 namespace std; template <class T> T Search(int Left, int Right,...
[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 it. The single issue I seem to be having is asking the user...
[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,2559; Jcdwi,3761; Yvnzjwk,5363; Pkabj,5999; Xznvb,3584; Jf...
[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 of the variables and functions found here. VectorBag.h al...
[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 functions? EDIT: This is my 9333th post, makes me think of n...
[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 syntax errors. // i am getting no output. #include <ios...
[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 code runs, some of the grid tiles appear offset, and when se...
[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 reference to `calincrement(double (*) , int)' /tmp/ccxagark...
[1 reply] : Your declaration and implementation do not agree. void calincremen... (by AbstractionAnon)
April 2014 Pages: 1... 2526272829... 41
  Archived months: [mar2014] [may2014]

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