Nuko32's Profile User Rating: -----

Reputation: 3 Apprentice
Group:
Members
Active Posts:
23 (0.06 per day)
Joined:
08-May 12
Profile Views:
1,771
Last Active:
User is offline Jan 05 2013 06:18 AM
Currently:
Offline

Previous Fields

Country:
IT
OS Preference:
Mac
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
0
Icon   Nuko32 has not set their status

Posts I've Made

  1. In Topic: Searching a string in a text file

    Posted 17 Dec 2012

    View PostLarcaCode, on 17 December 2012 - 10:22 AM, said:

    Open the file, store the content in a string and use string::find
    Here you can see the reference for string::find.

    Cheers
    Larca


    Thanks! It works very well :P
  2. In Topic: C++ Encryption Algorithm

    Posted 16 Dec 2012

    View Postmacosxnerd101, on 16 December 2012 - 01:23 PM, said:

    A cryptographic algorithm is a mathematical transform of numbers. I don't mean to be rude, but by your question, you don't seem to have a strong math background. Explore some number theory and pick up some Cryptography textbooks for college classes. As a heads up, Crypto is usually taught at the 4000+ level in college.


    LOL maybe I don't have a strong math background, btw I'm 14 years old. Anyway, I already knew what an algorithm is, but I want to know how to create it in C++. Well, not the algorithm itself, but a program that encrypts some text using that algorithm.
  3. In Topic: MouseListener on images

    Posted 28 May 2012

    View PostRyano121, on 28 May 2012 - 11:20 AM, said:

    As I've said before get the location of the mouse click via the MouseEvent object passed into the event handler and calculate whether or not it's inside the image area (using the bounds of the image).

    You will probably need to use an anonymous class to you have access to the image -

    addMouseListener(new MouseListener()
    {
    public void mouseClicked(MouseEvent e) {
                int x = e.getX();
                int y= e.gety();
    
                //Determine whether or not X and Y are inside the image here
        }
    });
    


    You may find it useful to work out the logic behind this on paper first and then translate it into code.

    Good luck


    Ok thanks!
  4. In Topic: Problem with MouseListener

    Posted 28 May 2012

    View PostRyano121, on 28 May 2012 - 07:36 AM, said:

    Are we talking JMenu's and JMenuItem's here?


    We are talking with images! When the users clicks on "Start" image, the game will start!
  5. In Topic: Problem with MouseListener

    Posted 28 May 2012

    Information:
    Im creating the menu with images! When the users click on the "Start" image, the game will start!

My Information

Member Title:
New D.I.C Head
Age:
14 years old
Birthday:
November 21, 1998
Gender:
Location:
Italy
Interests:
Programming, Music, Reading, Watching TV
Full Name:
Nicoḷ Blasi
Years Programming:
2
Programming Languages:
C++, Java, HTML, Batch, Bash

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://nuko32.altervista.org/
Yahoo:
Yahoo  Nuko32
Skype:
Skype  Nuko32
Facebook:
http://facebook.com/Nuko32
Twitter:
Nuko32

Comments

Nuko32 has no profile comments yet. Why not say hello?