General C++ Programming - August 2012 (Page 12)

Returning to inital function
 
I am new to c++ anything i know i learned from a self help book. I am atempting to create a console application that will do simple math equasions. The equasion...
[8 replies] Last: This method worked. I declared MainMenuUC as a global variable. Thank ... (by Jacob Payne)
Finding the Lowest and Highest Score of User Input
 
Hi. I'm trying to find the Highest and Lowest value of testscores that I input them program. Along with the Students name next to the score when you figure out ...
[3 replies] Last: A Little Program Of Mine That Tells That!(: #include <iostream> using... (by Techy24)
double subtraction problems
 
I'm trying to find if double A - double B == 0, but I am having some troubles with the precision (it says it's ~4e-16). What is the best way of compensating fo...
[2 replies] Last: Haha, yeah, double/float direct comparison will land you in a world of... (by MrHutch)
Question 1: How to acces a class
 
Well I did it like I learned it in a Tutorial, but it didn't work. I made my class outside my main.ccp. So I have the headerfile of my class 'Example' (example...
[3 replies] Last: I Think You Make The Capitals Wrong Voidex voidex (by Techy24)
format
 
please explain how I tab, or tag my code when I post it here so that it displays indented and correctly.
[1 reply] : You use the <> button on the right of the box when you post to insert ... (by MrHutch)
push back a map in a list
 
Heloo guys, i have this list of maps list<map<int,int>> myList how do i pushback 2 integers values in this list? i tried myList.push_back(pair<int,int...
[2 replies] Last: maps contain pairs. Your code would work for a list of pairs. (by blueeyedlion)
Help Loop program.
 
Hello!! Trying to create a program that will not move forward until the proper input is accepted. here is part of my code. cout << "Please enter s for...
[4 replies] Last: rynzor6, Hint Hint,Use This Code And Don't Let Script Coder Know!!!(Ju... (by Techy24)
Texture Mapping Help PLEASE!
 
I'm trying to apply a texture to a square (just for practice). I made an image loader, and I don't think that it's right at all... I just need to know what I'...
[no replies]
SQL Injection in C
 
I dont have any idea from making a HTTP request using C. All i want to learn is how to make SQL request using C. I will just online use it for educational purpo...
[3 replies] Last: SQL injection abuses an unfiltered SQL input so that you can inject ar... (by BlackSheep)
LoadLibrary() fails with error code 193.
 
Hello there, I seem to have a problem with loading a 64bit DLL using a 64bit console application. After hours searching for some clue's, I haven't found anyt...
[3 replies] Last: Seems like it loaded the wrong version of msvcp100.dll (x32). Anyways ... (by Deadmau5)
Void Pointer in Linked List
 
Hi,I'm implementing a linked list with void * data. typedef struct ListNode { struct ListNode *prev; void *data; struct ListNode *next; }ListNode...
[1 reply] : You're not showing enough code for a positive answer, but my guess is ... (by AbstractionAnon)
Read 2D arrays from file and store them in vectors
 
I have this file which contains 8x8 blocks of numbers. 1 2 3 1 30 40 27 8 2 4 19 8 10 17 14 16 3 2 9 7 15 18 21 24 4 8 0 1 20 24 28 32 5 10 15 20...
[1 reply] : So what is the algorithim for transposing from the first matrix to the... (by AbstractionAnon)
Real Time Results
 
I want to add a search function to a program I'm writing that will look through a text file and spit out the results. That I can do easily enough. I would li...
[3 replies] Last: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html (by modoran)
by cniper
vector push_back and erase
 
i m supposed to write a program where user can enter and data from a vector file. Here is my code: #include<iostream> #include<vector> using namespace std; ...
[4 replies] Last: thanks peter87. My bad i did'nt noticed it. (by cniper)
Two Switch Structures
 
If anyone can help me on switches. How can I differentiate the two if S is chosen or M is chosen. if (in_marital_status == "s") case_no= (income <= single_...
[3 replies] Last: To include more than one statement in the if statement you have to use... (by Peter87)
Calling SDL functions from multiple threads via a linked list or queue
 
Hi, I really want to have a worker thread doing calculations and updating my game board, then sending things to a base function which can use SDL functions. Th...
[10 replies] Last: Thanks Disch. I will have a look into writing my game without threads ... (by steve9164)
Vandermonde Matrix
 
Does anyone know how to go about making a vandermonde matrix with c++? Here's a Vandermonde Matrix: http://mathworld.wolfram.com/VandermondeMatrix.html T...
[1 reply] : #include <vector> #include <type_traits> template < typename T > usi... (by JLBorges)
Accumulating Vectors
 
I have two vectors vector<double> Weights; vector<double> Inputs; I have been looking for about half an hour, looking over examples and the STL docume...
[1 reply] : std::vector<double> a = { 1, 2, 3, 4, 5 } ; std::vector<double> b = {... (by JLBorges)
Cross platform 2D Engine?
 
Hey, I was wondering where I could learn how to design a 2D engine in C++ using SFML? I want it to be simple, just for managing sprites and collision detection ...
[3 replies] Last: UglyIgloo: That isn't what I wanted, I wanted to know how to make an e... (by pjquinn)
by Lisa87
Server Side Programming
 
Hi I'm wondering if anyone out there can help me. I'm looking for someone with C++ Programming experience but they would need to have Server Side Programming ex...
[4 replies] Last: Basically I'm not that technical and I'm recruiting for a programmer ... (by zepher)
August 2012 Pages: 1... 1011121314... 31
  Archived months: [jul2012] [sep2012]

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