simeesta's Profile User Rating: *****

Reputation: 218 Stalwart
Group:
Active Members
Active Posts:
590 (0.33 per day)
Joined:
04-August 09
Profile Views:
13,734
Last Active:
User is offline Jul 07 2014 05:32 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   simeesta is wondering what his status is.

Posts I've Made

  1. In Topic: Basic Structure

    Posted 2 Jul 2014

    #include<iostream>
    // This is a preprocessor directive. It allows functions defined in iostream.h to be used
    using namespace std;
    // C++ has something called namepsaces. This says to use the namespace called std.
    
    int main() {
    //this is the starting point of any C++ program. Every C++ program has a function called main()
      cout << "Hello World!" << endl;
      return 0;
    }
    
    

    More info:

    preprocessor
    namespaces

    To learn C++, I suggest to start tutorials online such as this, instead of asking for "some more basic stuff".
  2. In Topic: Cyclic Cipher - Issues with .size()

    Posted 30 Jun 2014

     cin  >> str;
    
    will only read in the first "word".

    Have a look at the getline() method to read in an entire line.

    I meant this getline().
  3. In Topic: Comparing 2D Char array

    Posted 22 Jun 2014

    Shouldn't it be
    myArray[i][j] <='9'
    
    

    myArray[j] is of type char* which is why you're getting a conversion error.
  4. In Topic: Wheel of Fortune with Functions Questions

    Posted 22 Jun 2014

    == is a comparison.
    = is assignment.

    You mention global variables, but don't have any. It's normally better to pass the value to as a function paramater rather than have a global variable anyway.

    total is a local variable and will be set to 100 every time you call total(). Try creating the total integer in main and passing it to your total() function.

    Where are you putting this loop?
  5. In Topic: Printing Partitions of a Number Using a Constraint on Number of Values

    Posted 15 Apr 2014

    It also depends on whether you consider 1+3 to be the same as 3+1 and whether you allow 0 ie 0 + 4.

    Sorry. Misread your post. Forget that.

My Information

Member Title:
Deadly Ninja
Age:
22 years old
Birthday:
September 29, 1991
Gender:
Location:
London
Interests:
Computers, Maths, Karate, Films, Games.
Full Name:
Simon
Years Programming:
4
Programming Languages:
C/C++, Haskell, Java, X86/X86-64 assembler, prolog, MATLAB.

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://
Facebook:
http://www.facebook.com/sapensadler

Comments

Page 1 of 1
  1. Photo

    David W Icon

    07 Jun 2012 - 01:52
    Whow ... you may like to see/use some of the C help files like
    readLine.h
    Cvec.h
    Clist.h
    and their help function files
    at ...
    http://developers-heaven.net/forum/index.php/topic,2580.0.html
    and ...
    http://developers-heaven.net/forum/index.php/topic,2582.0.html
Page 1 of 1