the code reverse all strings , i can't understand how the recursive memory assignment with malloc(1) creates consecutive memory locations in the same variable
Type: Posts; User: hkl01
the code reverse all strings , i can't understand how the recursive memory assignment with malloc(1) creates consecutive memory locations in the same variable
Hi,
I was trying to see why does this code works , i found it at another website. It is a function to reverse a string
char* reverse_str(char* s)
{
char* reverse = malloc(1);
Hi maybe this question is more related to microsoft .net , when i Add a ToolBar to a Form does it occupies drawing space ? . Im using DrawRectangle and Drawstring starting at position 0 , and the...
Hello im having a problem with the following , i want the Apply button in the dialog box from the File->open , to display the input from the textbox in a messagebox without closing the dialog box.
...
your code is right pityocamptes is just that in the temp[][] i use "-" instead of + because temp is [8][8]
thanks again pityocamptes
pityocamptes and neoragexxx thanks a lot for your help.
i got the same code as pityocamptes.
thanks
I think i found the solution can you check it please to be sure ... Thanks!
for(int i=0; i<256; i+=8){
for(int j=0; j<256; j+=8){
for(int x=i; x<i+8; x++){
cout<<endl;
for(int...
Yes im reading only the first column 8x8 ... but i cant think about how to read the other 31 8x8 matrix :( , thanks neoragexxx and pityocamptes
It seems to be correct for me , i may be wrong im a begineer but i test that code with the following
int main(){
int temp[8][8];
for(int i=0; i<256; i+=8){
for(int x=i; x<i+8; x++)
Hello , im trying to read an array[256][256] in 8x8 blocks , i need to break the array into a 8x8 matrix and send it to a funcion. This is how i was trying to do it , but it seems that only one...
hi , how can i create an image header ? what are the formats? using unsigned ...
please help
Thank you.