Jump to content
  • 0

pomoc String


Neopry

Dotaz

Ahoj,

Dělám si příkazy pro Adminy ale mám tam problém s jedním errorem kterej nemůžu vyřešit:

Nevíte co stím ? :d

warning 219: local variable "string" shadows a variable at a preceding level

 

Tohle je ten řádek kde je ten error

new string[100], name[24];

Link to comment
Share on other sites

3 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Hlavní moderátor

jinak tu proměnnou pojmenuj, třeba stringg[100], jelikož string už používáš někde nad tímhle a překrývají se, proto ten warning

Link to comment
Share on other sites

  • 0

Nevidim duvod pojmenovat promennou "string" - pojmenuj promennou podle ucelu, ktery ma splnit. Budes mit prehlednejsi kod :)

určitě neukázal celý kód jen řádek

takže bych řekl že už tam ta proměnná je využita takže stejně přejmenovat :d

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...