473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

OpenGL errors. error: '...' cannot be used as a function

I am having these errors:

program6.cpp: In function ‘void handleButton(int, int, int, int)’:
program6.cpp:176:40: error: ‘incolormenuindex’ cannot be used as a function
program6.cpp:180:42: error: ‘intoolmenuindex’ cannot be used as a function
program6.cpp:217:49: error: ‘intoolmenuindex’ cannot be used as a function
program6.cpp:242:1: error: a function-definition is not allowed here before ‘{’ token
program6.cpp:633:1: error: expected ‘}’ at end of input

with this code:

Expand|Select|Wrap|Line Numbers
  1. /*Written by: Reid Tracy
  2. 11/26/12
  3. The purpose of this program is to be able to draw with different colors and different tools.
  4.  
  5.  * Color Menu Example Program
  6.  
  7.    To compile:
  8.  * Linux: g++ -o program5 program5.cpp -lGL -lGLU -lglut -lm
  9.  * Mac:   g++ -o program5 program5.cpp -framework Carbon -framework OpenGL -framework GLUT -lm
  10.  */
  11.  
  12. #ifdef __APPLE__
  13. #  include <OpenGL/gl.h>  // definitions for GL graphics routines
  14. #  include <OpenGL/glu.h> // definitions for GL input device handling
  15. #  include <GLUT/glut.h>  // deginitions for the GLUT utility toolkit
  16. #else
  17. #  include <GL/gl.h>      // definitions for GL graphics routines
  18. #  include <GL/glu.h>     // definitions for GL input device handling
  19. #  include <GL/glut.h>    // deginitions for the GLUT utility toolkit
  20. #endif
  21.  
  22. #include <iostream>       // definitions for standard I/O routines
  23. #include <cmath>          // definitions for math library
  24. using namespace std;
  25.  
  26. #define WIDTH       800          // window dimensions
  27. #define HEIGHT      700
  28.  
  29. #define MENUWIDTH   200          // menu dimensions
  30. #define BOXHEIGHT   (HEIGHT / 10)
  31.  
  32. #define TOOLMENUWIDTH   200
  33. #define TOOLBOXHEIGHT   (HEIGHT / 10)
  34.  
  35. #define NCOLORS     10            // number of colors
  36. #define NTOOLS      10
  37.  
  38. #define WLEFT       MENUWIDTH
  39. #define WRIGHT      WIDTH-TOOLMENUWIDTH      //makes drawing window
  40. #define WBOTTOM     0
  41. #define WTOP        HEIGHT
  42.  
  43. #define NCOLORS     10            // number of colors
  44.  
  45. #define RGBRED      1, 0, 0      // RGB Colors for menu
  46. #define RGBGREEN    0, 1, 0
  47. #define RGBBLUE     0, 0, 1
  48. #define RGBPURPLE    .556863, .137255, .419608
  49. #define RGBORANGE    1, .5, 0
  50. #define RGBYELLOW   1, 1, 0
  51. #define RGBWHITE    1, 1, 1
  52. #define RGBINDIGO   .29, .46, .43
  53. #define RGBBROWN    .556863, .419608, .137255
  54. #define RGBTURQ    .678431, .917647, .917647
  55.  
  56. #define RGBBLACK    0, 0, 0      // black for screen background
  57.  
  58. #define R    0
  59. #define G    1
  60. #define BL   2
  61. #define P    3
  62. #define O       4
  63. #define Y    0
  64. #define W    1
  65. #define I    2
  66. #define BR   3
  67. #define T    4
  68.  
  69. #define PI 3.1415926536
  70.  
  71.  
  72. struct Point
  73. {
  74.     int x, y;
  75. };
  76.  
  77. struct EndPoint    //line segments and angles
  78. {
  79.     Point pt1, pt2;
  80. };
  81.  
  82. struct Circle        //circles
  83. {
  84.     Point center;
  85.     int radius;
  86. };
  87.  
  88. union Tool        //either endpoints or circles
  89. {
  90.     EndPoint endpoints;
  91.     Circle circle;
  92. };
  93.  
  94. struct Object        //contains information stored for each object
  95. {
  96.     short int colorType;    //index of object's color
  97.     short int toolType;        //index of object's tool (line segment, rectangle, circle)
  98.     Tool tool;            //line segment, rectangle, circle
  99. };
  100.  
  101.  
  102. Object objects[1000];
  103.  
  104.  
  105. bool tracking;
  106. int colorindex=0, toolindex=5;
  107. float prevx, prevy;
  108. static float colormenu[][10] = {{RGBRED}, {RGBGREEN}, {RGBBLUE}, {RGBPURPLE}, {RGBORANGE}, {RGBYELLOW}, {RGBWHITE}, {RGBINDIGO}, {RGBBROWN}, {RGBTURQ}};
  109. int numobjects = 0, intoolmenuindex = 0;
  110.  
  111.  
  112. /*
  113.   Returns true if point (x, y) is in the color menu
  114. */
  115. int incolormenu(int x, int y)
  116. {
  117.  
  118.   return (x >= 0 && x <= MENUWIDTH && y >= 0 && y <= HEIGHT);
  119. }
  120.  
  121. /*
  122.   Returns index of point (x, y) in the color menu
  123. */
  124. int colormenuindex(int x, int y)
  125. {
  126.  
  127.   if(!incolormenu(x, y))
  128.     return -1;
  129.   else
  130.     return(y / BOXHEIGHT);
  131. }
  132.  
  133. int intoolmenu(int x, int y)
  134. {
  135.     return (x >= WIDTH-MENUWIDTH && x <= WIDTH && y >= 0 && y <= HEIGHT);
  136. }
  137.  
  138. int toolmenuidex(int x, int y)
  139. {
  140.     if(!intoolmenu(x, y))
  141.         return -1;
  142.     else
  143.         return(y / TOOLBOXHEIGHT);
  144. }
  145.  
  146. /*
  147.   Returns true if point (x, y) is in the window
  148. */
  149. int inwindow(int x, int y)
  150. {
  151.   return (x > WLEFT && x < WRIGHT && y > WBOTTOM && y < WTOP);
  152. }
  153.  
  154.  
  155. /*
  156.   Watch mouse button presses and handle them
  157. */
  158. void handleButton(int button, int state, int x, int y) 
  159. {
  160.   static int menuindex = 0;
  161.   static int toolmenuindex = 0;
  162.   static int incolormenuindex = 0;
  163.  
  164.   y = WTOP - y;
  165.  
  166.   if(button == GLUT_RIGHT_BUTTON)    //right click to clear screen
  167.     glutPostRedisplay();
  168.   if(button != GLUT_LEFT_BUTTON && GLUT_RIGHT_BUTTON)
  169.     return;
  170.  
  171.   if(state == GLUT_DOWN)
  172.   {
  173.  
  174.     if(incolormenu(x, y))
  175.     {
  176.       menuindex = incolormenuindex(x, y);
  177.     }
  178.     else if(intoolmenu(x,y))
  179.     {
  180.       toolmenuindex = intoolmenuindex(x,y);
  181.     }
  182.     else if (inwindow (x,y))
  183.     {
  184.       tracking = 1;
  185.       if(toolindex!=5)
  186.       {
  187.         numobjects++;
  188.         objects[numobjects-1].colorType=colorindex;
  189.         objects[numobjects-1].toolType=toolindex;
  190.       } 
  191.          switch(toolindex)
  192.          {
  193.              case 0:
  194.              case 1:
  195.              case 4:
  196.                  objects[numobjects-1].tool.endpoints.pt1.x=x;
  197.                  objects[numobjects-1].tool.endpoints.pt1.y=y;
  198.                  objects[numobjects-1].tool.endpoints.pt2.x=x;
  199.                  objects[numobjects-1].tool.endpoints.pt2.y=y;
  200.                  break;
  201.              case 2:
  202.              case 3:
  203.                  objects[numobjects-1].tool.circle.center.x=x;
  204.                  objects[numobjects-1].tool.circle.center.y=y;
  205.                  objects[numobjects-1].tool.circle.radius=0;
  206.                  break;
  207.              case 5:
  208.                  prevx = x;
  209.                  prevy = y;
  210.                 break;
  211.              }
  212.       } 
  213.   else
  214.   {
  215.     if(incolormenu(x,y) && colormenuindex(x,y) == menuindex)
  216.        colorindex=menuindex;
  217.     else if(intoolmenu(x,y)&&intoolmenuindex(x,y)==toolmenuindex)
  218.       {
  219.           if(toolmenuindex<=5)
  220.           toolindex=toolmenuindex;
  221.           else
  222.           {
  223.               switch(toolmenuindex)
  224.               {
  225.                   case 9:
  226.                       exit(0);    //quit
  227.                   case 8:
  228.                       numobjects = 0;
  229.                       glutPostRedisplay();    //clear
  230.                       break;
  231.               }
  232.           }
  233.       }
  234.       tracking = 0;
  235.   }
  236. }
  237.  
  238. /*
  239.   Draw a line to new mouse position
  240. */
  241. void m_Motion(int x, int y)
  242. {
  243.   y = WTOP - y;
  244.   float r;
  245.   float x1, y1;
  246.  
  247.   if(tracking && inwindow(x, y))
  248.   {
  249.     glColor3f(colormenu[colorindex][R], colormenu[colorindex][G],
  250.         colormenu[colorindex][BL]);
  251.     switch(toolindex)
  252.     {
  253.     case 0:
  254.     case 1:
  255.     case 4:
  256.         objects[numobjects-1].tool.endpoints.pt2.x=x;
  257.         objects[numobjects-1].tool.endpoints.pt2.y=y;
  258.         break;
  259.     case 2:
  260.     case 3:
  261.         x1=objects[numobjects-1].tool.circle.center.x;
  262.         y1=objects[numobjects-1].tool.circle.center.y;
  263.         r=sqrt(pow(x-x1,2)+pow(y-y1,2));
  264.         objects[numobjects-1].tool.circle.radius=r;
  265.         break;
  266.     case 5:
  267.         numobjects ++;
  268.         objects[numobjects-1].colorType=colorindex;
  269.         objects[numobjects-1].toolType=toolindex;    
  270.         objects[numobjects-1].tool.endpoints.pt1.x=prevx;
  271.         objects[numobjects-1].tool.endpoints.pt1.y=prevy;
  272.         objects[numobjects-1].tool.endpoints.pt2.x=prevx;
  273.         objects[numobjects-1].tool.endpoints.pt2.y=prevy;
  274.            prevx = x;
  275.             prevy = y;
  276.         break;
  277.     }
  278.         glutPostRedisplay();
  279.   }
  280. }
  281.  
  282. void drawRect(bool filled, float x1, float y1, float x2, float y2)
  283. {
  284.     if(filled)
  285.         glBegin(GL_POLYGON);
  286.     else
  287.         glBegin(GL_LINE_LOOP);
  288.             glVertex2f(x1,y1);
  289.             glVertex2f(x1,y2);
  290.             glVertex2f(x2,y2);
  291.             glVertex2f(x2,y1);
  292.         glEnd();
  293. }
  294.  
  295. void Circle(bool filled, int i)
  296. {
  297.     int k;
  298.     float angle, ainc;
  299.  
  300.     ainc = 2 * PI / i;
  301.  
  302.     if(filled)
  303.         glBegin(GL_POLYGON);
  304.     else
  305.         glBegin(GL_LINE_LOOP);
  306.         for(k=0; k<i; k++)
  307.         {
  308.             angle=k*ainc;
  309.             glVertex2f(cos(angle), sin(angle));
  310.         }
  311.     glEnd();
  312. }
  313. void drawCircle(bool filled, float x, float y, float radius)
  314. {
  315.     glPushMatrix();
  316.         glTranslatef(x,y,0);
  317.         glScalef(radius, radius, 1);
  318.         Circle(filled, 32);
  319.     glPopMatrix();
  320. }
  321.  
  322. void drawLine(float x, float y, float prevx, float prevy)
  323. {
  324.     glBegin(GL_LINES);
  325.         glVertex2f(prevx, prevy);
  326.         glVertex2f(x, y);
  327.     glEnd;
  328.     prevx=x;
  329.     prevy=y;
  330. }
  331.  
  332. void drawStraight()
  333. {
  334.     glPushMatrix();
  335.         glScalef(2, .5, 1);
  336.         glTranslatef(0, -3, 0);
  337.         drawRect(true, -1, 1, 1, -1);
  338.     glPopMatrix();
  339. }
  340.  
  341. void triangle(void)
  342. {
  343.     glBegin(GL_POLYGON);
  344.         glVertex2f(1,-1);
  345.         glVertex2f(0,1);
  346.         glVertex2f(-1,-1);
  347.     glEnd();
  348. }
  349.  
  350. void drawPencil()
  351. {
  352.     glPushMatrix();
  353.         glScalef(1,2,1);
  354.         glColor3f(255,255,0);
  355.         drawRect(true,-1,1,1,-1);
  356.     glPopMatrix();
  357.     glPushMatrix();
  358.         glScalef(1,.5,1);
  359.         glTranslatef(0,3,0);
  360.         glColor3f(204,0,204);
  361.         drawRect(true,-1,1,1,-1);
  362.     glPopMatrix();
  363.     glPushMatrix();
  364.         glRotatef(180,0,0,1);
  365.         glTranslatef(0,3,0);
  366.         glColor3f(1, .498039,0);
  367.         triangle();
  368.     glPopMatrix();
  369. }
  370. void drawLoad()
  371. {
  372.     glPushMatrix();
  373.         glScalef(1.5,1,1);
  374.         glTranslatef(-.5,.25,0);
  375.         glColor3f(0,0,1);
  376.         drawRect(true,-1,1,1,-1);
  377.     glPopMatrix();
  378.     glPushMatrix();
  379.         glScalef(1.5,1,1);
  380.         glTranslatef(0,-.25,0);
  381.             glColor3f(0,153,153);
  382.                drawRect(true,-1,1,1,-1);
  383.     glPopMatrix();
  384. }
  385.  
  386. void drawSave()
  387. {
  388.         glPushMatrix();
  389.            glScalef(1.5,1.5,1);
  390.             glColor3f(0,0,1);
  391.             drawRect(true,-1,1,1,-1);
  392.       glPopMatrix();
  393.       glPushMatrix();
  394.            glScalef(.5,.5,1);
  395.            glTranslatef(0,2,0);
  396.            glColor3f(0,153,153);
  397.             drawRect(true,-1,1,1,-1);
  398.       glPopMatrix();
  399. }
  400.  
  401. void drawClear()
  402. {
  403.     glPushMatrix();
  404.         glScalef(1.5,.5,1);
  405.         glTranslatef(0,-1,0);
  406.         glColor3f(1,1,1);
  407.         drawRect(true,-1,1,1,-1);
  408.     glPopMatrix();
  409.     glPushMatrix();
  410.         glScalef(2,.5,1);
  411.         glColor3f(204,0,204);
  412.         drawRect(true,-1,1,1,-1);
  413.     glPopMatrix();
  414. }
  415.  
  416. void drawQuit()
  417. {
  418.     glPushMatrix();
  419.         glRotatef(45,0,0,1);
  420.         glScalef(.5,2,1);        
  421.         drawRect(true,-1,1,1,-1);
  422.     glPopMatrix();
  423.     glPushMatrix();
  424.         glRotatef(45,0,0,1);
  425.         glScalef(2,.5,1);        
  426.         drawRect(true,-1,1,1,-1);
  427.     glPopMatrix();
  428. }
  429.  
  430. /*
  431.   Draw the colored box and the color menu
  432. */
  433. void drawMenu()
  434. {
  435.  
  436.   int i;
  437.  
  438.   // clear window
  439.   glClear(GL_COLOR_BUFFER_BIT);
  440.  
  441.   // draw the color menu
  442.   for(i = 0; i < NCOLORS; i++)
  443.   {
  444.     glColor3f(colormenu[i][R], colormenu[i][G], colormenu[i][BL]);
  445.     glRecti(1, BOXHEIGHT * i + 1,
  446.         MENUWIDTH - 1, BOXHEIGHT * (i + 1) - 1);
  447.   }
  448.  
  449.   glFlush();
  450. }
  451.  
  452. void drawToolMenu()
  453. {
  454.     int j;
  455.     glRecti(WRIGHT,0, WIDTH, HEIGHT);
  456.     glPushMatrix(); //Tool0
  457.         glTranslatef(WIDTH-MENUWIDTH+ MENUWIDTH/2, TOOLBOXHEIGHT/2,0);
  458.         glScalef(25,25,1);        
  459.         glColor3f(1, 0, 0);
  460.         drawRect(false,-1,1,1,-1);
  461.     glPopMatrix();
  462.     glPushMatrix(); //Tool1
  463.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  464.         glScalef(25,25,1);         
  465.         glColor3f(1, 0, 0);
  466.         drawRect(true,-1,1,1,-1);
  467.     glPopMatrix();
  468.     glPushMatrix(); //Tool2
  469.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 2*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  470.         glScalef(25,25,1);    
  471.         glColor3f(1, 0, 0);
  472.         Circle(false,32);
  473.     glPopMatrix();
  474.     glPushMatrix(); //Tool3
  475.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 3*TOOLBOXHEIGHT+TOOLBOXHEIGHT/2,0);
  476.         glScalef(25,25,1);        
  477.         glColor3f(1, 0, 0);
  478.         Circle(true,32);
  479.     glPopMatrix();
  480.     glPushMatrix(); //Tool4
  481.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 4*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  482.         glScalef(25,25,1);        
  483.         glColor3f(1, 0, 0);
  484.         drawStraight();    
  485.     glPopMatrix();    
  486.     glPushMatrix(); //Tool5
  487.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 5*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  488.         glScalef(25,25,1);        
  489.         drawPencil();    
  490.     glPopMatrix();
  491.     glPushMatrix(); //Tool6
  492.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 6*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  493.         glScalef(25,25,1);        
  494.         drawLoad();    
  495.     glPopMatrix();
  496.     glPushMatrix(); //Tool7
  497.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 7*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  498.         glScalef(25,25,1);        
  499.         drawSave();
  500.     glPopMatrix();
  501.     glPushMatrix(); //Tool8
  502.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 8*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  503.         glScalef(25,25,1);        
  504.         drawClear();
  505.     glPopMatrix();
  506.     glPushMatrix(); //Tool9
  507.         glTranslatef(WIDTH-MENUWIDTH + MENUWIDTH/2, 9*TOOLBOXHEIGHT + TOOLBOXHEIGHT/2,0);
  508.         glScalef(25,25,1);
  509.         glColor3f(1,0,0);        
  510.         drawQuit();
  511.     glPopMatrix();
  512. }
  513.  
  514. void drawObjects()
  515. {
  516.     int c,i;
  517.     for(i=0; i<numobjects; i++)
  518.     {
  519.         c=objects[i].colorType;
  520.             glColor3f(colormenu[c][R], colormenu[c][G], colormenu[c][b]);
  521.         switch(objects[i].toolType)
  522.         {
  523.             case 0:
  524.                 drawRect(false,objects[i].tool.endpoints.pt1.x,objects[i].tool.endpoints.pt1.y,objects[i].tool.endpoints.pt2.x,objects[i].tool.endpoints.pt2.y);
  525.                            break;
  526.             case 1:
  527.                 drawRect(true,objects[i].tool.endpoints.pt1.x,objects[i].tool.endpoints.pt1.y,objects[i].tool.endpoints.pt2.x,objects[i].tool.endpoints.pt2.y);
  528.                            break;
  529.             case 2:
  530.                 drawCircle(false,objects[i].tool.circle.center.x,objects[i].tool.circle.center.y,objects[i].tool.circle.radius);
  531.                          break;
  532.             case 3:
  533.                 drawCircle(true,objects[i].tool.circle.center.x,objects[i].tool.circle.center.y,objects[i].tool.circle.radius);
  534.                          break;
  535.             case 4:
  536.             case 5:
  537.                 drawLine(objects[i].tool.endpoints.pt1.x, objects[i].tool.endpoints.pt1.y, objects[i].tool.endpoints.pt2.x, objects[i].tool.endpoints.pt2.y);  
  538. break;
  539.         }
  540.     }
  541. }
  542. void drawScene()
  543. {
  544.     glClearColor(RGBBLACK,1);
  545.     glClear(GL_COLOR_BUFFER_BIT);
  546.     drawObjects();
  547.     drawMenu();
  548.     drawToolMenu();
  549.     glutSwapBuffers();
  550. }
  551.  
  552. /*
  553.    Main program
  554. */
  555. int main(int argc, char* argv[])
  556. {
  557.   //example to store values for first object as endpoints
  558.   objects[0].tool.endpoints.pt1.x = 10;
  559.   objects[0].tool.endpoints.pt1.y = 10;
  560.   objects[0].tool.endpoints.pt2.x = 90;
  561.   objects[0].tool.endpoints.pt2.y = 90;
  562.  
  563.   //example to store values for second object as circle
  564.   objects[1].tool.circle.center.x = 50;
  565.   objects[1].tool.circle.center.y = 50;
  566.   objects[1].tool.circle.radius = 25;
  567.   glutInit(&argc, argv);
  568.  
  569.   // open window and establish coordinate system on it
  570.   glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA);
  571.   glutInitWindowSize(WIDTH, HEIGHT);
  572.   glutCreateWindow("Sketch Program");
  573.   gluOrtho2D(0, WIDTH, 0, HEIGHT);
  574.  
  575.   // register display and mouse-button callback routines
  576.   glutDisplayFunc(drawMenu);
  577.   glutMouseFunc(handleButton);
  578.   glutMotionFunc(m_Motion);       // mouse movement event callback
  579.  
  580.   // Set up to clear screen to black
  581.   glClearColor(RGBBLACK, 1);
  582.  
  583.   glutMainLoop();
  584. }
  585.   return 0;
  586. }
  587.  
