Questions tagged [identifier]

An identifier is a name that identifies either a unique object or a unique class of objects.

1353 questions
-3
votes
1 answer

Non-ASCII characters are not allowed outside of literals and identifiers objective-c

I'm getting an error as 'Non-ASCII characters are not allowed outside of literals and identifiers'. Below is code : - (void)purchaseMyProduct:(SKProduct *)product { if ([self canMakePurchases]) { SKPayment *payment = [SKPayment…
Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
-3
votes
1 answer

Java "'.class' expected" for return statement

I am trying to write a simple Java program which calculates the invoice amount for parts ordered from a hardware store. Once I compile it through the command prompt, I receive "Invoice.java:17: error: '.class' expected return int invoiceAmount;" Did…
-3
votes
1 answer

Using variable as identifier in object

I have a code like this: for (var i = 0; i < result.Table.length; i++) { for (var x = 0; x < count; x++) { var xIndex = 'F' + (x + 1) var item = result.Table[i].xIndex; console.log(item) …
user3573096
  • 31
  • 1
  • 1
  • 6
-3
votes
1 answer

The code below is showing error of invalid identifier in oracle

create table productinfotwo ( productId number(10), CONSTRAINT primary_pk Primary Key(productId), productname varchar2(100), SUBCATEGORYID number(10), CONSTRAINT subcategory_fk Foreign Key(SUBCATEGORYID ) REFERENCES ProductSubCategory(SUBCATEGORYID…
Kashish Aneja
  • 41
  • 1
  • 6
-3
votes
3 answers

Error 2 error 20: identifier " " is undefined

I cannot post any of my actual code due to the fact I am working with PS3 Dev kits and the source code is not allowed to be released publicly, so I will try my best to explain my problem without using any of the PS3 specific code. Say I have 2…
Lewie4
  • 9
  • 1
  • 2
-3
votes
1 answer

iOS >> UIBarButton >> Set Identifier from Code

I have a UIBarButton in a Navigation Bar (the VC is embedded within a Navigation Controller). In IB I set the button with an Identifier: How do I set this Attribute from code?
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
-3
votes
2 answers

Need to create and use a class named "Array" but cannot

Is there any way to create and use a class named "Array" in PHP? So far, it seems to cause a name conflict with array programming construct, which is not a class.
Desmond Hume
  • 8,037
  • 14
  • 65
  • 112
-3
votes
2 answers

Not sure why getting this expected error

So this is a pretty basic code: public class Problem14 { public static void main(String[] args) { long sumOfSquares = 0; long squareOfSums = 0; for(int i = 0; i < 100; i++) { sumOfSquares += (i * i); …
user2027425
  • 389
  • 3
  • 5
  • 14
-3
votes
2 answers

expected Identifier ] in xcode

I decided to program an iphone app to see how easy it was. I have finalized most of the coding except this part, please help: #import "ViewController.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { …
-3
votes
2 answers

Invalid Identifier in Oracle

We have a table like this: number branch code 1000 center XXCO 1001 xyz XXER 1002 zyx XXRE 2000 center2 YYCO 2001 xyz YYER 2002 zyx YYRE All the items that have "CO" in the end of their code are parents to the items that have the same first two…
user1688682
  • 41
  • 1
  • 2
  • 3
-4
votes
2 answers

"use of unresolved identifier 'myAlert & okAction'

I keep receiving an error on 15th and 16th lines from the bottom. It tells me: "use of unresolved identifier 'myAlert & okAction'" If anyone can help, it would be much appreciated. Code: import UIKit class RegisterPageViewController:…
-4
votes
1 answer

Compilation Error: solution.c:20:5: error: expected identifier or ‘(’ before ‘{’ token {

Unexpected error is occuring, Kindly help to resolve /*Program to delete the nth Node from the Linked List*/ see the code piece here: http://pastebin.com/esgv41aC
aruns
  • 1,049
  • 1
  • 8
  • 19
-4
votes
2 answers

In Java compiler,The print in System.out.print can be defined as identifier or Keyword?

I have studied about java which have listed 50 Java keywords. There is a homework of Lex, the goal is to recognize the word is keywords, IDs, symbols, operators. But there is one more little problem is the code below, is print in System.out.print()…
user2871337
  • 115
  • 11
-4
votes
2 answers

Use of Undeclared Identifier "angle"?

I am making a program that converts rectangular coordinates into polar coordinates and whenever I go to run the program it tells me that the "angle" is undeclared even though I am sure I have declared it. As well I know that the program isn't…
Jacob Culp
  • 27
  • 3
-4
votes
2 answers

Creating methods in Java -- Identifier expected error

Right. So I'm working on a program for my class and I've come across an area. I did a search and found a few threads on this problem, but none of them seemed to be able to resolve my problem so here I am. The point of the program is to ask the user…
WillBro
  • 147
  • 4
  • 16