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

by shaggy
c++ (SDL) vector issue
 
hey guys im making a shooter in c++, SDL and openGL. I have been trying for 2 hours and cannot find a way to shoot my bullet through my bukket vector. I have...
[no replies]
statement list (STL)
 
I'm electrical technician. I work more with Siemens simatic s7, I use ladder logic but I wanted to learn or understand the statement list because some machine...
[1 reply] : What's a "statement list" when it's at home? Wazzak ... (by closed account zb0S216C)
trouble with class
 
hi, my teacher asked us to make a todo list project and to save the list of todo items we are supposed to use a function he made. However I can't make it work....
[2 replies] Last: todoitem.cpp #include "todoitem.h" TodoItem::TodoItem(string newText... (by biamigueis)
How to get an integer from a string?
 
Hi, If I have a string input such as "A1", How do I split the string so I can have a string variable that contains "A" and a integer variable that contains "1"?...
[1 reply] : http://cplusplus.com/reference/string/string/substr/ http://cplusplus.... (by R0mai)
by ravs
File system polling
 
Hi, I have to pick the files(hundreds)individually and have to edit them. All the files will be in one directory where C++ program has to poll to find for ne...
[2 replies] Last: Hi, Thanks for the reply. Its on Windows OS. I just need to poll for ... (by ravs)
string::find() skips parts of string?.....
 
Does string::find() skip parts of a string inclosed in quotation marks? void keyfind(string phrase,int startpoint=0){ //cout<<phrase<<' '<<startpoint<<endl...
[2 replies] Last: Thanks. yea im suppose to be doing this in python but I'm just doing ... (by blueberry)
Using STL List to create a "sorted bag"
 
Hey guys, I'm new around here. I'm a student at U of Colorado and I am studying Computer Science. I am currently in a data structures class that I enjoy quite...
[1 reply] : The compiler is complaining about those friend functions rightfully. S... (by Cubbi)
by cozmy
string function
 
Hello everybody. I have a quick question. I have this function that reads a line of string. And it reads it pretty well. I'm really curious how does it work. ...
[1 reply] : cin.clear() clears all error flags that may be set on cin (that may be... (by hanst99)
Saving VS project
 
I am using Visual Studio 2010. I would like to save the .h, and two .cpp files for my project to the USB external drive under one folder so that I can later cli...
[1 reply] : Well... File -> Save Solution (or Project, dunno atm) done. (by hanst99)
by lql44
Which Library to include?
 
Hi Guys, If I want to use a certain method, But not sure about which library i have to include, whats the best to find out? any advice Thanks Y
[1 reply] : Well, if you're talking about the standard library and mean header t... (by hanst99)
by mrmike
cURL Troubles
 
I'm working off of a slightly modified version of the class found at http://www.zedwood.com/article/125/cpp-libcurl-static-class here: /* Http.cpp part ...
[no replies]
connect the dots
 
I am working on a program using darkGDK that is to allow the user to click points on the screen and write them to a file. Then it opens the file and uses the po...
[2 replies] Last: well i thought that it was fairly specific, the mouse movement is bein... (by ironreaper)
by won212
I have 102 Errors for this priority queue
 
I have 102 Errors, may i know why it is this case? :O Any solution to this? #include<stdio.h> #include<iostream> #define MAX 30 using namespace std; t...
[8 replies] Last: hi bluecoder, and now, i debug your code, I get the same 100++ syntax ... (by won212)
How to repeat code using this for loop?
 
Hey all I'm trying to draw a quad every time I find a .obj file in a folder except it only draws the quad once ?? even tho I'm using a for loop and the equation...
[3 replies] Last: I suggest you take lines 68-120 and put them in a function void drawQ... (by hamsterman)
Problems with Collission
 
I am working on a project at University, Am trying to check if a ball and a rectangle collides and if true then make the ball which is 2D to make its way up th...
[1 reply] : you've put at the line: "xdelta=-xdelta;//de-increment balls coorderat... (by russellc92)
C++ problem
 
Hello,i'm kinda new here and i had to make a double linked list ( i think thats the english name) in C++. Adding addition,substraction,inseration,finding a key ...
[8 replies] Last: Oh nevermind i fixed it. I put : Lista & Lista::operator= (const... (by Adryanmh)
How to check if two template parameters are the same?
 
Hi all, suppose i have a template class: template<typename T> my_class{...}; and a template function that makes some checks on two my_class objects templa...
[3 replies] Last: namespace home_grown { struct true_type {} ; struct false_typ... (by JLBorges)
WHAT IS A BIT MASK?
 
Hi there, i just need to know what bit masking is and what purpose does it serve?
[1 reply] : http://en.wikipedia.org/wiki/Mask_(computing) (by Null)
by K33p3r
How to simulate an Erlang(k) variable using C++
 
Good day, I have a college project in which I need to create a program which simulates an Erlang variable. I'm new in this type of programming so I don't qui...
[5 replies] Last: Thanks again for clarifying. (by K33p3r)
class student
 
pls am havin trouble trying to write a program on inheritance about class student. pls aw do i go abt it
[2 replies] Last: Student ^ Special Student ^ TS (by IceThatJaw)
April 2012 Pages: 1... 3637383940... 49
  Archived months: [mar2012] [may2012]

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