General C++ Programming - February 2010 (Page 17)

by Daeo
Accessing multidimensional arrays via reference(pointer)
 
Here's a little program I'm building while I try to figure out how to access multidimensional arrays...
[4 replies] Last: G++ allows it because it's part of C99, but variable sized arrays are ... (by closed account 1yR4jE8b)
by arnaud
read arithmetic expressions in .txt files
 
Hello everybody, I would like read mathematical functions in .txt file. Example : on the first...
[4 replies] Last: you bet well ;-) Thank you for the example... (by arnaud)
string dynamic memory
 
Hi, I'm trying to make an string pointer to contain multiple filenames: string* myList = new st...
[4 replies] Last: Because I was not familair with it yet, know I searched for it and lea... (by magnificence7)
Inheritance ISSUE PROBABLY EASY SOLUTION
 
hey guys quick question. I have a base class "baseballplayer". From there i have made a derived clas...
[1 reply] : Why isn't "PitchingStats" just a member of "Player"? Either a player ... (by PanGalactic)
precision on scientific notation
 
i wanna change the precision of a number in scientific notation. e.g.: i have 3.459560456e-3 and i w...
[5 replies] Last: Did it help? (by twiss)
Unions question
 
So when you have an union like this: union uint4 { unsigned int i; unsigned char b ; ...
[3 replies] Last: ok, thanks, I gues I'll need to use other things than unions then to s... (by magnificence7)
by zelta
Void Pointer to generate 2D Array
 
Does anyone know how to use a void pointer to generate a 2D array rather than an int pointer? For...
[3 replies] Last: Nobody know the answer ??? Please...guys! (by zelta)
by bdh333
Problem with overloading addition operator
 
I have a class, largeIntegers, that stores large numbers in an integer array as single digits and i ...
[3 replies] Last: Look at line 7, and consider what it does to the value if you've carri... (by jsmith)
Dummy Head in a Linked List? Am I doing this right?
 
Greetings! It's been a long time since I've implemented a linked list, much less a linked list wi...
[1 reply] : It *looks* ok, albeit with some useless lines of code (line 5 isn't ne... (by jsmith)
String Validation
 
Hello, im writting in C++, and i need to validate a string of text, i need to make sure it contains ...
[3 replies] Last: find_first_not_of() (by jsmith)
PLS RESPOND
 
Hi guys, I am having issues with data validation, dunno what all validation to cover. Given is a...
[6 replies] Last: I want to validate everything. Of course, runtime can't be negative. (by Suzanne)
Print String Literals From Source?
 
Hey guys I'm new here. Anyway. I have been trying to figure out how to do this for a while now. With...
[16 replies] Last: Thanks for that link. I think I am really close but still cannot seem ... (by th3pr0f37)
C++ "Unknown Knowns"
 
Hi. So I decided to write a simple little math header for my personal use. You know, useful little t...
[1 reply] : #include <boost/bind.hpp> #include <boost/function.hpp> #include ... (by jsmith)
by vRltwE
How to verify if a value stored in a double is an integer value?
 
Hi, I am writing matrix to files. The values in the cels of matrix are double or int. So I do ...
[5 replies] Last: Can you copy/cast it to an int and compare that against the original? (by moorecm)
Do while loop question
 
im trying to write a do while loop for this program. its basically a report card. also i have to val...
[12 replies] Last: i fixed it with a if else at top to convert it back to false. thanks e... (by krazyeyez8)
line.find ("string with regexp" ,0);
 
Hi For my program, I need to retrieve a value from a html file (screen scraping). I have to ge...
[1 reply] : You need to use a regular expression library for that. string.find() ... (by jsmith)
SDL rotation
 
I want to know how to rotate a shape, I declare my shapes like this: shape foo ={ 0,0,//ve...
[9 replies] Last: Sorry, I am horrible at geometry, thankyou. (by DrChill)
strategy question
 
Hello, My task was to write a simulator of simple microcomputer with processor, memory, and some fe...
[no replies]
c++ terms
 
Anybody know how to define these terms?? I cant find them on the net 1. Clock_t 2. Null Pointer ...
[5 replies] Last: That's why I did "I'm feeling lucky." I noticed that for almost all (... (by chrisname)
by ccjamp
Unequal Brackets and Illegal Default???
 
Hey everyone, I'm relearning C++ for the first time in a few years. I need some help. I'm using...
[5 replies] Last: THANK YOU ALL!!! All comments were helpful (from formatting to execut... (by ccjamp)
February 2010 Pages: 1... 1516171819... 21
  Archived months: [jan2010] [mar2010]

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