General C++ Programming - January 2013 (Page 29)

by raduh
Cannot get graphics to work
 
Hello to everybody! I'm encountering a problem with any graphics code, even one as simple as: #include <graphics.h> #include <stdlib.h> #include <conio.h>...
[3 replies] Last: If you were working on visual studios you could have linked the librar... (by closed account 3qX21hU5)
inserting elements in a set with type pair
 
I want to use a dataset of type set which will have the type pair<char,string> or pair<string,string>. How can i insert values into the set, because i have to ...
[3 replies] Last: No compilers completely support c++11. Here is the table of support of... (by MiiNiPaa)
Troubles with vector
 
Hello all, I have defined the following data structure struct volSurfData { vector<double> maturities; vector<double> strikes; vector<vector<dou...
[8 replies] Last: OK - no suggestion, so I close the thread as solved :). (by michal mackanic)
cppunit SEGFAULT - with core dump
 
Hi, I have a CppUnit test suite that I execute and at the end of the execution the application segments. I have been trying to understand this core dump f...
[no replies]
by Relax
Read only the oldest file
 
Hi. I'm quite new to C++ and got a problem of reading some files from a directory. All files is pure text, and I have no problem in reading these. My proble...
[3 replies] Last: Thanks. This solved the problem. (by Relax)
Starnge validation problem with float and double
 
Hi, Below is my code snippet which seemed to work fine but then I found the following problem: When I type in 2.22 for example then the function returns 2...
[6 replies] Last: fmod is working. It is just that the numbers that you pass to fmod isn... (by Peter87)
please explain to me why my Quiz Codes won't work
 
THE GREAT QUIZ SHOW GAME BY Do You Even LIft */ // Include libraries #include <iostream> #include <string> // using the names...
[2 replies] Last: errors @ lines 0 & 26 & 30 from a first glance. (by closed account 3hM2Nwbp)
Guess My number game question.
 
So I wrote a program for a guess my number game in which I try to guess a number that the computer chooses from 1-100. Now my question is how do I change the co...
[2 replies] Last: Good question. Well first is the obvious bit. You have to get the com... (by blueberry)
what is the program and the function for this question?
 
A 5 letter word x is hidden in a string y such that the first two letters of x are the first two letters of y and the third letter of x is the middle letter of...
[2 replies] Last: If a word has even number of letters then there are two middle letters... (by vlad from moscow)
c++ programm using loops
 
5. Print the sequence using do while loop. * * * * * * * * * * * * * * * *
[13 replies] Last: I think usandfriends has it. Something along these lines: #include <... (by NolanNJW)
Game loop openGL : Fixed time step decoupled render
 
Hello everyone! I am in need of some dire help with my openGL game! I have been looking all over the internet for how to create a game loop that is decoupled f...
[7 replies] Last: Yeah, that's how interpolation works, doesn't it? Maybe you should inc... (by S G H)
Trying to make a text editor as a part of a game.
 
This is the code I got, which works, but crashes randomly: http://pastebin.com/yyvUSaTQ (sorry about the external link, it was too big to paste here) So ye...
[no replies]
Circularity doubt
 
hi!!! Someone can help me .... struct nodo{ int dado; struct no* prox; // used struct ...? }; is not the ...
[2 replies] Last: so simple !!! Tested !!! Duoas, thanks..... (by Summerson Goncalves)
FTP using c/c++ or batch file
 
I am trying to write a small program that will ftp in c or c++. I have tried to ftp directly from the c program using a header I found on the interwebs ftplib...
[3 replies] Last: I started to try to fix all of the errors my compiler was giving me. E... (by Ada Amer)
polymorphism with objects/adresses
 
Here goes my question. i understand how upcasting and late binding works when it is used in a global function. i have always seen it used when the argument of t...
[7 replies] Last: Many many thanx to all you. I really was thinking about what u are tal... (by xavipoes)
Error Message
 
Hi I am a beginner C++ person and I tried to compile my first Hello World Program. I am using the Sams Teach Yourself C++ book to learn C++ and I have Visual 2...
[15 replies] Last: I'm just a student, far from being employed. I'm taking a course that'... (by NolanNJW)
Different array declaration
 
Hi, I would like to know the difference between the following two forms of array declaration: (1) double myArray = {1.0, 2.0, 3.0}; (2) array<double,...
[6 replies] Last: OK, thank you for the information! (by dekeenfrance)
Eight Queens Fun
 
I am just going through a C++ book for fun and I have run into an issue when trying to solve the 8 Queens problem. I am able to run my program and get 7 queens ...
[no replies]
by jaded7
lambda functions
 
Hi, I've been trying to pick up lambda functions but I wasnt clear on one detail- is there a rule of thumb when to use closure or a function parameter, when...
[5 replies] Last: > So, by default I should pass variables via function arguments, not c... (by JLBorges)
My program
 
#include<iostream> #include<ctime> #include <math.h> using namespace std; bool replace(int * & A , int &n, int i , int * w1 , int n1 , int *w2, int n2...
[1 reply] : class Person{ private: string name; int popularity; ... (by yasminaty)
January 2013 Pages: 1... 2728293031... 36
  Archived months: [dec2012] [feb2013]

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