cppnewb's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
Members
Active Posts:
25 (0.04 per day)
Joined:
20-January 13
Profile Views:
1,592
Last Active:
User is offline Nov 09 2013 05:31 AM
Currently:
Offline

Previous Fields

Country:
GB
OS Preference:
Windows
Favorite Browser:
FireFox
Favorite Processor:
AMD
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Icon   cppnewb has not set their status

Posts I've Made

  1. In Topic: Error: The method getSelectedItem() is undefined

    Posted 29 Oct 2013

    Is that your full source? Try checking your imports,
    Your validname deceleration and initialization. Instead
    of toString are you able to use parseString?

    Also check SO, the 2 that posted have good points..
  2. In Topic: Java "Terminal"/"shell"?

    Posted 29 Oct 2013

    View Postg00se, on 29 October 2013 - 02:40 AM, said:

    So you want to simulate the behaviour of a Linux terminal session on Windows for a small set of commands?

    Summed it up nicely. Looks like I'ma need to trawl the man pages and get to grips with the filesystem API, erm fun fun fun?
  3. In Topic: How Does D.I.C Drink Its Coffee?

    Posted 29 Oct 2013

    In extra large mugs, 2 at a time :|. 3 spoon fulls, splash of milk.
    I drink anywhere between none and 8-12 cups a day(Depends on other sources of caffiene and general feeling/mood), I usually get at least 3/4 cups of the liquid nectar of the gods.

    I gotta admit, I don't really appreciate coffee as much as I would like/should especially as I've seen some really cool posts about it in the last couple months on medium/ycombinator (IE:cool coffee) which has lead me to experiment a tad with different brands/strengths and adding stuff like honey and/or cinnamon has turned out to be quite nice.

    Now am I the only 1 that despises the "coffee shop"? I mean I've drunk coffee every day for around 8 years, but if I was to walk into starbucks, I'd be dumb founded on what to order out of the 300+ choices of "coffee".
  4. In Topic: How to count vowels and change first letter of a string to Capitalize

    Posted 28 Oct 2013

    No idea what your doing wrong as I didn't read your code :).

    In future use the BB[code.] tags. From the title though, sounds like
    you need a string method, check there API and do a search for a logical or
    example that should help.
  5. In Topic: [Challenge] Java Code Golf- Cryptography

    Posted 28 Oct 2013

    Cool challenge, gonna do some of the more basic ciphers (minus the transposition that can be done in like 3 lines and is pointless).

    I'ma start with a Ceasar shift.
        public void CeasarEncrypt(){
          String toCrypt = getInput();
          char[] charList = toCrypt.toCharArray();
          int[] x = new int[toCrypt.length()];
          for(int i = 0; i < toCrypt.length(); i++){
              x[i] = (int) charList[i] + 3;
              charList[i] = (char) x[i];
          }
          for(int j = 0; j < toCrypt.length(); j++){
                  System.out.print(charList[j]);
              }
        }
        
        public void CeasarDecrypt(){
         String deCrypt = getInput();
         char[] charList = deCrypt.toCharArray();
         int[] x = new int[deCrypt.length()];
         for(int i = 0; i < deCrypt.length(); i++){
              x[i] = (int) charList[i] - 3;
              charList[i] = (char) x[i];
          }
          for(int j = 0; j < deCrypt.length(); j++){
                  System.out.print(charList[j]);
              }
        }
    
    


    Note Ceasasr used a shift key of 3, it would however be easy to modify that code for any key you want
    or to grab it from the user.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Location:
London
Interests:
My interests vary greatly, from general security to psychology, programming to attempting to learn new (verbal) languages.

I also love breaking stuff, purposely or otherwise as 97% of the fun comes from fixing them :D.

Oh and gaming, besides that there's tons of things I haven't listed.
Years Programming:
4
Programming Languages:
Java
Python ( A little)
C++
Others:
HTML
CSS
PHP (Enough to get by)
JS (Same as above, though I truly hate JS)

Contact Information

E-mail:
Private

Friends

Comments

Page 1 of 1
  1. Photo

    cppnewb Icon

    21 Jan 2013 - 02:37
    Hello me
Page 1 of 1