General C++ Programming (Page 4)

How do I get the address of an overloaded function? (1,2)
#include <iostream> int inc(int i) { return ++i; } void inc(int& i) { ++i; } int main() ...
[22 replies] Last: > How do I get the address of an overloaded function? Using a type al... (by JLBorges)
Recursive function "slow" (sqrt)
Hey guys, In order to learn working with recursive functions, I pogrammed a fcn that approximates...
[9 replies] Last: > May I ask you in which projects you are involved with your qualifica... (by JLBorges)
why say 'exchange' is a 'read-modify-write' operation?
why say 'exchange' is a 'read-modify-write' operation?
[2 replies] Last: @kevinkjt2000 (999) Congratulations on your 999th post :) (by gentleguy)
Input function from other file
Hello everyone, i just want to ask that if i read a function from a c file(input file) using Input/o...
[1 reply] : Your program would need to include a C compiler. The Clang sources inc... (by helios)
visual studio header file
I read vs head file found something, who can illustrate them with simple language, I do not understa...
[1 reply] : 1. Save the current packing behavior on a stack and set it to _CRT_PAC... (by helios)
boost graph library: usage of undirected_graph
Hi there. Have next declarations: #include <string> #include <boost/graph/adjacency_list.h...
[no replies]
Program terminates after inputting vector elements
Hi everyone, I hope you can forgivably help me answer this kinda noob question. I was coding Ex 8 C...
[11 replies] Last: #include <vector> #include <iostream> using namespace std; int main... (by kemort)
How do I create a template function to print based on container passed to it?
It'd be very useful if I could create a generic print function that takes a STL container object (qu...
[3 replies] Last: Improved version: handles nested sequences and ADL-selected overloads ... (by JLBorges)
by mvgnum
Pointer to Pointer program
Hello guys, I found this exercise online and i need to do it for my class. I have NO CLUE. Please he...
[3 replies] Last: I'm sorry to say that this is a really horrible assignment. It's so ba... (by dhayden)
Linking problem (undefined reference)
Hi my friends. I hope somebody can help me. I have included in my project (written in C++11) some ...
[2 replies] Last: My god !! Thanks you. You have resolved my problem in one second ! I d... (by danjiun)
OpenGL and Multithreading
Hi! I'll try to be short. I'm making my OpenGL application multithreaded, because I want to load re...
[6 replies] Last: Actually, since you mentioned tutorials, here's a good one: https://vu... (by JayhawkZombie)
by a10e29
SDL_RenderCopy Memory Leak?
Hi, void SDLToolBox::render(Coordinate myCoord, SDL_Rect* myRect, SDL_Texture* myTexture, bool fli...
[1 reply] : (by helios)
Can i do this to remove allocations
is this valid/stable method of passing pointers, may be a silly question but i need the memory on ...
[7 replies] Last: thanks (by KingCow)
Trigonometry Functions in C++
Is C++ in radians or degrees mode by default, and if in radians, how do i convert it into degrees?
[2 replies] Last: Trigonometric functions are in radians. 1 radian = 180/π degrees. ... (by integralfx)
Printing a double without a decimal point?
I want to print out the result of my output without a decimal. Essentially, like an int. I was looki...
[15 replies] Last: Cire I'm using your version of this. It's excellent. I also want it to... (by Anchises68)
by mark90
Q-Learning Example isn't running
Hello everyone,I have this q-learning example taken from the following website :http://mnemstudio.or...
[5 replies] Last: cire, thank you . Yes, my console window closed before I see any outp... (by mark90)
by bozmin
Using Pointers or variables
Hey, I am a beginner user of c++. and I have a question concerning pointers. Is there any defer...
[4 replies] Last: Between those two examples you just posted, ex1 is much better. I act... (by kevinkjt2000)
What is the best structure to store matrices for Finite Differences Methods?
Hi, I implemented the so-called Finite Differences Methods which consist on computing a value of a ...
[12 replies] Last: Thanks, Cire, that's certainly something to consider in the final mix. (by kemort)
by ZimCa
How to search faster in c++?
Here is my code : #include <iostream> #include <windows.h> using namespace std; int main() { ...
[6 replies] Last: system() runs a separate program. It has to find the program, allocate... (by dhayden)
practice finding/correcting errors
I am trying to practice finding and correcting errors. I have a decent knowledge about C++ but not e...
[4 replies] Last: i didn't think it was that picky with line 1, Compilers are nothin... (by doug4)
Pages: 123456... 24
  Archived months: [jun2016]

Cannot post in this page. To post a new message, go to the first page.