• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 13:15
CET 19:15
KST 03:15
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13
Community News
[TLMC] Fall/Winter 2025 Ladder Map Rotation12Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA8StarCraft, SC2, HotS, WC3, Returning to Blizzcon!45$5,000+ WardiTV 2025 Championship7
StarCraft 2
General
Mech is the composition that needs teleportation t RotterdaM "Serral is the GOAT, and it's not close" RSL Season 3 - RO16 Groups C & D Preview [TLMC] Fall/Winter 2025 Ladder Map Rotation TL.net Map Contest #21: Winners
Tourneys
RSL Revival: Season 3 Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Tenacious Turtle Tussle Master Swan Open (Global Bronze-Master 2)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle What happened to TvZ on Retro? SnOw's ASL S20 Finals Review BW General Discussion Brood War web app to calculate unit interactions
Tourneys
[Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] RO32 Group D - Sunday 21:00 CET [BSL21] RO32 Group C - Saturday 21:00 CET
Strategy
PvZ map balance Current Meta Simple Questions, Simple Answers How to stay on top of macro?
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread Clair Obscur - Expedition 33 Beyond All Reason
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread Artificial Intelligence Thread Canadian Politics Mega-thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Dyadica Gospel – a Pulp No…
Hildegard
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Reality "theory" prov…
perfectspheres
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2038 users

The Big Programming Thread - Page 64

Forum Index > General Forum
Post a Reply
Prev 1 62 63 64 65 66 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 17:34 GMT
#1261
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
Last Edited: 2011-07-10 17:39:12
July 10 2011 17:38 GMT
#1262
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
heishe
Profile Blog Joined June 2009
Germany2284 Posts
July 10 2011 17:44 GMT
#1263
On July 11 2011 02:34 RedJustice wrote:
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?


As long as your language strongly supports OOP paradigms, it doesn't really matter, since transferring from one language to the other will be very easy.

If I had to give you a specific language, I would definitely recommend C++. Basically every non-indie game studio uses it (for various reasons - although performance is by far the biggest one).

By the way, since you're complaining about learning too slow: Programming is especially brutal, since there are very few skills that you can pick up by only reading about them or dealing with them in a theoretical manner.

Why exactly one approach is better than another is most of the time just a thing of experience. You will only notice the difference if it actually makes a difference for you - if you implement something differently than before and suddenly realize how easy it is to expand on that piece of code, something will go *click* in your head and you will have understood the concept.

So all you can basically do is read a couple of books, read some online tutorials, and then practice, practice, practice (by actually starting hobby projects that you aim to complete). Go to places like www.stackoverflow.com and www.gamedev.stackexchange.com to ask quesions if you have problems.

If you value your soul, never look into the eye of a horse. Your soul will forever be lost in the void of the horse.
japro
Profile Joined August 2010
172 Posts
July 10 2011 17:46 GMT
#1264
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).
ComaDose
Profile Blog Joined December 2009
Canada10357 Posts
Last Edited: 2011-07-10 17:52:49
July 10 2011 17:50 GMT
#1265
On July 11 2011 02:34 RedJustice wrote:
+ Show Spoiler +
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?

Hey man sorry to hear that.
I can't help you with what languages are used in gaming.
But as far as learning the how to program:
A lot of it is understanding the logic of how a computer thinks.
Then googling the syntax.
So if your looking ahead to get an advantage writing programs in general will help you lots.
So to start getting better i would say run with java which you have a bit of experience with.
Try and make simple but GOOD programs, good means completely proper object oriented etc.
Learn and practice managing your instances and basically challenge yourself.
When you learn about what languages you will have to know focus on the differences and limitations of that languages from what you already know.
TLDR: Learn what a computer can do and how to use those things to accomplish something as opposed to syntax.

