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

Sorting arrays
 
Hello, I'm writing a program that i need to sort out the different lengths of the list of words in my array. I'm not sure where to even begin. I think I need to...
[1 reply] : #include <algorithm> int main() { int MyArr = {2,4,3,5,6,1,... (by LB)
Writing Functions
 
I need help to write functions returning the fahrenheit value of a celcius temperature, and another one that does the opposite. Thank you for helping
[4 replies] Last: Yes. You would have to replace double with float in the code above... (by Moschops)
What is meant by an unsigned int?
 
When they say the vector class member function size() returns an unsigned int, what exactly does that mean? I understand an insigned int is a non-negative integ...
[4 replies] Last: be aware that you can pass a non-positive value to unsigned int and co... (by codekiddy)
Take template parameter from User
 
Hi, I have a class whose template parameter I want to take from the user. Problem is these template parameters are user defined data types. This is what ...
[5 replies] Last: template<typename T>class my_class : public super{}; super* getTempla... (by ne555)
by NYP
can anyone help me with this error?
 
#include <stdio.h> #include <ctype.h> #include <string.h> #include<cstdio> #include <stdint.h> #define length 20 #include <iostream> using namespace std...
[4 replies] Last: [quote=eypros]Use #define LENGTH 20 instead Just to reiterate, I ... (by Disch)
can anyone help me with this?
 
http://s1236.photobucket.com/albums/ff451/threatn/?action=view&current=112.png i have no idea how to do this can anyone help me?
[2 replies] Last: can u just give me the code for this question in C language? if you do... (by imbaegod)
TCP Listeners with Multiple NIC Cards
 
I've run into a snag with some TCP Listeners that I have deployed under a "real world" testing basis. I have a server that listens for incoming data over a TCP...
[no replies]
by drfrev
get Webcam info
 
I have a few questions about using webcams with visual studios express: 1) What would be the fastest way to put the separate RGB values into an 3d matrix. (i...
[2 replies] Last: If you are going to be using .Net you might as well use C#, might as w... (by closed account o1vk4iN6)
learning oops
 
i want to start learning object oriented programming and working with txt files i just have a little knowledge about it...can you'll help me with some free ...
[5 replies] Last: OOP = Object Oriented Programming Oops = to acknowledge clumsiness: ... (by ResidentBiscuit)
why do we use pointers in array
 
hello everyone, i m new to this forum as well as new in c, but i have a question that why we use pointers in array, eg. i mean we create program to insert el...
[1 reply] : Because it's easy and convenient. (by Moschops)
DFA simulation in c++
 
My program tries to simulate a DFA in c++. This DFA has two alphabets (0, 1) and different states and tries to parse a string as input. When I compile the code...
[no replies]
Declaration is incompatible error
 
Whenever I compile this, the skeleton class and the player class cannot pass the respective other object in. Please help. The error happens on 34/51 (prototy...
[2 replies] Last: Thanks. That did the trick. (by sikuneh)
size_t
 
I want to know about size_t. What is it?? a daatype or anything else?? Please post if anyone has an idea regarding the same. I am new to this forum and am inter...
[7 replies] Last: Thank u all.. (by Abhijit Kulkarni)
SDL Bullet Movement O.o
 
Hey guys, I'm trying to make a little space shooter, and I've gotten asteroids and the player to move but now I'm stuck on getting my space ship to shoot a b...
[7 replies] Last: Lol, I ended up making a strafe beam.... good enough :D (by Code Assassin)
SDL while loop confusion
 
hello, i was wondering why in SDL where you have your main game loop, it doesnt do the code billions of times like a normal loop.. eg: ... bool run =t...
[5 replies] Last: I have coded in SDL and the loop will behave as it always does in C++. (by Peter87)
Windows is triggering a breakpoint in my program
 
I created a MFC Application and connect it with ODBC Database, but when I input data shows this message: " Windows is triggering a breakpoint in x.exe This ...
[no replies]
Data Structure for Side Scrolling Game
 
Hi, I have a programming assignment that wants us to create a very basic console-based side scrolling game. Here I have the exact assignment just I don't lea...
[no replies]
by tahac
function...
 
what do the get& cin.get functions? is they give string or array? HOW?????
[2 replies] Last: http://www.cplusplus.com/reference/iostream/istream/get/ (by Athar)
by tahac
string
 
i want check all of member string for find "."character. how i does it??
[1 reply] : dis is how you does it: http://www.cplusplus.com/reference/string/s... (by Code Assassin)
Have you used the Boost libraries?
 
Post from Dave Abrahams on the Boost mailing list: Folks, I was just informed that Boost is a top contender for SourceForge's February Project Of The Mont...
[1 reply] : It's the only project I've ever heard about from that list, so it's na... (by Athar)
January 2012 Pages: 1... 1213141516... 36
  Archived months: [dec2011] [feb2012]

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