generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: refresh my mind pls

Previous Thread :: Next Thread 
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 08:42 AM
char szClassName[ ] = "App";

wats that [ ] for?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Sep 2015 08:42 AM
adds new index to array
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 08:43 AM
link me to a page explaining this pls?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Sep 2015 09:01 AM
oh wait idk what it does XD
brb
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 09:02 AM
:c

a link to a page explainin dis pls?
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
23 Sep 2015 09:13 AM
cplusplus.com/doc/tutorial/ntcs/
Report Abuse
IoIiderp is not online. IoIiderp
Joined: 05 Feb 2012
Total Posts: 8613
23 Sep 2015 09:19 AM
f5
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 09:26 AM
they explain so complicated

can anybody explain it pls? (angles said he was mistaken or something so... :P)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Sep 2015 09:48 AM
It just means create an array without a specific size, the compiler will fill it in for you and pretty much do:

char szClassName[4] = "App";

Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 10:15 AM
but

char szClassName[] = "App";


is setting a string

not an array e.e
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 10:33 AM
so this what i know:

char szClassName[] = "App";

creates a table which the compiler will fill in how many indexes there are by leaving [] empty,

but i dont get why it sets a string, this isnt a string variable, and how does the table look like?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Sep 2015 11:08 AM
A string IS an array, stop thinking with a high level rationale or you'll never understand basic low level concepts.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Sep 2015 11:10 AM
It's pretty much equiv. to:
char szClassName[4] = {'A', 'P', 'P', 0};
Report Abuse
Fedorakid is not online. Fedorakid
Joined: 17 Jul 2010
Total Posts: 7079
23 Sep 2015 11:26 AM
why a 0 at the end
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
23 Sep 2015 11:29 AM
NUL terminator
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image