General C++ Programming - January 2012 (Page 26)

Bitmap tile extracting?
 
Hey all, i'm new to this site so bare with me. My goal is to create a function or class were, it takes a bitmap (ex. 640). This image is made up of a bunch of ...
[2 replies] Last: Okay cool, I'll try that thank you (by mill0698)
Programming Error C2597 - What's going on?
 
The problem in my code is that its telling me that some private attributes of my class are being illegally referenced. I was hoping that someone here might be a...
[10 replies] Last: Maybe I was using the wrong terminology, which I probably was. I had t... (by jmdrew8)
C++ & SDLfirst game, Hit detection problem
 
Hello, I recently started to learn C++ and SDL and I am working on a game called "Gun Fight" at the moment. The game is similar to pong in the sense that there ...
[6 replies] Last: I have decided that the Hit Detection box was exactly the size of the ... (by Schadek)
sending an array to a pointer
 
What I am trying to do is point to a multidimensional array. I found that I can use a pointer to point to a 1-dimensional array. Is it possible to point to a mu...
[2 replies] Last: thanks, that works! (by DeadEli)
Linking BLAS/Lapack or ACML with Armadillo in Ubuntu
 
Hi! Initially I installed BLAS, Lapack, and ATLAS but the matrix multiplication didn't work, it gave me this errors: /usr/local/include/armadillo_bits/blas_...
[1 reply] : Remove Ubuntu's Armadillo package and manually install the official p... (by mtall)
Help
 
what do i write in the program when i just hit enter, the program ends?
[3 replies] Last: if (input == "") exit(0); (by Moschops)
by fog76
My C++ code
 
Hi guys, in these days i'm putting online my C++ source code of oldschool demo effects. If you are interested, take a look at http://insolitdust.sourceforge.ne...
[no replies]
Streaming problems!
 
Hi people, i have this code.. #include<cstdio> #include<cstdlib> #include<iostream> #include<string> #include<fstream> #include<iomanip> #include<cm...
[4 replies] Last: Problem solved in this way!!! #include<cstdio> #include<cstdlib> #... (by marcofjs)
No std::owstream_iterator?
 
Hi all, we all know that to print something to std::cout we can use : std::vector<std::string> cont; std::copy(cont.begin(), cont.end(), std::ostream_i...
[2 replies] Last: Thanks for reply. I thought that std::wstring was taking care of wchar... (by Silvermaul)
by LB
I've heard multiple inheritance gives compilers grief?
 
I've heard that the reason that Java and many other OOP languages don't support C++ style Multiple Inheritance is because of having to deal with such things in ...
[6 replies] Last: The solution these days is to multply inherit interface and manually... (by rapidcoder)
Semantic network data structure
 
Hi, I need an opinion on how to implement a semantic network type data structure for the following example. http://upload.wikimedia.org/wikipedia/commons/6/...
[1 reply] : class Mammal: public Animal { Vertebra v; public: //... }; ... (by LB)
Sockets: client cannot connect to other computer/server
 
hi, I have a problem, and so far I don't know how to get through it. I have created standard server and client by windows sockets and it works fine on my PC (...
[6 replies] Last: I'd suggest that you print the error (with WSAGetLastError()) to know ... (by coder777)
Search sub-string in vector and write whole string to file
 
Hello, I'm having a problem with finding and printing an element in a vector. I want to search my vector to see if an element starts with a sub-string, and if...
[3 replies] Last: I've got it figured out, needed an iterator. Code as follows: for(... (by ahoysailor)
Help
 
how do i make a program that gives a 3 when i input 2+1 and when i input a 2*2, the prog will give me a 4? sorry i am new to c++ :)
[1 reply] : http://www2.research.att.com/~bs/dc_command_line.c (by Moschops)
by LB
Polymorphism and operator=
 
I'm very troubled by the behavior of calling operator= with polymorphism. Very unfortunately, it follows the same pattern as all other virtual functions... #in...
[15 replies] Last: I am with you now .. thanks Sloppy for the artical thanks all of you ... (by bluecoder)
OpenGL setup/linking - Dev-C++ 4.9.9.2
 
I'm starting to learn OpenGL, but I keep getting errors when I try to compile the example code that I download. The errors are linking errors. What files do I n...
[14 replies] Last: This is for Dev-C++ You need libgdi32.a libglu32.a libglut32.a libopen... (by LOL LOL)
by Zanje
Help
 
can anyone post a code for black jack console?
[5 replies] Last: I'm a beginner programmer, and I did this assignment recently. I'd be ... (by oiramih)
function prototypes and arguments in classes
 
Hi, I'm writing a code, which looks like this (simplified...) ---------------- routes.h ---------------- #include "buses.h" class routes { frie...
[4 replies] Last: @bluecoder: Thanks forward declaration helped (by tarun88)
Variable Problem
 
Hi everone :D I am making a drag and drop piece of code in Processing and it uses code similar to C++. My problem is that I cannot change the value of variab...
[4 replies] Last: "Similar" means two or more things have some properties in common. (by Muhasaresa)
Operator overloading
 
CSprite CSprite::operator * (double scale) { // code to scale the size of the sprite and make a new one based on that size. return newSprite; } ...
[2 replies] Last: The general approach is to use const & when you can so that you forbid... (by eypros)
January 2012 Pages: 1... 2425262728... 36
  Archived months: [dec2011] [feb2012]

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