Beginners - August 2010 (Page 15)

Why c++?
 
As I look more into c++ it appears to be a very difficult language compared to others. What are the benefits of C++?
[4 replies] Last: we can be close to the system architecture, and follow the OOPs paradi... (by anzarzulfiqar)
by Upaka
Printing the results
 
Hi, I have linked a Hydraulic model(SWMM 5.0) to an optimization module (NSGA II) using c++ and called some results from the hydraulic model to the optimizatio...
[no replies]
Elapsed time program - incorrect results using "modf" function
 
For homework I need to make a program that reads in two times (in 24 hour time) and prints the time elapsed. The way I'm working this out is as follows... ...
[4 replies] Last: i think if the time has to be 24HR format, we can use arithmetic on ho... (by anzarzulfiqar)
Can't use a template typename for list?
 
I wrote a function to return a list<int>::iterator. Everything worked fine. So I decided to make it a template <typename T> function, thus list<T>::iterator. Bu...
[5 replies] Last: that said... the second option is probably better anyway because th... (by Disch)
by Jacob
Typing a sentence
 
So I made this and it works, more or less... Although the "." has to be typed independently in order to stop the sentence. Can someone either approve this or po...
[1 reply] : #include <iostream> using namespace std; int main () { st... (by pyschoder)
making a program of addition and substraction
 
i am just a beginner and dont know a lot about c++ . i was trying to create a program which will prompt u to do addition or substraction here is the code #...
[5 replies] Last: data type for variable response is char it should be int int resp... (by pyschoder)
Linker Errors (1,2)
 
I'll start right out and include all of the relevant data.. I am getting linker errors, and as far as I am aware, I've made sure all classes are defined properl...
[20 replies] Last: If you can code a character array to manage memory more effectively t... (by helios)
direction of cursor
 
Hi every one . in default cursor move from left to right how can i change direction of cursor in my program int main() { char tile ; char ch1,ch2;...
[1 reply] : You cannot. (At least not easily.) You should also chuck the <conio... (by Duthomhas)
by ccdwiu
Need direction with code issue
 
Hey everyone just wondering if someone can help me. I'm working on a program that calculates a men's suit size based on weight and height. Age is also a variab...
[5 replies] Last: Right on, thanks (by ccdwiu)
Starting up with C++
 
Hello, I am just looking at starting to use c++. I was interested a little bit in programming about 6 years ago, I started to learn Java, but I didn't feel ...
[2 replies] Last: There are also some tutorials on this site http://www.cplusplus.com/do... (by AdventWolf)
checking age
 
im working on a program that asks for age and outputs the age but what i want it to check is if the user entered 0 or 100 i want it to output your kidding t...
[3 replies] Last: No problem glad I could help (by ccdwiu)
'friend' not permitted on data declarations
 
I see this error when trying to overload the << operator in one of my classes. Code: #include <iostream> class Node { public: friend ostream& opera...
[2 replies] Last: Ugh I am so terrible... Thanks... Desh (by closed account Lv0f92yv)
by O5m4r
my smart pointer!
 
Saludos... This is my very first post here. Hope find some help. I'm a IT student from Venezuela and was assigned the project of creating a Utility library as h...
[7 replies] Last: I totally understand your point. Programmers sometimes dont have the f... (by DemienBjarne)
Access violation Error on FStream
 
Firstly, Here's my code running in VS 2010. #include <iostream> #include <fstream> #include <string> #include <list> using namespace std; class...
[no replies]
by Bloono
Fstream Undeclared Identifiers Error
 
I'm pretty new to programming, so sorry if this comes across as stupid, but hey... I looked around for a solution before posting here like a good newb, but foun...
[2 replies] Last: Oh I see! Thank you!!! :))) (by Bloono)
by dickmw
Some bugs that I cant discover
 
I am new to programming (or perhaps computer) And I just started learning C++ yesterday. While I try to make up a program that generates fibonacci sequence, i...
[1 reply] : That's because an int can only hold so much data. You'd need to use... (by firedraco)
Program doesn't respond.
 
The program should find all the 'a' letters in a string and replace it with 'e'. However, I do not get any response... #include <iostream> #include <strin...
[2 replies] Last: Firstly, use getline() when working with strings: http://www.cpluspl... (by mcleano)
by bonie
using touchpad for morse code
 
Hi guys, I am just working on my bachelor thesis and I ve got one big problem with C++ programming. I prepare programming for morse code for mobile phone, an...
[no replies]
by Lyleo
Can I do the same without the recursion?
 
Hi There My name is Lyle and i'm new to programming. I've noticed something in this code: // recursive function #include <iostream> using namespace std...
[2 replies] Last: Here are both ways: void countBack(int num) { if(num) { cout ... (by Fresh Grass)
Objects of the same class type of member to use
 
1. If I want to represent a bunch of the same critters in a game I'm making with objects of the same class, what would I use for the health meter as a part of e...
[8 replies] Last: *gives thumbs up* (by Disch)
August 2010 Pages: 1... 1314151617... 28
  Archived months: [jul2010] [sep2010]

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