EDIT: The answer above mine is good too and we say a lot of the same things... Definatly C++ over java tho he was right about that.
BW pros training sc2 is like kiss making a dub step album.
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
Last Edited: 2011-07-10 18:02:58
July 10 2011 18:00 GMT
#1266
On July 11 2011 02:44 heishe wrote:
Show nested quote +
On July 11 2011 02:34 RedJustice wrote:
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?


+ Show Spoiler +
As long as your language strongly supports OOP paradigms, it doesn't really matter, since transferring from one language to the other will be very easy.

If I had to give you a specific language, I would definitely recommend C++. Basically every non-indie game studio uses it (for various reasons - although performance is by far the biggest one).

By the way, since you're complaining about learning too slow: Programming is especially brutal, since there are very few skills that you can pick up by only reading about them or dealing with them in a theoretical manner.

Why exactly one approach is better than another is most of the time just a thing of experience. You will only notice the difference if it actually makes a difference for you - if you implement something differently than before and suddenly realize how easy it is to expand on that piece of code, something will go *click* in your head and you will have understood the concept.

So all you can basically do is read a couple of books, read some online tutorials, and then practice, practice, practice (by actually starting hobby projects that you aim to complete). Go to places like www.stackoverflow.com and www.gamedev.stackexchange.com to ask quesions if you have problems.




