General C++ Programming - April 2012 (Page 39)

Need help Uppercasing the output string for a translate program
 
Hey guys so I am making a Programneed help upercasing from lowercase
[2 replies] Last: Yep, there is a built in tolower() and toupper() function. If you want... (by IceThatJaw)
Bmp loading help
 
Hey guys, I need some help. I need a function that loads a bmp and stores ONLY it's red values in a 64x64 array. Here's what I want it to look like. unsigne...
[3 replies] Last: Never mind, I figured it out ^^ (by SuperSonic)
Which is faster??
 
I want to know which one is faster (executing-wise): loops, or writing out all of the code. Ever since I was a newbie programmer, and I found out about loops, ...
[4 replies] Last: > I want to know which one is faster (executing-wise): loops, or writi... (by JLBorges)
by jwings
having error with implementing template function which returns reference value
 
This is part of a code. I am trying to make a stack from List STL. This is a practice although I know that there is stack STL :)) template<typename T> &T ...
[2 replies] Last: Yes... correctly I names my class as stackL oops. :P careless mist... (by jwings)
If statement help
 
I was tasked with taking some pre written code, tweaking it and making a game out of it. What I got working was to move my tank around the screen using the arro...
[6 replies] Last: Your suggestion sounds about right, but I am starting to get over my h... (by cameronx9)
problem when I declare
 
Hello everyone I have a problem with eclipse, when I declare a "string", eclipse say : Type 'std::string' could not be resolved but in an other project...
[7 replies] Last: In addition of Peter87 's reply, it's considered a bad idea to use t... (by closed account zb0S216C)
by idks16
connect 4 game
 
#include<iostream> #include <string> using namespace std; void display(); bool check(int a, int b); int drop(int b, char player); char place ;//availabl...
[2 replies] Last: or if you want it inside the game loop make it an if statement that us... (by m4wk)
by astex
Declaring a function of fewer variables within a function that takes a few of the variables as arguments
 
I have a numerical integrator (using RK4), that takes functions of one variable of any type and integrates them. The function that needs to be integrated is, a...
[6 replies] Last: That is exactly what I want. Thanks. (by astex)
[Win32 API] Force to use Website Buttons
 
Hello, is there any way to use website buttons like "submit" button below with win32 application? also, is there any way to set value of edit control (websit...
[no replies]
Pack 8 to 4 bit color channel
 
I need help onto how to pack 8 to 4 bit color (alpha channel). It something like this right now: // RGB A color 8 bits per channel DWORD color_a; // A...
[2 replies] Last: Thanks. (by morando)
Overriding >> operator of stringstream for conversion
 
Hello :-), Well, stringstream str; str << 10; double x; str >> x; This code is supposed to convert what's in str to double. What if the...
[4 replies] Last: @Null: Thanks a lot. That's it ^^ @naraku9333: it's out, but I had to... (by TheDestroyer)
"There shall be no arrays of references"
 
Then why does this work? #include <iostream> #include <vector> using namespace std; template <class T> struct node { node(T& data) : data(data) {} co...
[16 replies] Last: HI , I am not able to compile the code as #include "stdafx.h" #in... (by bluecoder)
by Janman
Char Array to Long array
 
Hi! I need to copy the bits from char array to long array. I have written this, but it returns something else every time: long key ; char password ; cout ...
[2 replies] Last: HI , you do not neet the long array and reinterpret_cast for it . lo... (by bluecoder)
How would you attach the camera?
 
How would you attach the camera to an object? At first, I tried synchronizing model and camera rotations, but apparently camera needs to be translated too(spen...
[4 replies] Last: One solution to the middle point problem would be to determine the mod... (by Telion)
Complex polymorphism problem
 
Hello guys, I have a complicated problem, and I need your help. I have a base case, class ParamBase { string paramValue; //... } and a bunc...
[4 replies] Last: Never knew I could call the base pure method. Thanks a lot :) (by TheDestroyer)
Graph Adjacency List - Edge getEdge (int, int)Help!
 
Good evening. I'm programming a graph hat handles directed, undirected, weighted and not weighted graphs that implements adjacency list. Everything works fine...
[10 replies] Last: Thank you very much for the help! (by arbhie2581)
c++ oop class problems with reading array
 
Hi, i need to read from text file. this is what inside the text file: (name, code, price) EG: Fish F0001 5 chicken C0001 7 beef B0001 6 etc i need...
[5 replies] Last: OO based doesn't mean you have to blindly make a class. The way you ca... (by TheDestroyer)
Average Function
 
I need some help working on a program. I am to pass 2-10 numbers which calculate an average. I don't have to pass all the numbers but have to pass at least 2....
[4 replies] Last: btw ... if u need help with anything else ... PM me ... i'll be glad t... (by TwoOfDiamonds)
'StdAfx.h'
 
I am using Visual Studio 2010. Can someone tell me the steps to remove 'StdAfx.h' and what are the dreawbacks of removing such directive. I am implementing .h, ...
[3 replies] Last: 1) Right click on StdAfx.h in your Solution Explorer and select "Remov... (by Stewbond)
Can somebody tell me whats wrong with this code ?
 
#include <iostream> using namespace std; //overload stream insertion and extraction operators class vector{ private: int *arr; int max_size; int elements...
[3 replies] Last: Line 48: max_size and elements are not updated. Line 53: max_siz... (by cire)
April 2012 Pages: 1... 3738394041... 49
  Archived months: [mar2012] [may2012]

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