Lost Password?


Go Back   CodeCall Programming Forum > Software Development > C and C++

C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-19-2008, 11:39 PM
chemslayer chemslayer is offline
Newbie
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
chemslayer is on a distinguished road
Question grid

Sorry if this is in the wrong forum, im new to the site.

I was wondering if anyone could tell me how to make a map-making program for my graph-paper game. Basically, it needs to create a grid (like on graph paper) then put a set number of different letters into random boxes (for example, 5 T's, 3 G's, and 5 F's, spread randomly throughout the grid). I have no programming experience whatsoever, but i am good with computers. Any help is greatly appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 04-19-2008, 11:46 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,469
Last Blog:
Joomla! And Incompeten...
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Re: grid

I am assuming you want to do this with C++?
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 11:34 AM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,882
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: grid

If you use .NET you could use a DataGridView.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 11:35 AM
chemslayer chemslayer is offline
Newbie
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
chemslayer is on a distinguished road
Default

would C++ be the best language do make it in?

what is .NET?

Last edited by John; 04-20-2008 at 07:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 01:14 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,882
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: grid

Microsoft recently released a platform known as the .NET Framework. You can imagine it as a piece of land - you can then write the code to build the houses on it. Whenever you write .NET programs (using languages such as C++, C# and VB.NET), the program uses the .NET Framework to run. Therefore, if a user wants to run a .NET program, they need the .NET Framework installed on their computer.

Some people seem to think the .NET Framework is not such a good idea, as it is not cross-platform. However, there are advantages.

I know you have no experience in programming, but basically, in a division known as OOP (object orientated programming), everything you do is based on virtual objects. For example, there are objects that generate random numbers. There are objects that download data, or read text files, or display message boxes. The .NET Framework provides lots of templates for objects, known as classes. This makes it very useful.

There is a class called System.Random, which you can use to generate random numbers, which you could use to write your program. You can use the .NET Framework's languages by downloading the software required at Visual Studio 2008 Express Editions. It's quite complex, so you might need a book to start you off. However, once you get to grips with it, you can create some really amazing programs.

Xav

P.S. The .NET Framework also provides visual objects, for making your windows in (known as forms). The object known as "DataGridView" is a grid of data that you can fill with data, either manually or from a database. It is called a control - something you can see in the window of your program. Other examples of controls include buttons, textboxes and check boxes.

P.P.S. It is actually against the forum rules to post two posts back to back. if you want to add something, use the 'Edit' button.
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 04-20-2008, 04:42 PM
chemslayer chemslayer is offline
Newbie
 
Join Date: Apr 2008
Posts: 3
Rep Power: 0
chemslayer is on a distinguished road
Default Re: grid

k thx, that should help alot
srry about the double post, i wont do it again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 07:45 PM
John's Avatar   
John John is offline
Co-Administrator
 
Join Date: Jul 2006
Age: 20
Posts: 3,469
Last Blog:
Joomla! And Incompeten...
Rep Power: 20
John has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond reputeJohn has a reputation beyond repute
Send a message via AIM to John Send a message via MSN to John
Default Re: grid

Quote:
Originally Posted by chemslayer View Post
k thx, that should help alot
srry about the double post, i wont do it again
I would recommend Java - it would be fairly easy to solve your problem.

Quote:
Originally Posted by Xav View Post
P.P.S. It is actually against the forum rules to post two posts back to back. if you want to add something, use the 'Edit' button.
You are learning!
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog
Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2008, 08:37 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,405
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default Re: grid

There are already open-source map programs in Java that you could probably use as the basis. Check out MapTool.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum
Programming is a branch of mathematics.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-21-2008, 01:49 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: On God's Planet
Posts: 9,882
Last Blog:
Web slideshow in JavaS...
Rep Power: 78
Xav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud ofXav has much to be proud of
Send a message via MSN to Xav
Default Re: grid

I learnt the forum rules the hard way - when three infractions appeared in my CP. Oo la la!
__________________


Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying a text grid The Midnighter C and C++ 8 11-25-2007 06:05 PM


All times are GMT -5. The time now is 09:48 PM.

Contest Stats

WingedPanther ........ 2753.6
Xav ........ 2704
Brandon W ........ 1702.32
John ........ 1207.73
marwex89 ........ 1175.24
morefood2001 ........ 966.05
dcs ........ 655.75
Steve.L ........ 475.59
orjan ........ 418.58
Aereshaa ........ 383.54

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads