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

visual 2010 cmc line
 
Hello when the output(cout) is too long the cmd line show only portion of the result is there any setting change to show all the result ? thank you ...
[1 reply] : change cmd text buffer and width? (by tath)
how to write a step reader?
 
I need to develop a tool to compare geometric structure of point cloud from scanned objects with their CAD model. The CAD model is stored in step file. So how c...
[6 replies] Last: thanks for your quick reply. I know catia can import and export .stp f... (by dhhjx880713)
Arguments
 
Hi, I want to be able to write a program where I can record user input but combine it with command line arguments. For example I do a simple getline(); and...
[8 replies] Last: i mean of course the shell uses ifs, but its more complicated than tha... (by closed account Dy7SLyTq)
How does the OS lay out arrays on the heap?
 
Hey I've got a VERY experimental function which takes data stored to a file and assigns it to a multidimensional array on the heap. It's designed for infinite d...
[4 replies] Last: Yeah I found out that there are a few "problems" with how I'm setting ... (by TheBeardedQuack)
Is this possible? (Random number generator for strings instead)
 
string Random = { "Jon", "Chuck", "Joe"}; std::default_random_engine generator; std::uniform_int_distribution<string> distribution("Jon","Joe"); str...
[1 reply] : You're close. You just need to use the int to index a lookup table. ... (by Disch)
Game from scratch C++ and SFML Edition
 
Has anyone ever used this tutorial? I did a while back and it worked all fine and everything, I was using SFML 1.6 that time and I decided to try it again after...
[no replies]
by Ceset
SDL_image
 
damn this .h it gives me a lot of probs lately. load_image func SDL_Surface *load_image( string filename ){ SDL_Surface* loadedImage = NULL; SD...
[7 replies] Last: just an fyi... the zlib from the ttf library and the sdl_image library... (by closed account Dy7SLyTq)
Can't figure out what I'm missing
 
I am not asking for answers, just a little guidance as to why I am receiving the errors that I'm getting after debugging. I need help with my homework assignmen...
[2 replies] Last: Thank you for your time. I knew it was a dumb mistake. (by HOOK EM)
In SDL: Allocate a custom-size SDL_Surface
 
Hello, How could I create an SDL_Surface of tailored width and height? I assume it's CreateRGBSurface, but I'm not positive as I seemed to have trouble with ...
[2 replies] Last: I'm not sure what the problem is. SDL_CreateRGBSurface() takes as ex... (by Duthomhas)
Unable to understand the memory leak?
 
I'm declaring a simple object of type StackElement. But, when I use the memory leak detection provided with Visual Studio 2008, it detects memory leaks. Can any...
[5 replies] Last: no problem. however, so you can call stuff in _tmain, i would try atex... (by closed account Dy7SLyTq)
enum and const difference
 
i have enum{x=20,y=30,z=40}; and const int x=20; const int y=30; const int z=40; ia there a difference
[2 replies] Last: Any object of an unscoped enumeration can be implicitly converted to a... (by vlad from moscow)
Hi. This is a new topic. Pls. Help i need a code
 
Here is the info guys 1. Write a program that uses a function which computes for the Prelim Grade. With the following details: a. Quizzes ( Avera...
[2 replies] Last: Here. I think this is what you were asking for: main.cpp: #include ... (by ostar2)
by Mats
RTS Fight System
 
I'm trying to do an RTS type fight system (like you would have in Age of Empires or something like that) in a C++ game engine. I'm having trouble with exactly w...
[3 replies] Last: Thanks Disch! @Computergeek01 - It is designed this way to try to pre... (by Mats)
Converting UNIX C++ code to Windows
 
Hi, I am relatively new to C++ and what I am doing is trying to convert some C++ code written for LINUX/MAC to run on windows. I think signal handling is not ...
[2 replies] Last: All C(++) standard headers are platform-independent (meaning they shou... (by closed account S6k9GNh0)
by cyrili
D3D9X lag when objects outside view frustum
 
hi all, it happens to me that directx displays multiple meshes (1000+) just fine while im watchin them, but when i rotate the camera and the meshes get outside ...
[no replies]
by Raivyn
FFTW Real to Complex of Multidimensional data
 
I am trying to utilize the multidimensional FFT fftwf_plan_dft_r2c_2d from a single array of data. I have a M data points, N number of times: float *input =...
[3 replies] Last: FFTW 3.3 (www.fftw.org) (by Raivyn)
Work on 2 axis the same way
 
I have been coding this 2D physic engine for quite some time,, I work on the many part of these 2 axis ( x and y ) in the same manner is just that one is an ...
[9 replies] Last: > This code is just for x axis, > it does almost the same thing to y a... (by JLBorges)
by Daleth
Way to get rid of dummy variable
 
I have this basic sort function for containers with non-random access iterators: template <typename InIter, class Comp> void sort(InIter curr, InIter end, ...
[2 replies] Last: Ah, thanks! (by Daleth)
acm question
 
https://icpcarchive.ecs.baylor.edu/external/20/2040.pdf 22 3 7 0 1 for input this i dont under stand why out out is 110 is number should inclu...
[6 replies] Last: @kulkarnisr how to understand "the smallest strictly positive multipl... (by yuansanwan)
solve some warning
 
Hey guys Just would like someone to check my code i think there is some leakage of data and i have a lot of warnings, but i don't know how to fix it except f...
[16 replies] Last: thanks for all the help i got it to work in the end even though there... (by asda333)
August 2013 Pages: 1... 1314151617... 28
  Archived months: [jul2013] [sep2013]

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