Beginners - September 2012 (Page 29)

Where to begin?
 
Where do I begin with C++? I have Code:Blocks and Code lite. I like the way code lite looks because it is a lot like Melabs PBP3. What would be the best web...
[6 replies] Last: After getting a good grasp of that... you could create small console s... (by strongdrink)
by sdub
Reseting a static variable?
 
Thank you. I had previously tried to initialize n in several different spots (but hadn't tried to initialize after checking if str != NULL).
[2 replies] Last: In this line you are setting the static variable to 0: for(n = 0; sa... (by pogrady)
Help!Printing a single byte!
 
I wanted to see how float numbers were stored in computer's memory. So I typed the following code: #include <stdio.h> int main() { float y = 5.0; ...
[2 replies] Last: Thanks for help. Now it's working! (by george86)
by dean
const member initialisation
 
Hi guys, suppose I have a set of instance variables declared as const double, I would like to initialise them in the constructor. Besides of initalising in th...
[4 replies] Last: oky thanks guys (by dean)
by skarla
send e-mail
 
How i can send a simple e-mail in c++? For example if i have this: string a="hello"; how i can send the <a> in the adress someone@someone.com for examp...
[2 replies] Last: could make a simple program to see how i can send the vaariable in the... (by skarla)
Hailstone Program
 
Hello! I am stuck trying to figure out the last couple of things for this program. The program is supposed to read in a lower and upper limit, produce the hails...
[2 replies] Last: Honestly, this is my second week of programming and I don't even know ... (by jnutt011)
CString Substring
 
Hi good afternoon everybody, I have a CString containing a datetime eg 20111213164136 But I need to be able to extract certain numbers from within it eg the y...
[2 replies] Last: That never occurred to me but would work perfectly, Thank you (by grocerykid)
Program always outputs the same, weird number
 
This is my very first attempt at C++, and I must be missing something big. This is an assignment for my CS class - you have to write a simple store checkout pro...
[5 replies] Last: @doctorkwack101 I forgot to mention, please use code tags in future -... (by TheIdeasMan)
by gta100
How to stop user input with a different variable type?
 
Hello everyone! I am having trouble stopping user input with a different variable type. In my case, the user input are numbers, but the problem specifies that I...
[10 replies] Last: > I think my problem is that I want to specify my very own "End-Of-Fil... (by JLBorges)
classes and array of struct - syntax?
 
I am starting to use classes and have a question regarding array of struct declaration in a class file. Here is my code thus far, which isn't much at this poin...
[2 replies] Last: Thank you - that helps a lot. (by badkaykay)
my program disappears
 
im trying to teach my self c++ from a book and it has several activities. i compile it fine but when i run it, it runs disappears and stays running. #includ...
[5 replies] Last: This article was written for your problem: http://www.cplusplus.com/ar... (by Duthomhas)
by Maygs
<< no operator matches these operands
 
Hey, after google searching I'm still stuck on this problem. I have the same implementation of this code working for a different program so I'm not sure why I'm...
[4 replies] Last: Yeah, good luck! (by Aceix)
| < > >> CLI commands
 
Where can I find documentation? I don't know what to ask the manual.
[3 replies] Last: Will this help? https://docs.google.com/viewer?a=v&q=cache:au1dOsNN7J... (by Aceix)
cli int arguments printf || atoi
 
Hello all, just trying to understand how to do this simple function. All I want to do with this little program is to make a cli argument "-c" and have the progr...
[4 replies] Last: Just a trivial point from me. scanf returns an int which is equal to ... (by TheIdeasMan)
If else
 
Hello I am trying to write a program and the objective is to have the user enter in 3 numbers and then have the computer tell us which is the bigger number. Whe...
[4 replies] Last: Comparisons of floating point very often won't work that way, because ... (by TheIdeasMan)
by jc4bs
Problem With Function Calculation
 
#include <iostream> #include <cmath> using namespace std; int main() { float windSpeed; float temperature; cout << "Please type in the temperature in degrees...
[2 replies] Last: Thank you pogrady! I looked back over my math and found a few errors. ... (by jc4bs)
Can anyone give me a hint on where to start?
 
I'm in a C++ programming class at my uni, and just received this assignment. I have no idea where to start, and was hoping you guys might be able to help. Than...
[4 replies] Last: oh ok this is making more sense now. Thanks! (by stfnhill)
by Weefy
Stack implementation Problem
 
Hi all, This is my first time posting here and I am seriously hoping you guys could help me. I am doing this implementation of a stack class and for the life o...
[3 replies] Last: yes, once your question is answered just mark it as solved. It helps k... (by Need4Sleep)
Help
 
I have an assignment in my C++ course where I need to get a user defined amount of integers and the integers themselves are user defined and I need to get their...
[7 replies] Last: Alright, I was about to say we haven't covered arrays in my class yet,... (by brainmush)
by htown
read and compare with file i/o
 
void batch() { char word ; while(!indata.eof()) { indata >> word; cout << word << endl; if (word == "help") ...
[1 reply] : "==" does not work with c-strings. Either make word a string ( std::s... (by Lowest0ne)
September 2012 Pages: 1... 2728293031... 62
  Archived months: [aug2012] [oct2012]

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