No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
13 Posted Topics
i have problem only declaring struct variable. i declare a struct in struct.h file and i wan main.c and class.h also using the same variable. But the class.h file say the struct is undeclare.. example: struct.h [CODE]struct car{ int year;};[/CODE] main.c [CODE]#include <cstdlib> #include <iostream> #include "struct.h" #include "class.h" using … | |
Actually i know the way to change folder background... But my problem is why i must set the folder icon so that it generate the desktop.ini file then only i can change the background.. I try to copy the desktop.ini file and the picture file in the folder which already … | |
>main.cpp [CODE] #include <cstdlib> #include <iostream> using namespace std; #include "function.h" int main(int argc, char *argv[]) { struct AXEMAN{ int lvl; int att; int hp;}; struct DEFENDER{ int lvl; int att; int hp;}; struct ARCHER{ int lvl; int att; int hp;}; struct SPEARMAN{ int lvl; int att; int hp;}; struct … | |
My main code variable declaration (just declaration no login statement) [CODE]struct AXEMAN{ int lvl; int att; int hp;}; struct DEFENDER{ int lvl; int att; int hp;}; struct ARCHER{ int lvl; int att; int hp;}; struct SPEARMAN{ int lvl; int att; int hp;}; struct ROUGE{ int lvl; int att; int hp;}; … | |
Re: i'm using dev c++.. what library file i have to download? | |
Re: [code] //given struct struct [B]Car[/B] { ... }; //define array of car struct with 35 array and initialize elements [B]car[/B] vehicle1[35] ... [/code] @@ is it because of this case difference? | |
erm... anyone know what is this declaration mean? [CODE]#define LCD_DATA GPIO8->DR[0xFF<<2] /* Data bits D0 = P8.0 .. DB7 = P8.7 */ #define LCD_E GPIO9->DR[0x01<<2] /* Enable control */ #define LCD_RW GPIO9->DR[0x02<<2] /* Read/Write control */ #define LCD_RS GPIO9->DR[0x04<<2] /* Data/Instruction control */ #define LCD_CTRL GPIO9->DR[0x07<<2] /* All 3 control … | |
i wanna put all my variable initialization at a header file.. but after i put in a header file name, "variable.h" i #include "variable.h" in main. but it still cant reconize the variable. what can i do? + extern infront all the variable in header file? | |
Sorry for asking the topic that asked before... but im still dont know how to use that.. Below is an example create by me.. I hope that someone can tell me which part have to fix ... This is the header file: [CODE] int check_SkipCard (string input) { int SkipCard=0; … | |
i want to make a error check on each input. if i only got 1 input.. then i just use while(input==false) so it will continue ask user to input if he wrong input but if i have many input,then the while loop will complicated.. for example: Enter ur gender Enter … | |
This program is a simple bejewel game... i need to enter the matrix pos[alpabet][number]...eg(a1 or b7) so if i error input for example: 11 (cout error) this can work aa (cout error) but this will infinite loop... please help me... besides some one can tell me what can i do … | |
if i initialize x=65. it can show A (ascii code 65 is A). but 167 cannot.. why? [CODE]#include <iostream> using namespace std; main() { char x=167; cout<<x<<endl; system("pause"); return EXIT_SUCCESS; }[/CODE] | |
I wrote a simple bubble game... but it look long and complicated... so any idea to short it down? i heard about class.. but i dunno how to use it.. so is my program can use class? or any idea to short it down? #include <iostream> #include <ctime> using namespace … |
The End.