My C++ skills aren't good, but can you post some sample code? Some users here might know if you're headed in the right direction.
Type: Posts; User: Caduceus
My C++ skills aren't good, but can you post some sample code? Some users here might know if you're headed in the right direction.
cin >>
Probably, not too clued up on C++ terminology.
Can't you post an idea? Even if it's wrong it's still better us to write the whole code for you.
I don't think it's possible to run a program without Main being called, could be wrong.
We aren't trying to hurt you, but it seems your reach far outweighs your grasp, meaning you say you're a good programmer but you don't seem to know what to do.
Is this only going to be used in your website, or in other programs? If it's for a website then HTML/PHP would be a better idea...
I think most Linux distros include the g++ compiler (my Ubuntu has it) already installed. Find a good text editor (I use SCiTE) and compile it with g++
Well, what have you done so far? You can't expect people to write the entire program for you.
The problem I've found with Accelerated C++ is that it only teaches you things that they need in their examples, but it's still the best beginners book I've seen for C++.
I don't have that much working knowledge of in/output streams, so I just assumed cout worked on everything the same. I think I'm trying to make programs that are too advanced for myself.
Thanks, I...
G++? It's the default c++ compiler that comes with Ubuntu, it's called by doing:
g++ -c "path name"
Ah, that's not what I was expecting :S Ok, I'll carry on practicing. Thanks!
I've just reached chapter 5 in Accelerated C++, and in C4 it briefly described making your own data structures. I've tried to implement an address book (following a suggestion on these tutorials),...
Thanks for the solution. This isn't actually homework, I was watching a beginner's video on youtube that made an average program with three numbers, and I just wondered how to do it with an unknown...
I've never used Iterators, and don't yet know how to use them (only up to chapter 4 in Accelerated C++) Can you post the solution relevent to my program with an explanation please? I hate to ask, but...
A few topics down I mentioned I was making a program that computes the average of an unspecified amount of numbers. Here's what I have so far:
#include <iostream>
#include <string>
#include...
That's exactly how I was going to do it, with an End Of File, I just wasn't sure if I could read multiple values into a single variable. Thanks for clearing this up for me :)
Right, I know this is for a trivial program but I'm trying to improve my problem solving skills by making a program that will calculate the average of any amount of numbers you enter, and I plan to...
I know almost nothing of C, I don't know many criticisms of C++ but I don't like C# Not necessarily because it's Microsoft, but it's largely not portable and as far as I know very similar to Java...
I mean I used it in one of the first drafts of the program. I'll keep experimenting and see what I can come up with.
Thanks for the information you all have given :)
Elysia, I did it like that but it wouldn't work. It didn't give me any errors, it just wouldn't abort when I entered 0.
That seems like an awfully complicated way of doing it...
Aha! I never thought of using logical-or! I tried to implement a break if the user enters zero, but that didn't work :P Sorry to keep asking questions, but I've read the short tutorial, and I can't...
Ok then, how would you do it? I don't like saying it, but I have only just started and would like to see a program that "works" the way it's supposed to.
Here's a pic of it in SCiTE:
http://img246.imageshack.us/img246/8821/scitebx0.png
Here's the same section in tags:
#include <iostream>
using namespace std;