General C++ Programming - November 2013 (Page 6)

by steleb
Having trouble with visual studio 2013, code::block...
 
Today i started to learn C++ again, and when u installed visual studio 2010, 2013 and code::blocks (i installed all 3 because the same problem kept coming up on...
[12 replies] Last: yea its just a blank screen in VS when i open a empty C++ Then rig... (by mutexe)
by Loktd
c++ math problem in my code
 
#include <iostream> #include <iomanip> #include <fstream> using namespace std; int main() { ifstream StudentAnswers; ifstream CorrectedAnswer...
[6 replies] Last: I agree with this analyst but I think both correct and tp set up later... (by vickoza)
by simi
Function () operator
 
Hey guys, I am struggling to find my way out of this situation. I just want to call the operator within the () operator, which will be finally used/written...
[2 replies] Last: Uint Sir:: operator (int index) { if (index <0) { thro... (by simi)
ATM program help...
 
I need some help with my atm program. I don't remember how to inFile. I need to use that so that the users who log in are saved onto the program for future use....
[10 replies] Last: Okay I changed my program around a bit. How does it look? #include <... (by njleos3)
ATM program help
 
My atm program doesn't display the output where I ask for the user's name... #include <iostream> using namespace std; int main() { cout << "...
[no replies]
Question clarification!!!
 
Write tableDiff, a function that compares two arrays of integers and returns the subscript of the first place they differ. If the arrays are the same, the fun...
[2 replies] Last: thank you @ats15 appreciate the help (by scardoso)
positive remainders returning negative?
 
int Fib1 = 1; int Fib2 = 2; int Fib3 = 0; int randomynumber; int Loop; while (Loop < 100) { Fib3 = Fib2 + Fib1; Fib1 = Fib2; Fib2 = Fib3; randomynumber = Fib...
[2 replies] Last: thanks that worked perfectly i didn't expect them to get so big so fas... (by pixelpuffin)
getting vowels and consontants
 
I am working on a code that is suppose to get vowels and consonants from a string. So far i got up to trying to get the vowels from a string. this is what i hav...
[2 replies] Last: Thank you, I'm still trying to get a hang of c++. (by closed account ETA9216C)
by Bolbi
SFML OpenGL projection
 
could anybody pls post the code for an easy Cube in 3d .. i cant understand perspective .. thx guys :D
[3 replies] Last: thx for helps mate ;) (by Bolbi)
by Bolbi
OpenGL what r these functions doing ???
 
I got really confused about OGL so ... what are these Functions doing ...? glFlush(); glOrtho(); glFrustum(); glMatrixMode(GL_PROJECTION); //what are the...
[7 replies] Last: ok (by Bolbi)
by lams
sorting
 
how do i sort records by user speci ed field in ascending order, without knowing how many columns the file has? its getting the data from a file.
[6 replies] Last: thank you all for your help (by lams)
by Bolbi
OpenGL + SFML need help ...
 
The Rectangle doesnt show up .. Why? and if anybody knows how to set the perspective in OGL tell me pls and what does glFlush mean? thanks for help :D ...
[7 replies] Last: Yeah ... iam an idiot ... (by Bolbi)
pass by value and reference
 
help me please Teacher will give him tomorrow :""( (Pass-by-Value vs. Pass-by-Reference) Write a complete C++ program with the two alternate funct...
[7 replies] Last: You can generally tell by the nature of the post whether or not someon... (by MrHutch)
&:: referencing scope resolution operator
 
With builder XE5 update1, there is a template class: template <class T, const IID *piid = &GUID_NULL > /* NOTE: The IID parameter is for backward-compatibility...
[no replies]
SFML (WIN 32-Bit VS2012) Unhandled exception at 0x701ADEF8 .... sf::Sprite.loadFromFile(std::string filename);
 
The following code gives me the uncaught exception (specifically line 6): Unhandled exception at 0x701ADEF8 (msvcr110.dll) in SFML.exe: 0xC0000005: Access viol...
[3 replies] Last: Found the answer: [quote=StackOverflow]This issue arises when you're ... (by closed account 18hRX9L8)
by LB
Can't assign non-const member function ptr to const one?
 
#include <iostream> #include <type_traits> struct Test { void f(){} void g() const {} }; int main() { //outputs false std::cout << std::boola...
[15 replies] Last: Lines 18 and 21 are templates and simply to cast a pointer to a functi... (by closed account o1vk4iN6)
Having trouble with this program.
 
#include <iostream> #include <iomanip> #include <cstdlib> using namespace std; void YourScore(); void thankyou(); int main() { YourScore(); thank...
[1 reply] : Your code is doing exactly what you are telling it to do. In the firs... (by doug4)
Stuck cant seem to find the issue
 
Hi guys I cant figure out the issue with my code, i tried messing around with it and no such luck. I keep getting Error 1 error LNK2019: unresolved external...
[5 replies] Last: woooooow, omg im so dumb, why couldnt i see this. thanks soooo much ... (by doug4)
2D Bar Chart
 
Hi everyone, I want to draw a 2D bar chart according to 10 or 15 numbers in c++. How can i do it? Which i need components?
[1 reply] : in some kind of ui, or in the console? (by mutexe)
Multiple connections with mysql
 
Hello I created a .h file for mysql connections. In my example file, I created an array of my class and made connection with the database for each subscript ...
[1 reply] : use multithreading. For each new connection create new thread. You sh... (by tath)
November 2013 Pages: 1... 45678... 46
  Archived months: [oct2013] [dec2013]

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