Ova so CodeBlocks
C:\Documents and Settings\usr\Desktop\CodeBlocksProjects\GLUT\distance\main.cpp||In function `int main(int, char**)':|
C:\Documents and Settings\usr\Desktop\CodeBlocksProjects\GLUT\distance\main.cpp|10|error: `Points' was not declared in this scope|
C:\Documents and Settings\usr\Desktop\CodeBlocksProjects\GLUT\distance\main.cpp|34|error: `Points' was not declared in this scope|
C:\Documents and Settings\usr\Desktop\CodeBlocksProjects\GLUT\distance\main.cpp|56|error: `Points' was not declared in this scope|
||=== Build finished: 3 errors, 0 warnings ===|
Пробај префрли ги:
TPT Points[] =
{{73, 58}, {45, 19}, {89, 6}, {22, 40}, {92, 16}, {65, 66},
{55, 4}, {45, 18}, {64, 13}, {56, 81}, {73, 33}, {58, 40},
{40, 71}, {90, 60}, {16, 47}, {6, 52}, {62, 91}, {90, 83},
{69, 78}, {61, 62}, {71, 57}, {32, 53}, {67, 91}, {83, 89},
{14, 53}, {45, 35}, {11, 6}, {9, 50}, {70, 65}, {50, 47},
{65, 57}, {40, 68}, {44, 40}, {77, 61}, {27, 59}, {27, 54},
{94, 89}, {90, 88}, {61, 66}, {72, 4}, {11, 41}, {3, 74},
{44, 33}, {47, 79}, {68, 33}, {32, 64}, {66, 23}, {55, 12},
{37, 54}, {28, 95}};
од Funkcija.cpp во Funkcija.h, после последниот ред
А ако и тоа не сака префрли ги
TPT Points[] =
{{73, 58}, {45, 19}, {89, 6}, {22, 40}, {92, 16}, {65, 66},
{55, 4}, {45, 18}, {64, 13}, {56, 81}, {73, 33}, {58, 40},
{40, 71}, {90, 60}, {16, 47}, {6, 52}, {62, 91}, {90, 83},
{69, 78}, {61, 62}, {71, 57}, {32, 53}, {67, 91}, {83, 89},
{14, 53}, {45, 35}, {11, 6}, {9, 50}, {70, 65}, {50, 47},
{65, 57}, {40, 68}, {44, 40}, {77, 61}, {27, 59}, {27, 54},
{94, 89}, {90, 88}, {61, 66}, {72, 4}, {11, 41}, {3, 74},
{44, 33}, {47, 79}, {68, 33}, {32, 64}, {66, 23}, {55, 12},
{37, 54}, {28, 95}};
во Main.cpp
Извини што не можев да пишам порано