Search:

Type: Posts; User: User-_-Name

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,000

    Umm.. Seriously? Why would you declare the...

    Umm.. Seriously?

    Why would you declare the namespace WITHIN main?


    #include <iostream>
    #include <string>

    using namespace std;
  2. Replies
    1
    Views
    1,387

    My Programming Technique

    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...
  3. Replies
    17
    Views
    3,931

    A minor piece of information: while(game ==...

    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...
  4. Replies
    6
    Views
    971

    Compare your program to mine, and any differences...

    Compare your program to mine, and any differences are 'wrong'.



    #include <stdio.h>
    #include <iostream>
    #include <string>

    using namespace std;
  5. Replies
    16
    Views
    2,366

    I don't particularly want to use them...

    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...
  6. Replies
    16
    Views
    2,366

    Okay. I've included string, cctype, and clocale;...

    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...
  7. Replies
    16
    Views
    2,366

    Oh boy.. I just noticed a pretty big flaw. I...

    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) >=...
  8. Replies
    16
    Views
    2,366

    Thanks for your support :D It's always great to...

    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.
  9. Replies
    16
    Views
    2,366

    @Tabstop: I'm not really particularly familiar...

    @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...
  10. Replies
    16
    Views
    2,366

    @Stdio: I tried as you suggested, cstio instead...

    @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:...
  11. Perhaps you can elaborate a bit more on your...

    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...
  12. Replies
    15
    Views
    2,322

    Amen... I don't understand why everyone insists...

    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 >>...
  13. Replies
    16
    Views
    2,366

    Age Generating Console Program

    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...
  14. Replies
    7
    Views
    3,370

    I believe the permission denied is coming in by...

    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!
  15. Good point. I should know it would be something...

    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...
  16. Using the if() and || (or) statements properly.

    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...
Results 1 to 16 of 16