General C++ Programming - November 2008 (Page 3)

Anyone know of any 2D Tile Engine Tutorials?
 
Ok, so I know there are a lot around on the net but I'm wondering if anyone knows where i can find one that is split up using C++ and SDL. Etc the tutorial m...
[2 replies] Last: Thanks for that, signed up with the SDL mailing list - and searched th... (by Mythios)
pascal triangel
 
please help me out... i've make a pascal triangle, and its successfully run but i want it to be a double sided triangle.. this is the code anyway #include<i...
[18 replies] Last: Thanks a lot, the codes are really worked.. (by devaeron)
by am1767
Finding prime numbers without cmath
 
In this assignment the user gives a positive integer, and from that integer the program should determine whether it is prime or not, and then give all the value...
[5 replies] Last: LOL. You know, I actually had someone once offer me money to do his ho... (by Duthomhas)
by sunyu
exception error
 
#include <iostream> using namespace std; int main(){ char _str = "one world,one dream"; cout << "The length of the string _str is:" << strlen(_str) <<...
[3 replies] Last: thank you friends,I know,i will hava a think. (by sunyu)
Finding if a number is prime
 
Sorry wanted to delete my info but if you need help figuring out a program on prime numbers let me know! I figured it out using do for loop if statem...
[1 reply] : #include <iostream> bool prime(int n){ //... } int main(){ ... (by helios)
Using math functions like asin, sqrt, pow, ... without getting range errors
 
I am writing a DLL and I am using some math functions like asin, sqrt, pow, ... The problem is the arguments for the functions are set by users so sometimes ...
[9 replies] Last: Your best bet is to check what parameters are being passed into your f... (by Zaita)
by jrok
Filling arrays for Tictactoe game.
 
hey guys, i am writing a program for tictactoe n I have this is the board i have got to work on. I have the board display working perfectly already. The proble...
[1 reply] : http://www.catb.org/~esr/faqs/smart-questions.html#explicit (by Zaita)
System time function??
 
Hi guys For a bank account program, i need to log every transaction such as withdrawals and deposits with the time that they happened. Is there some kind ...
[2 replies] Last: Or not XP, helios has it covered. (by firedraco)
Include another library in a constructed namespace
 
Hello! I want to include two external libraries that defines functions with the same signature, causing link problems. Is it possible to include these allrea...
[9 replies] Last: Ok, then i think I try that, and report any results thanks again! ... (by johanhake)
How do I obtain a member pointer to a member of a contained class?
 
Consider: struct T { int x; int y; }; struct S { int a; int b; T my_t; }; Consider further the following function: voi...
[5 replies] Last: @helios: Pointers to data members have very limited use in C++, I agre... (by jsmith)
looping through a vector and pausing after a number of loops
 
Hi all. I want to be able to loop through a vector which displays customer details. The problem is, when the vector grows and grows, many of the details wil...
[6 replies] Last: You can find (many) other methods here: http://www.cplusplus.com/forum... (by helios)
by zentec
Text Input of Variable and Unknown Size
 
What is the best way to handle dealing with incoming data (via socket or stdin, whatever) when the size of the entire block of data can vary between a few hun...
[5 replies] Last: I used stdlib (malloc, realloc, free) for this. Start with a block of ... (by matrebatre)
by Trey
I'm trying to get SDL to work.
 
We've been using SDL in my computer class for a while now, and I figured that I should try to start using it at home as well. I've already got Dev-C++ on my com...
[5 replies] Last: I got the same problem, or at least i got a problem with SDL image to.... (by Scipio)
Problem with an array of structures in a function; weird weird characters
 
So I have been trying to get this working for a while now and it works right for as much as I have done now. Its incomplete but the first two functions will wor...
[3 replies] Last: Well...the way you are currently doing it, you will could get an infin... (by firedraco)
I have no idea about this error message
 
I am a new learner of pointers and arrays, when I start writting this small programme, I find ACCESS VIOLATION this message, am I touching the memory that I can...
[7 replies] Last: @Mal - it's actually calling the constructor and passing the construct... (by jsmith)
error C2106: '=' : left operand must be l-value
 
I am making a bank account program for a project. It contains a class for an account which stores the balance of the account and other things such as account nu...
[2 replies] Last: yes of course, i realised after about the silly mistake of trying to i... (by computerscienceguy)
How do I link this DLL Library? (I'm using DEVC++)
 
Hello, I have a dll library that has a .def file included, but no .lib or .a files. So how can I use this to link this library with my project? For Vi...
[1 reply] : read this on '.def' files ( http://msdn.microsoft.com/en-us/library/28... (by Mal Reynolds)
searching and deleting
 
hi guys, basically i am making a bank account program for an assignment, and now i have encountered a problem i cannot get my head round. Basically i have c...
[5 replies] Last: ok guys. thank you all for your speedy replies :D (by computerscienceguy)
by Sera88
Variable doesn't change - and changes (separate source files)
 
I'm having a very weird problem here. I think the resolution is simple, but I just can't figure it out. I'm developing onto GTK+, but that shouldn't affect the ...
[2 replies] Last: helios, you saved my day, truly. Thank you very much! Now the conversi... (by Sera88)
Derived Class ?? (1,2)
 
I am working on a problem which will work with two classes which I have created "product" and "order". The product class will have attributes of name,code and p...
[25 replies] Last: Will I be able to create a vector with a list of product codes and pri... (by jpmcfly)
November 2008 Pages: 12345... 11
  Archived months: [oct2008] [dec2008]

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