What is the point of oddCount?
Here is some pseudo-code/logic to your program. I hope it helps.
while still getting input
{
declare total variable
Type: Posts; User: biosx
What is the point of oddCount?
Here is some pseudo-code/logic to your program. I hope it helps.
while still getting input
{
declare total variable
I wouldn't say static is deprecated.
It is used alot when you need data members or functions in a class accessible without having to instantiate an object.
#include <iostream>
using...
Once you get used to Object Oriented Programming, you wil appreciate its simplicity.
Java is much simpler than C++.
You usually control that kind of code generation via cmd-line flags.
However it is weird that it would put in debugging info without you telling it to.
Well I do use them in different places, however I think later on in the development of this I am going to have some other way of dealing with it.
I just wanted to know what people's opinion's...
Well it seems silly. I probably won't use it in the long run (just for the time being). I have a function that takes 6 arguments and I #define a small macro for expanding a ton of arguments. Here is...
I have recently come across a situation where it will be beneficial to use a #define macro inside my code. This addition will make the code much easier to understand and a little easier to edit...
Right? I mean, I posted in this thread and I can't even remember what I was doing at that time.
Essentially, arrays and linked-lists can be used interchangeably. It really depends on the situation though. You have to think of the pro's and con's of each:
Arrays
Pros
Easy pointer...
Yes, you can read the file (i.e. its a text file). It works fine now, though. It was an old bug in MSVC++ (I never updated). I compiled through g++ and it worked ok.
Fordy, I think you are...
The file is actually only one line long for now and is like so:
2 123456789 25 100
and the main code is like so:
......
Hey, all! It's been a while. I am having a strange problem which doesn't seem right. I have a class I created that I am trying overload the insertion operator (>>). I do so with this code:
...
Make sure that mount is in your /bin directory. Sometimes commands are just symbolically linked from the /bin and /sbin directory. It sounds like mount is in the /sbin dir (in the root users path)...
I only use KDE because it was smaller than GNOME in filesize. Window managers don't really matter too much to me.
Thanks for the reply. I wasn't sure if people still used them or if they just stuck with normal pipes/FIFO's or just network sockets. I'll give it some time, thanks.
In stdlib.h there is a function called system() which allows you to pass arguments to the shell. You use this injunction with the clear command for Bash like so:
system("clear");
Works...
Does anybody here use (or know anyone that uses) System V IPC's? I'm not even sure if they are POSIX'd. I am just wondering if I should invest time learning all about it.
thanks
RedHat isn't just for newbies. I use RH7.3 and it is perfect for me.
I think the key is to try a few and see which one makes you feel more comfortable. I used Mandrake for about a year and just...
You can do alot with calc and stats with just console programs. I got a rush when I finished a program that calculated a Riemann's Sum. Try it out. Do integrals and find out derivatives and just go...
Until you learn certain API's, you won't be impressed with much. Decide what you would like to specialize in. If you want to do network programming, look at socket API's. If you just want to do...
First and foremost, you can't use a character to hold a word. You need to have an array of characters (or a character pointer to an allocated amount of memory). You seem pretty new so I'm just going...
Yeah right.. Schools give you final projects and other little creative freedoms. Once you get into a company and start coding full time you will have to code to their standards and of course to their...
Here is a different, more standard version:
#include <iostream>
#include <cstdlib>
#include <string>
using namespace std;
Well, they did create C# and they did make Visual C++ b/c Visual C++ is just a program that makes it easier to program with MFC.
Also, they aren't trying to take over every language. They are,...