Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 05 Mar 2012
Offline Last Active Oct 10 2012 07:50 AM

Topics I've Started

Making a shop with forms?

03 September 2012 - 07:18 AM

Hello! I'm requiring assistance for the following problem:
I am trying to make a simple shop using .net forms. You have 2 listboxes and you can transfer items from the first listbox, which is the shop to the second one which is the inventory. It works okay... but i want to make it a little bit more complicated. I want to have multiple columns. For name, price, quantity. I found out that a listview could do the job, but i can't handle it. Is there other way to make columned listboxes? Otherwise, can someone explain to me how I could use the listview to do the job instead?

Form Game

19 August 2012 - 07:03 AM

Hello, I posted here today because i need some help with forms in c#.
What i'm trying to do is a simple rpg with forms. Like buttons for: Arena, Inventory, shop etc.
The biggest problem is i have no ideea how to send data from a form to another. Let's say I have MainForm and CreateForm.
On the MainForm I have the button "Create new character". I click it, the new form appears. I have to put a name and select a class. When the user clicks submit i must send data to the MainForm or just another form, like the GameForm.
I need someone to make a very clear example of what I must do. I'm not that advanced in programming.

C++ Exercise

22 April 2012 - 01:19 AM

Hello! I wasted my entire easter holiday laying around doing nothing and I can't do this anymore. I need to work more. So i decided to make a "project" kind of thing where everyone could post exercises and we can help each other solve them. I actually need basic ones because i realised i don't know basic stuff like: finding if a number is prime. Really simple things like this can be sometimes hard to find on your own and can later help you because you can easly implement it.
The first thing i want to know is where i could make 2 threads...(a mod should help me here).

The first thread: Containing all the exercises in this form or with a few modifications. We should stick as much as we can to a standard tough.
Problem no. 1
//Difficulty: Beginner
Write a code that reads 10 numbers, checks if the numbers are prime and shows a total of prime numbers read.
//Example: Input|2,5,6,3,12,6,7,25,2,8 Output|5

The second thread: Like a forum that helps people solve the exercise.
Problem no. 1
I don't know how to check if a number is prime. Can someone help me?
//You may even add sample code here

Waiting for a mod to tell me where i should make the threads, or if they already exist and I didn't see them.
Also if people know any other sources of practice/exercise, I would like to hear from them.

I need advices

11 March 2012 - 04:16 PM

Hey guys!
I started a simple text based game. Basically all I need is some advice and help. How can i make the save/load system work? How can I improve the code? Is there a way to use multiple files? Would using classes make it better?(I still don't know how to use classes -they seems so complicated Posted Image ).
The code is here: Code
The exe is here: Executable

C++ Button Press Detection

07 March 2012 - 09:16 AM

How can I detect if an user pressed a button instead of getting him to type it/enter it.

printf("Choose an option");

//get button press
if (buttonpress ==1) Eat();
if (buttonpress ==2) Sleep();

Instead of: scanf("%d",&choise); if(choise==1)Eat();

You can modify the code as you wish. I just need to understand the part of the code where you get the button. IF POSSIBLE.