Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Hey Folks I have a simple question

practical use of methods console strings int

  • Please log in to reply
5 replies to this topic

#1 BobMarley

BobMarley

    CC Lurker

  • New Member
  • Pip
  • 3 posts

Posted 10 August 2013 - 01:51 PM

Ok. I'm new at this, I'm mean green new...I've looked over a dozen vids on youtube and other sites. All of them sjow us how to write code but none show use how we would use these codes in a practical sense. Eg

String name = console.ReadLine();

Like when would I ever use this code for!?

Or

Int

Or console

Wnen would I ever use console when building a programe...when and why would I use String,
  • 0

#2 BobMarley

BobMarley

    CC Lurker

  • New Member
  • Pip
  • 3 posts

Posted 10 August 2013 - 02:59 PM

Oops,, no programming questions in this section!!
  • 0

#3 BlackRabbit

BlackRabbit

    CodeCall Legend

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 3871 posts
  • Location:Argentina
  • Programming Language:C, C++, C#, PHP, JavaScript, Transact-SQL, Bash, Others
  • Learning:Java, Others

Posted 10 August 2013 - 10:42 PM

Welcome aboard BobMarley! How's the reggae going?

 

Oh, there's uses to console, it just more core programing. believe me, not all the programs are a windows form :D take services as example.


  • 0

#4 BobMarley

BobMarley

    CC Lurker

  • New Member
  • Pip
  • 3 posts

Posted 11 August 2013 - 03:20 AM

Hey blackrabbit how's it going. Just what exactly is services?
  • 0

#5 WingedPanther73

WingedPanther73

    A spammer's worst nightmare

  • Moderator
  • 17757 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others

Posted 12 August 2013 - 05:03 AM

Welcome aboard!

 

A lot of the commands you're asking about have to do with basic input/output, like if you open a command prompt and interact with a program there.


  • 0

Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

My MineCraft server site: http://banishedwings.enjin.com/


#6 Luthfi

Luthfi

    CC Leader

  • Expert Member
  • PipPipPipPipPipPipPip
  • 1320 posts
  • Programming Language:PHP, Delphi/Object Pascal, Pascal, Transact-SQL
  • Learning:C, Java, PHP

Posted 13 August 2013 - 11:47 PM

Hi BobMarly, welcome aboard!

 

I guess there is no harm answering simple and short programming questions here:

 

 

String name = console.ReadLine();

Like when would I ever use this code for!?

 

When you need input from user, when your program uses console (e.g. dos prompt) for interface.

 

 

Int

 

This could be short for "integer" or "interrupt". Depends on the language. But from your other questions, I believe it's "integer". In that case, this word is used specify type of a variable. Some language/compiler were strict on data typing. Integer usually means a 32-bit integer value. Although in some 64-bit compiler might treat it as 64-bit.

 

 

Or console

Wnen would I ever use console when building a programe...when and why would I use String,

 

When simple text interface suffice for your cause.


  • 0





Also tagged with one or more of these keywords: practical use of methods, console, strings, int

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download