Questions tagged [brackets]

Brackets are tall punctuation marks used in matched pairs within text, to set apart or interject other text. They have a variety of meanings in different programming languages. DO NOT USE THIS for the IDE, use [adobe-brackets] instead.

Brackets are tall punctuation marks used in matched pairs within text, to set apart or interject other text. They have a variety of meanings in different programming languages.

1033 questions
-4
votes
3 answers

expected declaration or statement at end of input

I have following code in C language: #include #define NOERROR 0 int c; int parentheses, brackets, braces; void checkErrors(void); int main() { extern int parentheses, brackets, braces; extern int c; parentheses=0;…
-4
votes
3 answers

Else without If (help needed)

I must be missing something here but i cannot see where the error is in this piece of code keeps saying Test.java:63: error: illegal start of expression }else ^ Test.java:63: error: 'else'…
Makominami
  • 21
  • 1
  • 1
  • 5
-5
votes
2 answers

How solve the problem "Unknown encoding format" in brackets

How to resolve the problem of the image.
-6
votes
1 answer

What does double brackets mean in this condition?

This below is my for-loop and im a beginner so i need help to understand what [i] means where it says ".checked" and ".value". Also, does "var i" stand for "variable i"? Side note: this loop is for a list of checkboxes. for (var i=0;…
Sjan
  • 3
  • 1
-6
votes
1 answer

My shop buys other things because the brackets or the if inside if

Hello :) I have a shop in my application but the problem is, if I am buying button1 (coin doubler) it also buys button2 (extra life) and if I press button6 (return to game) it upgrades something .. I think it is a problem in my brackets or in my IF…
user3821158
  • 71
  • 1
  • 5
-7
votes
1 answer

C++ curly brackets

I am wondering about some code i did see on the internet. I did try to google etc. but i didn't find an explanation that answered my question. This is a example i coded. bool exe() { int ret = Geterror();//if error it returns something bigger…
-7
votes
2 answers

Extra brackets expected?

The Following : if (parseok == false) { Console.WriteLine("Error : Please enter valid numeric Value "); Console.ReadLine(); Environment.Exit(0); } //Is currently working fine, however, I am wanting to change the if statement to a while…
Ajdin
  • 5
  • 1
  • 1
  • 3
-7
votes
2 answers

php: set curly brackets in the first two characters in a string

My question is the following: I need to set curly brackets in the first two characters in a string $string = "We want home"; echo $string; I want to echo this: (We) Want home Thanks in advance.
Gengaver
  • 5
  • 4
-7
votes
2 answers

Cant find where I did not close my bracket. Uncaught SyntaxError: Unexpected end of input

My console is returning this error: Uncaught SyntaxError: Unexpected end of input I know what it means, but i can't find where i did not close correctly my bracket. This is the URL of my website, http://bit.ly/KJz5pi If anybody can solve it, i…
Fernando Ferrari
  • 551
  • 6
  • 21
-8
votes
1 answer

What do brackets mean when I use my vector name follow by brackets containing an integer variable?

I'm currently reading "The Programming Principles" book. It has shown me some vector examples, such as this code: #include "std_lib_facilities.h" #include #include #include using namespace std; int…
-9
votes
4 answers

Java: split text

I need to split a text (String), the text is just like this: [title],[description blablablablablabla] Is there a way to do this? I need to store in a String[] the 2 texts between brackets, separated by a ",".
erickles
  • 157
  • 2
  • 16
-10
votes
2 answers

Extract all numbers in brackets with Python

i have a string looking like this: s = "asd[123]348dsdk[45]sdhj71[6789]sdfh" i need an other string that contains the numbers in brackets like this: s_filter = "123 45 6789" Sorry for not posting my own ideas! i tried to use this: s =…
Hans Müller
  • 1
  • 1
  • 3
1 2 3
68
69