Nono, I don't think you understand what I mean about learning slowly. It's not that I expect to just 'get it', or learn it theoretically. (Maybe I have a screwed perspective cause I'm at a very prestigious school with a lot of people smarter than me.)

For example, I tried to use arrays for a long time, and I just could not wrap my head around starting at 0. People would tell me over and over, and something would just not click in my head. It seems so simple-- the first piece of data is in slot 0--but I just couldn't understand/use it. I would constantly mess up everything when I used arrays. Then a friend took me to the grocery store to the frozen food isle and explained each little section as a place to put a kind of vegetable, and made this huge long analogy that I could actually follow. I know it seems so dumb, like why can I just not start counting at 0, but something in my brain just would not... understand. It's hard to explain.

It's just that for each new thing I learn about (if/else, objects, classes, lists), it takes a lot of searching for the right explanation for me before something clicks in my head and I am able to use it right. My brain just doesn't understand. /fail explanation.

If you have any recommendations of sites or books that explain C++ with pictures especially, that would probably be a huge help! I draw all of my code out visually to help me understand how it works, so I think it is one of the best methods for me.
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
July 10 2011 18:12 GMT
#1267
On July 11 2011 02:46 japro wrote:
Show nested quote +
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
Bortlett
Profile Joined October 2010
United States302 Posts
Last Edited: 2011-07-10 18:18:42
July 10 2011 18:17 GMT
#1268
On July 11 2011 03:00 RedJustice wrote:
Show nested quote +
On July 11 2011 02:44 heishe wrote:
On July 11 2011 02:34 RedJustice wrote:
Hi guys, I have kind of a n00bish question.

I am studying animation and digital graphics with the hope of working in the gaming industry (or at least something technology related). Most of my friends are comp sci students, so I am vaguely familiar with a variety of programming languages and ideas, but have not used much except for Java and a tiny bit of Python.

I find I have difficult with the learning process for math/logic/programming type of things (the learning specialist at my uni says I have a learning disability of sorts, but I think it might be just that I learn very kinestheticly and am not taught that way). I would like to become familiar with the kind of programming that will be used in the gaming industry, but obviously I can't learn everything, especially since it takes me so long. What would be the best language for me to learn so I am familiar with things, at least conceptually?


+ Show Spoiler +
As long as your language strongly supports OOP paradigms, it doesn't really matter, since transferring from one language to the other will be very easy.

If I had to give you a specific language, I would definitely recommend C++. Basically every non-indie game studio uses it (for various reasons - although performance is by far the biggest one).

By the way, since you're complaining about learning too slow: Programming is especially brutal, since there are very few skills that you can pick up by only reading about them or dealing with them in a theoretical manner.

Why exactly one approach is better than another is most of the time just a thing of experience. You will only notice the difference if it actually makes a difference for you - if you implement something differently than before and suddenly realize how easy it is to expand on that piece of code, something will go *click* in your head and you will have understood the concept.

So all you can basically do is read a couple of books, read some online tutorials, and then practice, practice, practice (by actually starting hobby projects that you aim to complete). Go to places like www.stackoverflow.com and www.gamedev.stackexchange.com to ask quesions if you have problems.




Nono, I don't think you understand what I mean about learning slowly. It's not that I expect to just 'get it', or learn it theoretically. (Maybe I have a screwed perspective cause I'm at a very prestigious school with a lot of people smarter than me.)

For example, I tried to use arrays for a long time, and I just could not wrap my head around starting at 0. People would tell me over and over, and something would just not click in my head. It seems so simple-- the first piece of data is in slot 0--but I just couldn't understand/use it. I would constantly mess up everything when I used arrays. Then a friend took me to the grocery store to the frozen food isle and explained each little section as a place to put a kind of vegetable, and made this huge long analogy that I could actually follow. I know it seems so dumb, like why can I just not start counting at 0, but something in my brain just would not... understand. It's hard to explain.

It's just that for each new thing I learn about (if/else, objects, classes, lists), it takes a lot of searching for the right explanation for me before something clicks in my head and I am able to use it right. My brain just doesn't understand. /fail explanation.

If you have any recommendations of sites or books that explain C++ with pictures especially, that would probably be a huge help! I draw all of my code out visually to help me understand how it works, so I think it is one of the best methods for me.


First of all, don't feel stupid if understanding some programming concepts is more difficult for you. Not everybody learns the same, and if somebody tried to teach me anything artistic, I would fail miserably.

You might want to take a look at Alice: http://www.alice.org/

I haven't used it myself, but it's a much more visual way of learning to program. I know they used it in my CS department in college in a non-major course (and I know of at least one other university that does). It might be total crap and a waste of time, but maybe it will help . If you do play around with it, post what you think, I'm curious :D.

Other than that, I don't really recommend spending a lot of time with C++ unless you're actually going to be writing code or need to understand nuts and bolts aspects of the projects you're working on (memory management, graphics code, etc.). I work with C++ every day and hate it lol.

C# has very similar syntax to C++ but you don't have to deal with a lot of the annoying stuff. You can get simple windows applications up and running very quickly, which you won't be able to do out of the box with C++. Because you're learning similar syntax, if you do need to read C++ code, you could do it very easily, assuming you're not dealing with a lot of pointer manipulation code.

Unfortunately, I don't have many good book explanations for you, but I hope this helps in some way. Does your university/college offer a non-major CS course?
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
July 10 2011 18:26 GMT
#1269
On July 11 2011 03:12 Qzy wrote:
Show nested quote +
On July 11 2011 02:46 japro wrote:
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!


i'd guess the implementation is platform dependant, but most JVMs will hopefully map this to an according command in your cpu instead of manually iterating some random numbers or stuff, so you can just assume it to be O(1), as you can do for basically all numerical operations like * / + etc. In the end, multiplication of course takes longer than addition, and addition takes longer than a bitwise XOR, but since "most" cpus have dedicated circuits for these jobs, it's fast as shit and you can't influence it anyways.

@RedJustice: Do you want to learn programming in a specific language or do you want to learn software design / formal modeling in general?
Gold isn't everything in life... you need wood, too!
japro
Profile Joined August 2010
172 Posts
July 10 2011 18:34 GMT
#1270
On July 11 2011 03:12 Qzy wrote:
Show nested quote +
On July 11 2011 02:46 japro wrote:
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!


Well, time complexity is usually defined depending on input size and a basic type like an integer can be assumed to have constant size regardless of it's value. For the CPU it's only relevant that it has to compute the modulus of a 32bit integer, the actual value is usually not relevant.
Qzy
Profile Blog Joined July 2010
Denmark1121 Posts
July 10 2011 18:37 GMT
#1271
Okay thanks for answering my complexity question!
TG Sambo... Intel classic! Life of lively to live to life of full life thx to shield battery
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
July 10 2011 18:44 GMT
#1272
On July 11 2011 03:34 japro wrote:
Show nested quote +
On July 11 2011 03:12 Qzy wrote:
On July 11 2011 02:46 japro wrote:
On July 11 2011 02:38 Qzy wrote:
Anyone know the scalability of modulus (%) in java? I can't find it anywhere. I'm taking about big O-notation.

Uhm, since it's arguments are basic types with fixed size it's O(1).


So you are saying its constant time for both 234234234234%1231443534 and 2%1?

Hm, didn't know!


Well, time complexity is usually defined depending on input size and a basic type like an integer can be assumed to have constant size regardless of it's value. For the CPU it's only relevant that it has to compute the modulus of a 32bit integer, the actual value is usually not relevant.


actually, if you really want to optimize speed to the last tiny bit, you can assert, based on how many zeros are leading your input values and what operation is chosen, how long the cpu circuit will take to be finished, and then schedule your pipeline or adapt your cycle speed accordingly .. so this *could* make a difference indeed. But it's so minimal, unless your doing nothing except calculating modulus, you won't notice anything, if such an optimization is present at all.
Gold isn't everything in life... you need wood, too!
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 18:44 GMT
#1273
I would like to learn a specific language that has concepts that apply very broadly. That way even if I have not used the language they happen to be using, I can still understand what people are talking about.

Specifically I want to learn this in case I am working in a smaller indie or startup type of company, where people often fill many roles. I do not expect I would ever be doing any serious coding, but I think it would be an asset to at least have an understanding of what is going on.

My university does not offer non-major classes for anything. I took the second level programming class last year, which was mostly Java and python, and did very poorly grade-wise, though I learned a lot. I have also taken Theoretical Mathematics in Comp Sci, and same story. I do not want to take too many more higher level classes because I do not have much room in my schedule, and I do not want to hurt my GPA much. (Also, being on the brink of failing all semester is not very fun. t.t) I thought learning on my own might be better just because I can work at my own pace and not have the stress of grades and deadlines.

Thanks for the Alice link! I have seen it once before bet never used it, so I will see how it is. It seems very visual and interactive (which is good for me!).

Also, I tried to read about the differences between C# and C++ but it was too many terms I don't know! I know they look pretty similar, but what are the major differences that affect how you use it and what you can do with it? (if someone could please summarize in easy to understand words <3)
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2011-07-10 18:54:11
July 10 2011 18:52 GMT
#1274
C# and C++ are huge languages. If you have trouble dealing with new concepts, you'd be well advised to steer clear, in my opinion.

If you wanted to learn a simple language with broadly-applicable concepts that will be generally useful to you for a long time, I suggest Javascript or C, which both fit that bill.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 19:03 GMT
#1275
Well I already know Java alright. (Not brilliantly, but have been using it for the past 5 years on and off, so what I don't know I can figure out eventually. I can't necessarily write super clean sexy code in Java, but I can write stuff that works.) I would just like to learn something a bit more professionally standard for the industry I want to work in, and I know it is not Java.
Bortlett
Profile Joined October 2010
United States302 Posts
Last Edited: 2011-07-10 19:13:12
July 10 2011 19:08 GMT
#1276
On July 11 2011 03:44 RedJustice wrote:
Also, I tried to read about the differences between C# and C++ but it was too many terms I don't know! I know they look pretty similar, but what are the major differences that affect how you use it and what you can do with it? (if someone could please summarize in easy to understand words <3)


C# is good for a number of reasons. First of all, you can get an application running up and very quickly. It's really easy to use Forms or WPF to get windows, dialog boxes, menus - all the stuff you expect in your standard windows application. In C++ you generally have to use MFC (which is awful) or an external library, which is going to be a lot more work.

C# abstracts away a lot of junk you have to deal with when you write C++ code, such as memory management. All this means is less annoying crap you have to worry about .

Not sure if you're using Visual Studio or not, but C# projects are way easier to work with than C++ projects. I think it's better with 2010, but I'm still on 2008 so this might be less of an issue. Either way, in C++ you have to deal with .h/.cpp files (which can get messy on large projects!), but in C# you just have .cs files which are easier to manage.

C# provides some cool stuff for programmers (lambda expressions, foreach, iterators, algorithms). Many of these features exist in C++ in the STL, boost, or some other library but it's MUCH harder to use and you need to know templates for a lot of it. Templates in C++ suck royally, but are far easier to use in C#. This probably doesn't mean anything to you now, but it will as you get more experience under your belt.

Microsoft also has created XNA for indie development. XNA basically provides a game loop and APIs needed to write games in C#. In C++, you're going to have to use an engine, and this will be daunting for somebody not experienced with C++. You can get XNA here: http://www.microsoft.com/download/en/details.aspx?id=23714

EDIT: C# is becoming more standard also. Not for writing the game itself, but it's becoming more popular for tools development. It's part of the .NET framework (which is a bunch of languages developed by Microsoft) which means it's used outside of the industry as well.

If that was too technical for you or you have other questions, please post and I or somebody else will be happy to help clarify .
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
July 10 2011 19:11 GMT
#1277
On July 11 2011 04:03 RedJustice wrote:
Well I already know Java alright. (Not brilliantly, but have been using it for the past 5 years on and off, so what I don't know I can figure out eventually. I can't necessarily write super clean sexy code in Java, but I can write stuff that works.) I would just like to learn something a bit more professionally standard for the industry I want to work in, and I know it is not Java.


try suing notch for not employing females, minecraft is java-based haha

so basically, you simply want to learn c++ and maybe sume lua scripting?
Gold isn't everything in life... you need wood, too!
AkaHenchway
Profile Joined October 2010
United States41 Posts
July 10 2011 19:16 GMT
#1278
Hey guys having some trouble again (Java). I have looked aroud for some help but every explanation im given is way above my head.....write a program taht prompts the user to enter the number of students and each students name and score, and finally displays the name of the student with the highest score is what I am supposed to be doing.
+ Show Spoiler +

import java.util.Scanner;

public class highscore{

public static void main(String[] args){

Scanner input = new Scanner(System.in);

int i = 0;

System.out.print("How many student's are there? ");

int count = input.nextInt();

do{

if (i > count)

break;



System.out.print("Students name: ");

String n = input.nextLine();

System.out.print("Student Score: ");

int score = input.nextInt();

i++;}



while (i != 0);

System.out.println("No students left");


}

}



Basically I am unsure of how to put my 2 questions that I want to continuously ask over and over again into a loop. As it currently sits it rune/displays but has both quesitons I want to ask on the same line....Also unsure of how I will save the names inputted by the user as well as their scores since I will be recalling names and numbers further in the program.....I was suggested to create a student class and create a student object inside my loop, but frankly I need it explained out a little better.
Fuck the Bullshit
RedJustice
Profile Blog Joined February 2011
United States1004 Posts
July 10 2011 19:22 GMT
#1279
Hmmm well for the C++ vs C#, it seems (please correct me if I'm wrong anywhere, just want to make sure I understand right)--

They are similar enough I could understand the other alright if I knew one.
C++ seems to be used the most in professional fields.
C# is easier to use/work with.

If C# is easier to work with, and would still give me a pretty good idea of C++, I think I would like to learn C# first, and then maybe I can use C++ later so I have less new things to worry about.

Also... lua scripting... looks similar to python in wikipedia. Is that an ok generalization? Why would it be good to know for me?
catamorphist
Profile Joined May 2010
United States297 Posts
Last Edited: 2011-07-10 19:28:24
July 10 2011 19:26 GMT
#1280
On July 11 2011 04:03 RedJustice wrote:
Well I already know Java alright. (Not brilliantly, but have been using it for the past 5 years on and off, so what I don't know I can figure out eventually. I can't necessarily write super clean sexy code in Java, but I can write stuff that works.) I would just like to learn something a bit more professionally standard for the industry I want to work in, and I know it is not Java.


I said Javascript, not Java; the two languages have no relation. I would never have recommended Java in the first place, as it's also a big language, but if you are already comfortable in Java, you might find C# less hard to pick up.

In the case of the gaming industry, there's a big difference between something "professionally standard" and something useful to someone who is not programming games for 8 hours a day. I definitely hold that if you are not actually pursuing a career in programming, then you would probably be better served learning a smaller useful language fairly well rather than becoming sort-of-proficient in C++.
http://us.battle.net/sc2/en/profile/281144/1/catamorphist/
Prev 1 62 63 64 65 66 1032 Next
Please log in or register to reply.
Live Events Refresh
IPSL
17:00
Ro16 Group D
ZZZero vs rasowy
Napoleon vs KameZerg
Liquipedia
PSISTORM Gaming Misc
15:55
FSL teamleague CNvsASH, ASHvRR
Freeedom38
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Railgan 184
IndyStarCraft 110
BRAT_OK 47
MindelVK 29
EmSc Tv 13
StarCraft: Brood War
Britney 25290
Calm 2532
Shuttle 775
Stork 341
firebathero 288
Dewaltoss 113
Barracks 68
Mong 61
Rock 43
Shine 18
Dota 2
Gorgc5830
qojqva1713
Dendi963
Counter-Strike
ScreaM1084
byalli378
Heroes of the Storm
Khaldor535
Liquid`Hasu237
Other Games
Beastyqt573
DeMusliM291
Hui .222
Fuzer 215
Lowko213
Trikslyr46
CadenZie18
Organizations
Dota 2
PGL Dota 2 - Main Stream8971
Other Games
EGCTV625
gamesdonequick359
StarCraft 2
angryscii 24
EmSc Tv 13
EmSc2Tv 13
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 22 non-featured ]
StarCraft 2
• HappyZerGling 71
• HeavenSC 61
• printf 5
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• Migwel
• intothetv
• Kozan
• IndyKCrew
StarCraft: Brood War
• Airneanach42
• HerbMon 6
• Michael_bg 3
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2455
• WagamamaTV359
• Ler79
League of Legends
• Nemesis2825
Other Games
• imaqtpie1125
• Shiphtur313
Upcoming Events
OSC
45m
davetesta15
BSL 21
1h 45m
Tarson vs Julia
Doodle vs OldBoy
eOnzErG vs WolFix
StRyKeR vs Aeternum
Sparkling Tuna Cup
15h 45m
RSL Revival
15h 45m
Reynor vs sOs
Maru vs Ryung
Kung Fu Cup
17h 45m
Cure vs herO
Reynor vs TBD
WardiTV Korean Royale
17h 45m
BSL 21
1d 1h
JDConan vs Semih
Dragon vs Dienmax
Tech vs NewOcean
TerrOr vs Artosis
IPSL
1d 1h
Dewalt vs WolFix
eOnzErG vs Bonyth
Replay Cast
1d 4h
Wardi Open
1d 17h
[ Show More ]
Monday Night Weeklies
1d 22h
WardiTV Korean Royale
2 days
BSL: GosuLeague
3 days
The PondCast
3 days
Replay Cast
4 days
RSL Revival
4 days
BSL: GosuLeague
5 days
RSL Revival
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
WardiTV Korean Royale
6 days
IPSL
6 days
Julia vs Artosis
JDConan vs DragOn
Liquipedia Results

Completed

Proleague 2025-11-14
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.