Dec 12 '12 #1
1 5871
Rabbit
12,516 Expert Mod 8TB
Those variables you mentioned are not functions but you try to use them as functions.
Dec 12 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Sorisio, Chris | last post by:
Ladies and gentlemen, I've imported some data from a MySQL database into a Python dictionary. I'm attempting to tidy up the date fields, but I'm receiving a 'mx.DateTime.Error: cannot convert...
8
by: Kragen Sitaker | last post by:
ERROR: Cannot insert a duplicate key into unique index pg_class_relname_nsp_index We've been getting this error in our application every once in a while --- typically once an hour to once a day,...
5
by: Nathan Sokalski | last post by:
When running a page I am working on, I recieve the following error: Cannot use a leading .. to exit above the top directory. I suspect this has something to do with the problem I posted in a...
2
by: Elliott | last post by:
Hello Everyone, I have a function in a header (KeyDialog.h) as such: void setKey(Key&); The function implementation is as such (KeyDialog.cpp): void KeyDialog::setKey(Key& k1) {
0
by: SMH | last post by:
Hi All, I am currently learning .Net 2, studying for 70-528. I've hit a bit of a brick wall with DataColumn.Expression. As I understand it, this can be used to (For example) concatenate two...
2
by: sam.barker0 | last post by:
Hi , I am having 3 functions.When I step through when func b returns to funca.it throws an error "cannot find function bounds" funca() { .... ... funcb(); }
1
Tarantulus
by: Tarantulus | last post by:
Hi Guys, I'll keep this short and sweet: class connection{ public $database; public $username; public $password;
5
by: Just Another Victim of the Ambient Morality | last post by:
I have a peculiar bug in my PHP code. It looks something like this: Fatal error: Cannot redeclare func_name() (previously declared in script.php:57) in script.php on line 57 I've done a...
6
by: Soorali | last post by:
Hi I am a newbie to VC++ and this is my first independent project so please pardon my ignorance!! My project compiles and runs perfectly fine in Debug mode. However, when I try to compile it...
1
by: Alberto Menchen | last post by:
Hi, I'm Alberto. I am trying to compile a program but I have an error that I don't know to solve. This program was built some years ago. Two mains problems, I think is in: doc/Makefile.am:24:...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.