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

Help understanding algorithmic solution
 
Hey all, I was working on a problem and eventually I got so frustrated I looked at the answer sheet (yes, it was wrong) only to find that I am now even more fru...
[5 replies] Last: F(n) calls F again with a smaller value for N. Eventually, N is going... (by Script Coder)
by abu
Which of the following is a good practice?
 
Option I #include <math.h> #include <iostream> #include <stdio.h> double **fun1(double *x, double *y); int main() { double *x,*y, **w; // here ...
[5 replies] Last: Thanks Vlad! (by abu)
Looping infinitely?
 
Hey guys, This is a homework assignment for a C++ course I'm taking, I'm fairly new to C++ but I'm familiar with other languages such as Lua, some Java, and ...
[7 replies] Last: Change while (goAgain == "Yes" || "yes" || "y") { to while (goA... (by LB)
Vector with my own class not working
 
I have a settings class and a settingItem class. The settings class has a vector of settingItems. The vector is not working: error C2065: 'settingItem' : un...
[8 replies] Last: The linker cares not for that which is unused. (by LB)
char* string
 
Hello again! I've been studying but I don´t understand few things, hope you could help me.. 1. Let´s say I want the user to enter a name : How do I save ...
[5 replies] Last: No, I didn't I will :D But thanks!!! ------------------- amazing i... (by jmyrrie)
by Ceset
char types
 
int a = 1; a++; and now a would be 2. the question is i get it how an int or other numerical types of datas increases and if: char a = 'x'; a++; a would be...
[4 replies] Last: hmph. that was pretty informative(2^8) ty (by Ceset)
by ekbanz
Good API to learn
 
Hi everyone, so basically i'm looking for a good API for a beginner, i just finished studying C++ and now i want to start studying Graphics, which of these foll...
[18 replies] Last: Also, understand that FreeGLUT and GLUT are two different things. GLUT... (by closed account S6k9GNh0)
Failing to get input
 
Good morning, Yes the following question is regarding my homework but, I have written the code, I am not asking for someone to write it for me. I am supposed...
[13 replies] Last: Ok, thanks. :) (by Superdude)
Having trouble building with CMake
 
I Use codeblocks 12.11 with it's default compiler, I Use CMake 2.8.11 I am trying to compile Box2D I build ok, but there is no linker (*.a) generated ...
[8 replies] Last: Assuming that is your the output directory I mentioned above and the l... (by Computergeek01)
How to calculate in C++?? PLS HELP ME?
 
How to compute financial ratio in C++ with using header file? Calculate in c++ program with 3 different file. - 2 file (cpp file) - 1 file (header file) I...
[7 replies] Last: Rechard pretty much covered it. Also you may want to look at this arti... (by Austin J)
Using a parametered/templated comparison object for priority_queue
 
Hey guys, Sorry for the long title; it's not as longwinded as you may think. On several occasions in my project, I need to sort elements (indeces) based o...
[1 reply] : Think I've found it due to a relevant StackOverflow topic 1 : std::p... (by Gaminic)
by Ceset
cannot call mem....
 
hi everyone i was trying to make a func that will help programmer to lessener work here i declare it in my MCLoad.h header bool Load(SDL_Surface* name, std::...
[7 replies] Last: yes thats what i m gonna do. i just quit for a while. like a few days ... (by Ceset)
C++ Algorithm: Connectivity
 
I'm reading the first chapter of Algorithms in C++: Part 1 - 4 Fundamentals, Data Structures, Sorting, Searching and have a question regarding an exercise the...
[2 replies] Last: Hehehe. Sets starts at N. Where N is the number of items to connec... (by Aaron Vienneau)
matrix fonction
 
Hello, I can not compile this program, had sent me some code, but it can not compiler.S it Please look at this program. I still have ONLY print the square roo...
[3 replies] Last: The code does use one construct that is not part of standard C and wil... (by keskiverto)
panoramic view
 
I've been tasked with righting a program that accepts three images and combines them into a panoramic view I'm having trouble getting started any advice?
[2 replies] Last: This is what I've got so far I'm working on adapting it to take three ... (by jax666999)
C++ windows form
 
Hello to everyone. I have a project in visual studio 2010 with some forms. In the .cpp file of every form I've defined the function in this way: void name...
[1 reply] : you need an instance of name_form in order to access the function pl... (by coder777)
How to replace my circular buffer
 
Hello all, My requirement is to store the request coming from the device into a buffer. As of now we are using Circular buffer[ char array of size 4K bytes]. S...
[5 replies] Last: > But is it not possible to replace the circular buffer using containe... (by JLBorges)
Any in-built C++ functions for base conversions??
 
Hey guys, I wrote a program that used recursion to convert between the number bases some time ago. I am currently working on some pointer values (for class obj...
[12 replies] Last: the system generated them(in hex) When you say "the system" "genera... (by andywestken)
making general list error
 
hey I compiled this program.but i got an error "segmentation dumped".Can anyone plz explain me the error in this #include <iostream> #include <iomanip> ...
[4 replies] Last: Some irregularities that I see are as follows: 58. cout<<"\n"<<head... (by abhishekm71)
Function Pointers on "C++ Primer Plus" Confusing Me
 
Here is what is confusing me: const double * f1(const double ar , int n); const double (*f2)(const double ar , int n); const double f3(const double ar , int ...
[10 replies] Last: "C++ Primer Plus", you say? This book has a significantly bad review. ... (by LB)
August 2013 Pages: 1... 1011121314... 28
  Archived months: [jul2013] [sep2013]

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