General C++ Programming - December 2014 (Page 6)

My code is not working?
 
I have this code to redirect to the home if it doesnt equal any of these. Whatever you put in it will output "Sorry, this is not a valid answer, please try agai...
[4 replies] Last: Nevermind my last post, this is closer to the OP if (Answer != "Home"... (by pnoid)
by nthuth
Compile error when including header file
 
I am having an issue in my project when trying to include my Game.h file in certain files of the project. I get a lot of errors, all of which say the following...
[5 replies] Last: I think the issue I was having was due to the fact that I was includi... (by MikeyBoy)
Reading in values from txt files
 
Hi there, I cant seem to read stuff in from my students.txt file which contains this 19992195 John Smith 20 05 1995 09 09 2011 15 05 2014 55 65 72 58 80 45 4...
[3 replies] Last: Avoid monolitic code. Separate it in logical parts and reuse them in y... (by MiiNiPaa)
by nthuth
Game Design practice for accessing container of game objects
 
I'm working on my first video game. So far I have a few classes in the game starting with the Game class which includes a list of GameObjects (another class). ...
[4 replies] Last: Thanks everyone for the advice. I went the route of making the game o... (by nthuth)
by rko786
help help help in for tomorrow???
 
#define _CRT_SECURE_NO_WARNINGS #include<math.h> #include<stdio.h> double factorial(int); #define PI 3.141592653589793 int main() { int n; fl...
[3 replies] Last: #define _CRT_SECURE_NO_WARNINGS #include<math.h> #include<stdio.h> d... (by rko786)
Please help me with this fstream code. It has some silly error somewhere.
 
#include<fstream> #include<iostream> using namespace std; class student { char name ; int roll; public: void getdata(int i) { cout<<"\n\a En...
[4 replies] Last: Anything wrong with this line if I have included <fstream> ifstream ... (by sos4aug)
Cant find Qt launcher after build
 
I have downloaded the Qt5.0.1 source and built. I cant find the launcher. What do i do?
[no replies]
c++ algebra
 
I was wondering how computers perform arithmetic algebra like tigeralgebra.com? My intenstens for this question is to perform an experimental compression, but t...
[no replies]
by tmason
Question about includes/library files...
 
Hello, I assume this is a very simple question but I am not sure. Let's say I have fancy library X which has thousands of include files and library files....
[3 replies] Last: Any sensible, modern linker, will only link object code that's actuall... (by MikeyBoy)
Count String in a String Using Datatype Char
 
Good day everyone! I have the codes for such a problem where, to create a program that counts how many times the second string appears on the first string. Yes ...
[7 replies] Last: Oh yes I know, but I did not want to write all the code for you! I jus... (by minomic)
Algorithm for data row decimation
 
Hello, my problem is how to show many points in graph. Many points mean over milions points. I need some kind of decimation method with minimum/maximum value d...
[11 replies] Last: > When the lengths are divisible algorithm is very simple Since the o... (by JLBorges)
Problem with C string program and cin
 
#include <iostream> #include <cstring> #include <cctype> using namespace std; const int SIZE = 50; void reverse(char *); void lower(char *); void ...
[2 replies] Last: We have const int SIZE = 50; char cstr ; // array of 50 characters ... (by JLBorges)
sorting of random array by all techniques
 
kisi k pass random array ki sorting ka code hy by heap insertion quick nd selection sort........... kindly help me
[7 replies] Last: check my program plzzzz and correct it..... (by saira90)
Visual Studio 2013 Database
 
Hey everyone. I'm using Visual Studio 2013. I would like to gain some experience with data bases and c++. I am having SO MANY issues. I have downloaded "Mic...
[no replies]
need an answer
 
#include <iostream> #include <cstdlib> #include <string> using namespace std; class Person { friend Person operator+(Person&, Person&); private: in...
[3 replies] Last: wow thanx allot........although i wrote * after the void multiple time... (by mr kutch)
C++98 user entry question
 
Hi guys, I'm trying to put together a piece of code that will take a user entry (a number from 1-65535). I want to have it in both string and int formats and be...
[2 replies] Last: Thank you! I was certain it was concatenating the string, until I ran ... (by Mephisto777)
any help plz?
 
#include <iostream> #include <cstdlib> using namespace std; template <class Type> class Person { private: int age; string name; public: ...
[10 replies] Last: Isn't that called student obfuscated obfuscation? (by vaportrack)
IntroSort explenation
 
IntroSort is an hybrid algorithm that starts with QuickSort and switches to HeapSort. I've made the IntroSort multi-threaded algorithm and on average it sorts ...
[8 replies] Last: I've posted my opinion in the original post. You may comment your opin... (by zoran404)
Generalizing Repeated Functions.
 
I'm working on a game with an entity-component system. I have a Manager class that is handling all of the components by feeding them into vectors set up for eac...
[2 replies] Last: Wow. Thank you! This was very helpful. It really helped clear up some ... (by kabbotta)
Need help with Visual C++ multi dialog box
 
Right now, I have and application that opens a multi file dialog box. I want to take all of the files I highlight when the dialog box shows up and display a mes...
[no replies]
December 2014 Pages: 1... 45678... 31
  Archived months: [nov2014] [jan2015]

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