- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
programmer
- Interests
- science, table foosball
- PC Specs
- AMD Barton 2500+ machine
8 Posted Topics
Re: Look at the lines: protected: char *filename[12]; char *name[20]; I assume U just need two variables for holding two strings, not a tables of 12 (20) pointers to char. If so, try to remove * before filename and name and fix other errors by yourself (there are several of them … | |
Hi! I would like to split vector elements into the two vectors. One output vector shall contain elements that, for instance, are odd, and another output vector shall contain even elements (actually the case is more complicated;). I wrote something like this: [CODE] typedef vector<int> ItemVec; static bool isOdd(const int … | |
Re: >Since your function is defined before main, there's no need for a prototype ..unless other function defined before circle_area() calls circle_area() ;) | |
| |
Re: The [B]static[/B] keyword specifies that the function accesses only static members, so make your flag static. Other error will appear, but maybe U can fix it by yourself :) | |
Re: in function fight U have a strange if: [CODE] if (chp || hp <=0){ return; } [/CODE] I think you ment something like this: [CODE] if (chp<=0 || hp <=0){ return; } [/CODE] | |
Re: Maybe you should try to initialize "all" variable before strcat [B]char all[100] = "";[/B] or change [B]strcat(all, reg);[/B] to [B]strcpy(all, reg);[/B] | |
Hello everybody, I have a problem with libpng library, I am trying to use my own memory allocation routines. So, as stays in doc, I define PNG_USER_MEM_SUPPORTED and want to use png_create_read_struct_2() instead of png_create_read_struct(). png_create_read_struct_2 takes following parameters: [CODE]png_structp png_ptr = png_create_read_struct_2 (PNG_LIBPNG_VER_STRING, (png_voidp)user_error_ptr, user_error_fn, user_warning_fn, (png_voidp) user_mem_ptr, user_malloc_fn, … |
The End.