Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 21:30

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C#] Global Variable

Discussion on [C#] Global Variable within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
TheAldi's Avatar
 
elite*gold: 21
Join Date: Jan 2010
Posts: 1,904
Received Thanks: 462
[C#] Global Variable

Program.cs:

funcs.cs:

Unswar soll die byte[,] feld = new byte[6, 7] Global erreichbar sein. Auch aus der funcs.cs wo meine FUnktionen liegen sollen.
Erreichbar scheint die feld Variable zu sein jedoch ohne jegliche Werte. Wieso?
TheAldi is offline  
Old 04/28/2012, 07:26   #2
 
Tyrar's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
C# != C/C++

Tyrar is offline  
Thanks
1 User
Old 04/28/2012, 14:44   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 238
Received Thanks: 70
Lern erstmal die Programmiersprache und beschäftige dich mit OOP und Polymorphie und Vererbung, dann dürfte das Problem schnell klar sein. -.-
subsauber is offline  
Reply


Similar Threads Similar Threads
Variable
06/10/2011 - General Coding - 5 Replies
Moin, Nur eine kleine frage uber ne c# variable also: Ich hab mehere form's in meine programm und will eine string deklarieren fuer das ganze programm. Ich hab es so gemacht : public string user = "Username"
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Variable ?!
11/27/2010 - AutoIt - 14 Replies
Huhu E*PvP :) Ich habe mal wieder eine frage :D.. mir wurde ja schon öfters gesacht das ich meinen source "Besser gestalten soll". Also dachte ich mir mhm ok..! und ich wollte wissen wie ..am also ..og >_<
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)
How do I add a variable
08/21/2009 - CO2 Private Server - 4 Replies
Couldn't find a guide when I searched. I want to make a variable so it will check how many times the player has already used unknown man. I know how to use the variable, but just don't know how to make it. Oh yea this is LOTF



All times are GMT +1. The time now is 21:30.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.