Umm.. Seriously?
Why would you declare the namespace WITHIN main?
#include <iostream>
#include <string>
using namespace std;
Type: Posts; User: User-_-Name
Umm.. Seriously?
Why would you declare the namespace WITHIN main?
#include <iostream>
#include <string>
using namespace std;
I am curious as to what others think of how I went about this:
I defined a multi dimensional array, and then outputted it in the middle of a program. Instead of outputting it VIA a string, I...
A minor piece of information:
while(game == true)
is a bit more professional when put as:
while(game)
You declared game as true already, so while returns 1 automatically when you call...
Compare your program to mine, and any differences are 'wrong'.
#include <stdio.h>
#include <iostream>
#include <string>
using namespace std;
I don't particularly want to use them specifically; I've just yet to be introduced to a more simple method of converting strings to lowercase.
Interesting idea; how difficult would it be to create...
Okay. I've included string, cctype, and clocale;
Now: My program cannot do without algorithm due to the fact transform() is in algorithm.
What is the syntax (if any) to use tolower to move a...
Oh boy.. I just noticed a pretty big flaw.
I was thinking about what Tabstop said: the program thinks 02/01 is "younger" than 01/31....
if(((cmonth - mborn) >= 0) && ((cday - dborn) >=...
Thanks for your support :D It's always great to have agreeable people around! Most of my variables do, I was just in a hurry.
@Tabstop: I'm not really particularly familiar with absolutely everything in each file to #include, I just included it... don't remember why. Why do you NEED <string> ? Everything I've used thus far...
@Stdio: I tried as you suggested, cstio instead of stdio.
Compiling: /home/joshua/Desktop/Extra Programming/Tutorial2.cpp
/home/joshua/Desktop/Extra Programming/Tutorial2.cpp:3:20: error:...
Perhaps you can elaborate a bit more on your problem? I think this is the result you were looking for.
else if ((height =='M')||(height =='m') )
{
cout<<"Please enter your Height in...
Amen... I don't understand why everyone insists on using these complex, time-consuming processes when you can simply use
cout << "Last name: ";
cin >> lastname;
cout << "First Jump: ";
cin >>...
The reasoning behind posting this is to gather constructive criticism on my form, and see what you experts have to say about how I went about what I was trying to accomplish.
This program is...
I believe the permission denied is coming in by not being mounted to the /media drive. Try mounting it first ;)
Alternative; copy the file from Windows to Ubuntu; then do whatever you need with it!
Good point. I should know it would be something so simple and mindblowing.. haha. And yes, I've noticed that the if statement tests positive regardless if I use any but the first.
In regards to...
Please do excuse my lack of experience, but I have a (simple?) question that I cannot seem to find laying around.
Problem:
- Having issues combining conditions to test for if()
- I wish to test...