Beginners - August 2011 (Page 26)

Input help.
 
I have a program Define LibPub days(m,d,y)= Prgm Local day, yt5,ye yt5:=y*5 If m=1 Then ye:= 1 EndIf If m=2 Then ye:=4 EndIf If m=3 Then ye:=4 ...
[12 replies] Last: The modulus is extremely inaccurate. need a more accurate method (by closed account SEbXoG1T)
by Kase
Parse data from a string to a vector
 
Hi, I'm trying to parse the data (of different types: double, char, int) from a string to a 1D vector. The string looks like this: A: 12345 g 0.1234 0.5678 ...
[6 replies] Last: It's fixed now... Thank you for helping me! (by Kase)
by vizard
Accelerated c++ vs c++ primer?
 
Hi, i've been researching a little bit and I know that both of these books are pretty good beginner books. I can't decide between the two books so I was hoping ...
[1 reply] : read/write code.... (by brokenbot)
Question about classes‏
 
Hi there, I am learning how to program in c++ and I have a problem that I have not been able to solve. Since I am a beginner, chances are that it is a very stu...
[5 replies] Last: Given that the elements are members of the Table, you could give CElem... (by andywestken)
Generating New Outputs in Rand()
 
Hey guys, I am having a problem with the rand() function. The first time I execute the program, the random values come, but every time after that, the random v...
[5 replies] Last: Thanks a lot firedraco !!! It's working now. Really appreciate the hel... (by tejas1995)
Help: "explicit" keyword and double parentheses
 
Hi, I am just trying to understand “explicit” keyword in C++ and would appreciate some link to gain better understanding. Also while looking at some onlin...
[1 reply] : I am just trying to understand “explicit” keyword in C++ The e... (by shacktar)
using union and I need a ">" overloaded operator. How would I achieve this?
 
How would I achieve this. I keep getting errors. I tried to return bool values and then switched the return type on the overloaded function to bool but it still...
[4 replies] Last: oops. (by brokenbot)
using union and I need a ">" overloaded operator. How would I achieve this?
 
How would I achieve this. I keep getting errors. I tried to return bool values and then switched the return type on the overloaded function to bool but it still...
[4 replies] Last: werddd. Bizarre mistake. (by brokenbot)
cout and toupper
 
Say I'm writing a program that takes the input from the user, which is a sentence of some sort, and outputs what he entered with the first letter capitalized. ...
[2 replies] Last: Thanks (by bool maybe)
by bacpp
_ in variable name
 
hi, Is code written like this supposed to go into a class definition vs. in main() if(_infile.is_open()) { _infile.close(); _linenum=0; } els...
[4 replies] Last: Sorry, I misread your message. (It's a missing variable, not a variabl... (by andywestken)
by yessss
help i'm confused
 
what did i do wrong #include <iostream> #include <cmath> int main () { using namespace std; int ages ; ages =25; ages =23; ages =21; cout << ...
[2 replies] Last: Oh haha, thank you, I can't believe I didn't notice that. (by yessss)
Static Object
 
Does a static object implicitly call it's contructor or does it need to be excliptlly called? header: class ImageData { static ImageData TotalImag...
[1 reply] : A static object's constructor is called implicity. Your hypothetical... (by shacktar)
by opie
help with pointers
 
I am trying to write a function that will do the same thing as strcmp (string comparison) does. I am also adding something to make this case sensitive Mayb...
[3 replies] Last: Your logic is not quite right! Set a break point on the return (-1) w... (by andywestken)
I Need Help With Dynamic_Casting
 
I do not understand dynamic_cast. I have been reading this tutorial and I can not get the hang of it. http://www.cplusplus.com/doc/tutorial/typecasting/ I Keep ...
[6 replies] Last: Ohhhhhhhhhhhhhhh So dynamic_cast ensures that the conversion is a vali... (by TheMassiveChipmunk)
win32 GUI output
 
I'm trying to make a simple win32 GUI program which prints some text on the screen when you press a key. I learned how to check which key was pressed prett...
[10 replies] Last: I suggest you just code a WM_PAINT handler which draws fixed text firs... (by andywestken)
Simplest Radical Form in Ti-Nspire Calculator Programming Language
 
Hello, I recently bought a TI-Nspire CX calculator, and i was wondering what the syntax for Simplest Radical From is, so I can write a program to simplify radic...
[1 reply] : Here's something int x = 12; int cx = x; int counter = 0; int a =... (by hamsterman)
C++ Programming (Windows)
 
Ok i have a program to build but i have no idea how to do it. Can anyone help please? Using modules, create a file of records that have the following fiel...
[1 reply] : Given the level of the question, you should know the basics by now! (O... (by andywestken)
by wtf
Recursion handling.
 
I always figured that it would be easier to speed up certain recursive functions by using a 'recursive handler', that is to say, something that handles recursio...
[6 replies] Last: Note that the return of the function clock() has to be divided by CLOC... (by andywestken)
Help with decimals and numbers
 
i recently wrote a program that tells the name of the week day (eg. Friday) but i have a problem.it currently outputs a number (eg. 20.546712). but i need a way...
[3 replies] Last: Why would you start two threads of the same question? (by TheMassiveChipmunk)
class friends help
 
I can't quite figure out how to use class friends. This is what I have: #include <iostream> using namespace std; class mike; class jeff; // jeff cl...
[4 replies] Last: You're right Xander, and for future use, I need to learn how to use ea... (by jeffsg605)
August 2011 Pages: 1... 2425262728... 39
  Archived months: [jul2011] [sep2011]

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