Search Result

Collapse
2 results in 0.0039 seconds.
Keywords
Members
Tags
undeclared identifier
  •  

  • coste068
    started a topic "cout undeclared identifier"
    in C

    "cout undeclared identifier"

    I am using visual studio and can't seem to figure out why I keep getting this error when I compile. Any suggestions? Here is the relevant code:
    Code:
    #include <iostream>
    int main()
    {
    .......
    	//reassign arrays
    	for (int l = 0; l <= 49; l++)
    		n [l] = nplus1 [l];
    		//output
    		if (t == .1 || t == .25 || t == .5 || t == 1 || t == 2)
    		{
    			cout<< "t
    ...
    See more | Go to post
    Last edited by sicarie; Apr 23 '07, 05:34 PM. Reason: Please use [code] and [/code] tags around your code.

  • thistleryver
    started a topic What does "undeclared identifier" mean?
    in C

    What does "undeclared identifier" mean?

    I thought it meant that I hadn't declared a variable but I have.

    Code:
    int DoubleNumbers(int seq[], int *digitNum)
    {
    	int i, j;
    
    	for (i = 0; i = 9; i++)
    		for (j = i + 1; j = 9; j++)
    			if (seq[i] == seq[j]){
    				*digitNum = j;
    				return 1;
    			}
    	return 0;
    }
    An error message comes up and says that both i and j are "undeclared...
    See more | Go to post
    Last edited by Banfa; Oct 11 '06, 09:33 PM. Reason: Added [code] ... [/code] tags
Working...