No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi,, i am new to cimg how can i get and also set the coordinates of the image using cimg? i searched a lot but could not find it out thanks |
|
hey guys im trying to write a simple program for displaying an image using opencv libraries but the program never compiles.. it says no such file or directory 'highgui.h' .. ive tried reinstalling and configuring both devc++ and open cv about twice but to no avail.. ive downloaded the latest … |
|
i have object tag as: [CODE]<object type="application/x-shockwave-flash" id="aa" data="act_pass_satell.swf?a=12" width="900" height="645">[/CODE] how can i change the src attribute of object tag? |
|
i have a piece of code: [CODE] struct myKeyword { string name; int id; }; myKeyword keywords[]={{"include",INCLUDE}, {"void",VOID},{"main",MAIN},{"int",INT},{"float",FLOAT},{"cin",CIN},{"cout",COUT},{"if",IF},{"elseif",ELSEIF},{"else",ELSE},{"exit",EXIT},{"for",FOR},{"while",WHILE}}; int j=0; cout<<keywords[0].id; //not able to access keywords.id part flag=0; for (j=0;j<11;j++) { if (lexeme==keywords[j].name) { temp->assign(lexeme,keywords[j].id); flag=1; break; } } getchar(); }[/CODE] why cout<<keywords[0].id is not working? thanks in advance |
|
if i have two strings say: string str1,str2; then how can i compare them by using strcmp function? |
|
how can i create a parse tree if i am using recursive descent parser G->ET like g() {E();T(); }..... |
|
i have a code to check lexeme is keyword or not: [CODE]void Is_Keyword_Or_Not() { char *keywords[]={"INCLUDE","VOID","MAIN","i","var","cin","cout","if", "then","else","and","or","not","loop","exit","when", "while","until"}; int j=0; flag=0; for (j=0;j<18;j++) //search for keyword & # of keywords = 18. { if (strcmpi(lexeme,keywords[j])==0) { temp.assign(lexeme,INCLUDE); flag=1; break; } } } [/CODE] i have defined macros like: INCLUDE 1 … |
|
i created a scanner code using flex++ but when i compile that code it give me lots of error like: In member function `void yyFlexLexer::yy_load_buffer_state()': In member function `void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)': In member function `virtual int yyFlexLexer::yylex()': and others please help me out |
|
how can i read character by character from a text file using isrteam. i use : istream s; char *next; next=new char; s.open("example.txt"); s.read(next,1); but this gives me each character with some dummy symbol. |