General C++ Programming (Page 8)

Divide operand
 
To anyone who may know how to help; I have a line of c++ code that was giving me a wrong answer w...
[2 replies] Last: I think I understand now and where else I may have issues... thanks (by benkitt)
Images in graphics.h
 
I am trying to display an image and it seems that readimagefile doesn't work... I am not sure why. C...
[5 replies] Last: What IDE and compiler are you using OP? (by Computergeek01)
so, is there an easier way to create maps for say, a pac-man clone than hard coding rectangles?
 
Im not even asking for pseudo code or anything, just a concept. I thought pac man would be a good pr...
[3 replies] Last: there are other objects, such as the dots and the sprites themselves.... (by helios)
Movement of Knight in Chess!
 
Hi everyone, So in chess, the knight moves in a very special way: either: two squares forward and...
[11 replies] Last: Yes, apologies, I studied English long time ago in the US.... ☺ I di... (by AmmmG 01)
Writing object into binary file
 
I have an object declared as such: #include <iostream> #include <fstream> #include <string> ...
[10 replies] Last: Either approach could be made to work but writing only the attributes ... (by Computergeek01)
Possible movement of Knight in Chess.
 
I have to do a program where the user is asked to enter the 2D position of the Knight on the Chess ...
[1 reply] : #include <iostream> constexpr int N = 8 ; // board size using board_... (by JLBorges)
Opinions on coding of Parallelism in C++
 
Hey All I'm working on some exciting new Parallelism tooling for C++ with the University of St Andr...
[2 replies] Last: In the tool we're creating we are building upon and extending these me... (by craigmanson)
by lilaii
Shared memory with services
 
Hi, I have two applications, one 32 bits and one 64 bits talking through a dll which I made in 32 a...
[no replies]
Quick Dirty Command Line Parser Isn't working
 
Hi, I made a quick command line but not sure why it's not working? It seems the for loop is wrong....
[1 reply] : The first argument (0) is always the executable (and path). So start t... (by coder777)
! File handling in C++ !
 
Please tell me what this line do-> while (f1.read((char*) this ,sizeof(park))); Please tell w...
[1 reply] : this : http://www.learncpp.com/cpp-tutorial/8-8-the-hidden-this-poin... (by coder777)
Why to write int(in_time.ti_hour) ?
 
cout<<"Park-in time: "<<int(in_time.ti_hour)<<":"<<int(in_time.ti_min)<<":"<<int(in_time.ti_sec); ...
[2 replies] Last: Is ti_hour a char type ( char , unsigned char or signed char )? The... (by Peter87)
Pointer can become array ?
 
Example if i write int* a; a =5;can ?
[2 replies] Last: You can use array syntax with pointers. a is the same as *(a + 1... (by Peter87)
Help!! Debugging issue
 
Can I get a set of fresh eye on this bit of code... the getline function is not letting me do the u...
[2 replies] Last: You just need to include a line before the getline function is called ... (by Stalker)
variadic constructor?
 
Hi, I have a variadic template factory function that accepts an unknown number of arguments. This...
[3 replies] Last: if you omit the forward, you might be copying where you could have mov... (by Cubbi)
by pnoid
Assertion failed error with opencv
 
I'm trying to select a region of an image with opencv but I randomly get this assertion failed error...
[2 replies] Last: Thanks so much. I can't believe I missed that. (by pnoid)
Convert temperature between celsius and fahrenheit
 
I am supposed to write a program that allows the user to convert a temperature either from celsius t...
[2 replies] Last: You have several issues with your code: 1. You are calling functions... (by FurryGuy)
Testing a bad allocation?
 
I want to test some of the exception handling in my program, but it's hard to do. I will almost neve...
[3 replies] Last: [quote=keanedawg]I want to test some of the exception handling in my p... (by FurryGuy)
making a lambda template...
 
Hi, I wanted to create a template lambda so that I do not have to re-define this behaviour for ea...
[4 replies] Last: Ok, yes I know I can use a function object... but, I wanted to see how... (by JUAN DENT)
distance between two atoms
 
Dear all, I am newbie in programming language, especially in C++. My problem is the following: ...
[10 replies] Last: in case I will paste here the piece of code Please, use code tags. S... (by keskiverto)
From structure to array
 
Hi. i have this code and I want to put all the information input into an array and find the highest ...
[4 replies] Last: Okay thanks! I even found the min value of the salary! Thanks a lot! (by michellee)
Pages: 1... 678910... 24
  Archived months: [dec2015]

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