General C++ Programming - January 2015 (Page 14)

need help with imaging program
 
i need help with my imaging program in my image.cpp i dont know what the error means: code is {code] MImage::MImage(const char* fileName) error is-- Membe...
[1 reply] : about your awful memory management http://www.cplusplus.com/forum/gene... (by ne555)
Creating acceleration
 
Hello once again ^^' The next question I was asking myself is how to add acceleration to my Players movements and once again I've got no idea of how to do th...
[4 replies] Last: Hmmm I've searched for a Frame independant movement tutorial and also ... (by HalfNOoB)
Beginning With C++ Programming
 
Hey! I want to learn how to program in C++ and I think a good way to learn is to do some projects requiring C++ that I could do to learn different aspects of th...
[2 replies] Last: Hey. I'm just beginning to learn to program C++, too. I found the MIT ... (by Zman919)
Game programming
 
I've decided to try to program a simple game like vvvvv or something of the Mario sort and was wondering if someone could tell me where I could begin. Any point...
[5 replies] Last: This is the Snake Game in Qt 5.4 OpenGL: https://github.com/8Observer8... (by Observer)
[SFML 2.1] How do I move the sprite depending on rotation
 
Hey how's it goin fellow programmers. So heres the problem I have. This is how I want my sprite movement to work : if my sprite is faced upwards and i press ...
[7 replies] Last: Well dt(delta time) should restart, because you are using its value fo... (by greenfox)
Access violation writing location 0x00000001.
 
Hi Friends, I am working Visual C++ 2012. I am trying to read a GLOBE file using the following code. #include "stdafx.h" #include "iostream" #inclu...
[12 replies] Last: @vardhan36397 http://en.wikipedia.org/wiki/Entry_point#C_and_C.2B.2B ... (by keskiverto)
by ntran
Finding the neighbors of a node/vertex in a 2D mesh
 
Hi everyone, I have a 2d mesh defined by nodes and elements: Structure of a node: Node ID, X position, Y position Structure of an element: Element ID...
[no replies]
Function will not return value.
 
I have been looking at this and cannot figure out why my function will not return this int. It does make it into the if(... prints "test 32" but will not return...
[4 replies] Last: I also doubt that that sizeof() call in your function is really doing ... (by jlb)
by red942
Successive Addition
 
I have problem finding the codes of successive addition for example I want to make a code that when I give it numbers a and b a=8 b = 3 c= 8*3 = 8+8+8 ...
[2 replies] Last: You can always make c a string: #include <iostream> #include <string> ... (by MiiNiPaa)
sfml with glew in C::B
 
in code block, when I try to include glew in sfml it so me Warning: .drectve `/DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" ' unrecognized and output is blank...
[no replies]
by while
function template instantiating ,pointer,and reference
 
Hello everyone!I am a Chinese.So please forgive me my poor English. Here is my question. template<typename T> string debug_rep(const T &t); We might...
[4 replies] Last: Thank you very much! (by while)
How to create BST for arithmetic expression
 
Hi guys, I am a c++ leaner, I am trying to create a BST tree for this expression: 2346*+/8+, and do inorder and postorder to get the in-fix version, and postfix...
[1 reply] : In the pseudo code, I assume that line 11 means "assign s.top to right... (by dhayden)
Mouse Input Coordinates Not Being Read in C++
 
Please take a look the code below, its not the complete thing obviously since that'd be too long. Essentially the problem is that when I click the mouse, th...
[1 reply] : What about z ? Is it set somewhere or left uninitialized? (by coder777)
by Gyiove
creating fread&fwrite like functions
 
Hello everyone! I have this here: int write( void *in, int insize, int count ) { if( !isbinary ) return size; int adsize = insize * count; char...
[2 replies] Last: I think you haven't considered pass-by-value semantics. To work in the... (by tipaye)
Help!
 
#include <iostream> using namespace std; int main(){ return 0; } this is my main functions. I have problem making a program that prints in asteris...
[1 reply] : have a read of this: http://www.cplusplus.com/doc/tutorial/control/ I... (by mutexe)
c++ sums
 
#include <iostream> using namespace std; int main(){ int sum = 0; int line; cin >> line; for (int i = 0; i < line; i++){ int x, y; cin >> x >...
[2 replies] Last: Hope this helps. The cout << sum; needs to be inside the loop for it ... (by Irhcsa)
Multiplication Table?
 
So I'm supposed to write something that will output a multiplication table from two user input integers between 2 and 10. For example it should display like...
[2 replies] Last: Hey that worked! Thank you! :) #include <iostream> using namespac... (by aids8544)
Windows 7, is it possible for two applications to use same port?
 
In Windows XP it was possible for several applications to use same port. In Windows 7 however, I always receive WSAACCESS error (10013) whenever application tri...
[no replies]
copy a derived class object thru a pointer to base
 
Is there a way to copy a derived class object thru a pointer to base? For example: class Base { public: Base( int x ) : x( x ) {} private: int x; }; ...
[1 reply] : Add virtual clone() function to the class and return new copy-construc... (by MiiNiPaa)
Iterative loops - I'm a bit stuck
 
Hello folks. I am learning about loops, and I wrote this program (in Ubuntu, compiled with g++) to do the following: Display the word "peppermint", and - one ...
[8 replies] Last: @cire Thank you - your simple diagnosis fixed it :) (by glossywhite)
January 2015 Pages: 1... 1213141516... 24
  Archived months: [dec2014] [feb2015]

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