General C++ Programming - May 2012 (Page 33)

getnewpacket
 
Hello This is a piece of code from serial communication. It gets data from the usb and returns them. The problem is that it for some reason places ffffff a...
[4 replies] Last: Line 57 is the problem. You got memmove wrong. Look at this: http://w... (by coder777)
Problem with operator overloading
 
Hi I have two classes, a Rotation and a Vector (my custom classes, not the standard Vector class). I want to be able to do Vector v, v2; Rotation r; v2 = v * ...
[10 replies] Last: Thanks a lot! I'll try to learn more about it so I can use it properly... (by STTrife)
by tw3tye
Delta time calculation problem
 
Hello. Curnently last few hours im readin the "Delta Time". Im trying to use so called "Fixed Time Step" method in my game, but only thing it was is pain in the...
[no replies]
by boaz
Please need ur help
 
I have done most of my Homework --- but i need to finish it by today.. and i dont get few of the stuff.. Can any one please help.. so i can finish up the thing...
[2 replies] Last: anyone??? (by boaz)
2 or more
 
Hello I got this code witch seperates a piece of the inputted data string and ignores a part (in this case 'f'). How can i do it so it checks if the code co...
[6 replies] Last: You question is a bit unclear. Are you wanting to strip out all repea... (by andywestken)
Help organizing these strings?
 
So I have a file that I'm reading from that follows a format: Joe Steve 101 Bob Jeff 231 Ashley Sam 294 Mandy Jill 12 Roger Tong 9395 I want to put each name ...
[1 reply] : Use a map. std::map <string, int> container; container["Job Steve"] ... (by Telion)
General Code modifying
 
Well, im new but im trying to see how to modify and advance some 7yr old codes for socom 2. i wanna learn how to change the general strings of codes, any idea?
[1 reply] : I have no idea what your actual question is, and unless we have a psyc... (by hanst99)
header files problem
 
#ifndef POLICE_H #define POLICE #include <iostream> #include <cstring> #include <string> #include "Ticket.h" #include "ParkedCar.h" #include "ParkingMet...
[6 replies] Last: What viliml said is correct, I overlooked that (answering from my phon... (by clanmjc)
Lightweight Pixel Library c/c++
 
Does anyone know of a good lightweight raw pixel library? What I'm looking for is that I can simply specify the type of pixel format (compressed or otherwise), ...
[no replies]
c++ linked list class
 
Hi guys i cant find a search functin for a linked list that searches a linked list for a name that the user puts in. i tried google and many other site cant ...
[2 replies] Last: look bro thats my code my problem in find ""compare serchedname with n... (by thewarrior2)
Something about global/local variables and stuff.
 
I can't really think of a way to describe what I need to do, so I'll just post code. The program I made is a Sudoku solver. #include <windows.h> #include <...
[4 replies] Last: Thanks, that worked. (by ben1996123)
Undefined reference to a class? Why wont it compile
 
Here's my error /tmp/cc0I08xG.o: In function `main': diceGame.cpp:(.text+0x192): undefined reference to `ShortSword::ShortSword()' collect2: ld returned ...
[1 reply] : You didn't implement ShortSword(void) . (by closed account zvRX92yv)
HELP WITH SWAP FUNTION
 
Does anyone know how to write the swap function in C++ but using references to pointers instead of pointers to pointers. ????
[2 replies] Last: template <typename T> void swap(T*& a, T*&b) { T* temp=a; ... (by viliml)
"->" and "."?
 
whats the difference between the two? i know both are used to acces members of an object, but when do i use "->", and when do i use "."?
[4 replies] Last: yes, i already understood that part from the first reply. i simply ask... (by even821)
input file not opening?
 
Okay, I've never really had a problem with anything like this before, but I can't seem to get my input file to open. I thought maybe it was because I was workin...
[1 reply] : I don't know if it's a problem but you could try using a path without ... (by Peter87)
Huge flaw in quickSort implementation of mine. Please help!
 
Hi Forum, I am trying to implement quickSort algorithm. The program works fine and sorts the array but I guess internal implementation isn't the way it sho...
[4 replies] Last: Thanks cire. That helps :) You are right. I wasn't actually keeping tr... (by incognito)
queries about find_first_not_of and find_first_of member functions
 
Hi, I am trying to tokenize a string of numbers. I made the program run with some combinations and it works successfully. However, I am still confused as to ex...
[no replies]
by Cylab
bits of all types of files(txt,mp3,gpn etc)
 
Dear all. please kindly but freely provide of your ideas and thought about following. I need to get binary bits of variety of files regardless of ASCII, Un...
[1 reply] : #include <iostream> #include <fstream> #include <iterator> #include <... (by JLBorges)
Twitter Console App
 
Hey everyone. I've been working on quite an interesting project this week. I decided to do a twitter app for consoles, mainly just to practise and I must say I'...
[1 reply] : for the username I'd advice MySQL, it's simple to use abd does what yo... (by tofiffe)
C function pointers vs C++ templates
 
which one is the most efficient and recommended practice when implementing an Observer pattern ??
[1 reply] : The polymorphic call wrapper std::function<> gives the maximum amoun... (by JLBorges)
May 2012 Pages: 1... 3132333435... 41
  Archived months: [apr2012] [jun2012]

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