Questions tagged [identifier]

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

1353 questions
-2
votes
2 answers

Android Java static identifier or type expected

I got following lines of code: for (int i = 0; i < articles.length(); i++) { static { addItem(new JsonParserItem("1", R.drawable.p1, "asd", "Steve Jobs", "Focusing is about saying No.")); } } After static I get a red marker (error) which…
Alex Oxilg
  • 121
  • 1
  • 8
-2
votes
1 answer

delphi Undeclared identifier: 'scanline'

i have the following error message in Delphi 7: Undeclared identifier: 'scanline' my uses: uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, Menus, Buttons, StdCtrls, ExtCtrls,math, ComCtrls; my part of…
Fero
  • 35
  • 1
  • 1
  • 8
-2
votes
2 answers

C2065 identifier undeclared

In my Service.h I have: #include "Configuration.h" and in my class: private: ConfigurationInterface* configuration_; Then, in my Service.cpp: Service::Service(Foundation::Framework* framework) : framework_(framework) { …
legami
  • 1,303
  • 6
  • 22
  • 31
-2
votes
1 answer

use of unresolved identifier (swift)

I am receiving an error when trying to run my project in Xcode. For some reason the "userid" function won't build and I am fairly new to programming so I have no clue as to how to make this work. In simple, the line that's giving me an error is…
-2
votes
2 answers

Uncaught SyntaxError: Unexpected identifier. Why?

I get a Uncaught SyntaxError: Unexpected identifier Error in this line: if(v=="ZP31"||v=="ZC31"||v=="SX31"||v=="SX71"||v=="SW71"||v=="XM71"||v=="1Z21"){return "Default";} Which identifier is missing? Thanks…
-2
votes
1 answer

C++: With two identical functions, one gives an error. What is happening?

Something strange is happening. Using MVS 2013. Filename.cpp #include "Functions.h" int main() { introInformation(); introInformation2(); } Functions.cpp void introInformation() { //A bunch of couts telling the user how to play the…
BrandonFlynn-NB
  • 384
  • 2
  • 14
-2
votes
1 answer

Expected:

I'm getting an error on this line, about how my array is imported into my JUNIT. package test123; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.Scanner; import…
HowbeitGirl
  • 591
  • 3
  • 12
  • 21
-2
votes
2 answers

Error:identifier tgamma is undefined in c++ although is included

Im trying to use tgamma function in c++ 10.It's running on a 32-bit machine. I've included , but still getting the error "identifier tgamma is undefined ". what could be the reason?
NavidAmin
  • 3
  • 3
-2
votes
1 answer

What I am doing incorrectly when creating a method in a class?

I am trying to create a program where the user enters a 2d array, and the program will find the highest value in the array, and output the value, and the associated row and column. I have created a method (called locatelargest) inside the class that…
-2
votes
2 answers

c2065:Undeclared Identifier

I am trying to create the program described here (task 5 from the quiz), but when trying to compile I receive c2065:Undeclared Identifier. The task is to "Write a complete program that reads an integer from the user (using cin, discussed in section…
Lyubomir
  • 140
  • 5
  • 13
-2
votes
2 answers

Javascript: Set ID to a child existing table

I need to assign/set a unique ID to child tables per Javascript. The main parent table has an ID but the child tables and further child tables within child tables don't. How can I set an ID to the 1st child and second child tables "on page load"?…
adrian.m123
  • 85
  • 1
  • 3
  • 11
-2
votes
1 answer

Java - required/illegal start of expression

I'm running into some trouble with a Java assignment. I'm not sure what I'm doing wrong, but it's telling me that I need an identifier and that the lines are an illegal start of an expression when I try to add() to an ArrayList. Here's my code, the…
assignment_operator
  • 1,213
  • 4
  • 12
  • 14
-2
votes
4 answers

Tic Tac Toe program: expected identifier and expected constant errors

I have a tic tac toe game worked up here, but i keep getting these errors: [Error] expected declaration before '}' token [Error] expected unqualified-id before numeric constant [Error] expected '}' before numeric constant [Error] expected identifier…
-2
votes
1 answer

Java - expecter error

I was writing a java tool that toggles wether a game mod is active (specifically, the game is Dwarf Fortress, and the mod is DFHack) and the program is nearly done. However, I cant seem to get the variables right that tell the program how to check…
foxite
  • 191
  • 10
-2
votes
5 answers

Why do I get expected?

The following code: import java.util.ArrayList; import java.awt.Point; public class Polygon{ ArrayList points; //constructs polygon without points public Polygon() { points = new ArrayList(); } /* *…
Florian
  • 51
  • 1
  • 8