General C++ Programming - July 2013 (Page 17)

Crash normally, but not when debugging ( SDL, malloc )
Ok, this is doing my head in... Notes: Im Using SDL, Im using Codeblocks to code Ive narrowed down my crashing problem ( using printf's ) to a malloc call ...
Jul 18, 2013 at 5:39pm
[10 replies] Last: @ne555 OK thanks for that, I really don't know anything about SDL. (by TheIdeasMan)
by ben353
Basic particle simulation using SDL
Hey, so I'm making just a very basic (and not particularly realistic!) particle simulation. The idea is I want to add a much larger 'particle' i.e. one big circ...
Jul 18, 2013 at 3:36pm
[no replies]
Multiple def. error during make
Hi while compiling I get multiple def. errors like this SubVecProcessor.o: In function `chrtopch(char)': SubVecProcessor.cpp:(.text+0x0): multiple definiti...
Jul 18, 2013 at 2:16pm
[10 replies] Last: Thanks I forgot all about the template . Yes I know how to solve the ... (by talkalotsonius)
Odd heap error on delete...
I am writing a class that will enumerate the MIDI devices on a modern (Vista/7/8) PC and store their names and IDs in an array of structs so that the user may s...
Jul 18, 2013 at 2:06pm
[7 replies] Last: You're welcome! Yeah, I know exactly what you mean - when writing in ... (by MikeyBoy)
Multithreading module crashes?
I've made a multithreading module in C (for the psp), but for some reason it keeps crashing when loading the second thread. Anyone knows what's going on? ( - st...
Jul 18, 2013 at 9:54am
[5 replies] Last: it can only execute one thread at a time This is how threading works ... (by coder777)
3 D indexing of 2 D array
In a program, value is assigned to GBlock is as given below unsigned int GBlock = gScan[ SCAN ][ lo ][ uiBlk ] Here SCAN is an enumerated data type and...
Jul 18, 2013 at 9:30am
[no replies]
auto seems to return wrong type
I am trying out a technique for a singleton class: // access controlled singleton, accessed through function "instance()" // singleton is constructed in this ...
Jul 18, 2013 at 9:02am
[2 replies] Last: http://thbecker.net/articles/auto_and_decltype/section_03.html Has so... (by firedraco)
by bmw
Vector End
Is it safe to assume that: *(vector<TYPE>::end() - 1) == vector<TYPE>::back() ?
Jul 18, 2013 at 3:04am
[9 replies] Last: Yes DTSCode you are right, I am not talking about specific code, just ... (by bmw)
Writing an 32 bit interger to 32 bit value in Binary
(Rewritten:) So, I was reading that article on binary files: [quote=Disch] u16 ReadU16(istream& file) { u16 val; u8 bytes ; file.read( (char*)bytes, 2 ...
Jul 18, 2013 at 2:57am
[8 replies] Last: Yes, it works with integers. (by Disch)
libstdc++-6.dll not found
I tried to use eclipse for c++ programming instead of code-blocks. and i created a simple "helloworld.cpp" program #include <iostream> using namespace std;...
Jul 18, 2013 at 1:38am
[2 replies] Last: @niven do i drop it in C:\MinGW\bin ? (by herrybiscuit)
[Build Error] [main.o] Error 1 (makefile error)
I am using: Dev-C++ 4.9.9.2 on Win 7. So I am working on this project. And whenever I come to compile it, I get a make file error. Its weird cuz all the other ...
Jul 18, 2013 at 12:33am
[11 replies] Last: Vectors ... Interesting!! I must have a look at its documentation, th... (by CPlahPlahLearner)
Tile Editor Problem
I didn't have to resort to this, because I'm sure this is a simple problem. However, I've been dealing with this for quite a while now. For some reason it keeps...
Jul 17, 2013 at 9:51pm
[5 replies] Last: Thanks guys. Turns out it was somewhere completely different then here... (by closed account N36fSL3A)
HTML Codes
I am trying to store the HTML codes for different characters in an array, but I am not sure how to do this, so that when using the keybd_event it can be plugged...
Jul 17, 2013 at 9:44pm
[1 reply] : I'm not sure what the keybd_event function does, but it evidentally ex... (by doug4)
by Jubbly
Making sure to only enter numbers
I just started a new program and I only want numbers to be inserted, if it's not a number I want it to loop and say invalid. { int array ; int num; in...
Jul 17, 2013 at 9:16pm
[1 reply] : It will loop infinitely even if you input 3. If you move lines 6 and 7... (by ats15)
How can I use templated Varadic Sequences and Integral Sequence Wrappers?
Hello all, I've been studying the heck out of the boost metafunction libraries. I understand a good deal of what things like varadic functions and integral s...
Jul 17, 2013 at 5:18pm
[5 replies] Last: Thank you for all of your advice, examples, and answers in regards to ... (by pholotic)
Prime number program
hello my first post here,i am having problem with this program and i am a new to c++ too,my apologies if i posted in wrong section. Well here is the program i h...
Jul 17, 2013 at 3:55pm
[3 replies] Last: You're welcome :) (by MikeyBoy)
[A.I.] A controller to synthesize human movements random like
Hello, i am fairly new to C++(just graduated a b.sc. in computer science) and i dont really know how to do what i want in a professional way. The basic pr...
Jul 17, 2013 at 3:51pm
[no replies]
“Undefined Reference To 'IMG_Load'” CodeBlocks and SDL_Image Error
I had this problem for 2 days now. I'm learning SDL through Lazy Foo's tutorial, but I can't proceed further as IMG_Load doesn't seem to work. I tried setting i...
Jul 17, 2013 at 3:21pm
[6 replies] Last: SOLVED MY PROBLEM: I installed SDL_Image 1.2.10 and it works ;D Thank... (by closed account L3ME3TCk)
if...else print outs
Hi, I am running a loop 3 times, and each iteration has 3 decisions to make. My problem occurs in my function 'calculateCharges'. The 'if' structure fall...
Jul 17, 2013 at 2:51pm
[3 replies] Last: Thank you - much appreciated! (by project science)
Confusing compilation error
Hi everyone. I have a strange error that comes up when I compile my code: "void Account::setType(std::string)' member function declared in class" I am new to t...
Jul 17, 2013 at 2:11pm
[16 replies] Last: Sorry about that, I was really tired and couldn't read properly. Than... (by ohlala191785)
July 2013 Pages: 1... 1516171819... 34
  Archived months: [jun2013] [aug2013]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.