166 Posted Topics
Re: With inserting you mean manipulating a picture with C? Actually with using C you can almost do anything. There are some tools to use for editing pictures using C. BMP (bitmap) files can be edited bit by bit. You should check the following links: [url]http://en.wikipedia.org/wiki/BMP_file_format[/url] [url]http://www.vbforums.com/showthread.php?t=261522[/url] | |
Re: A better aproach will be to divide the problem into several functions. For example you can sort the id_numbers and then with an sort function, then you can printf the list with a print function, and you can eliminate the same records while printing the function. Implementing such several loops … | |
Re: I dont understand the meaning of assigning 0 to sum in the for loop. If you would assign 0 to it why do you bother calculating it? | |
Re: [QUOTE=chound;50413]What are trees?[/QUOTE] Wow, that kind of clarity triggered my heart attack. If you see something dividing into two or more, there you have a tree. Trees are good. We all love trees. | |
I've been developing console applications using C/C++. I now want to move on and create some GUI applications. For that i saw some libraries to create GUI. I think those libraries are OS dependent. How can we create GUI applications compatible with Linux, Windows and Mac, or is it even … | |
Re: "printf("%d", p );" should print the adress of variable which p points to which is an integer. If you dont assign any adress to the pointer then that pointer is bad ptr. You cant expect to get a meaningful value without assigning . | |
I wonder why the following code work. In the debugger i see that every thing works fine but after the "root = createNode(item);" statement I can't see the new node assigned to root? [CODE]Node *insert( Node *root, int item ) { if(root==NULL) root = createNode(item); if(root->data>item) insert(root->left,item); else if(root->data<item) insert(root->right,item); … | |
Re: What do you want? | |
Re: In button tag in the page add the following: onclick="1_click" This will call the event handler 1_click() when the button is clicked. | |
I got some linker error, couldnt find the mistake. What is wrong? [CODE]#include "myStack.h" //Imports the Stack header file containing the declaration of the member functions myStack::myStack() /*The stack is initialized as empty */ { count=0; } //end of Stack::Stack constructor Error_code myStack::push(const Stack_entry &item) /*If the stack is full … | |
Re: I think it is stored as names[0]="Dean"// pointer to the starting character of the string "Dean" names[1] ="Viky"// pointer to the starting character of the string "Viky" And "Dean" and "Viky" is hold as two another array of characters in another place in memory. | |
I have tried to implement a stack class but i got stupid errors. There is a stupid error i know but i couldnt find it. [CODE]#ifndef STACK_H #define STACK_H /*Manual implementation of Stack class. By this way it will be possible to learn the advantages of Stack data structure over … | |
Re: If you can send the reorganized .cpp and .h files maybe we can help easier. | |
Hello everyone, i was just trying something when i got the error. I debugged and it says string password <Bad Ptr> and that password string have more than lets say 100000 childs of characters in it. I used the string::resize() member function but it doesnt seemed to solve the problem. … | |
I cannot assign my rawWord value to the string array. The program reads a value from testText.txt and then edits it. Then this manipulated char rawWord[20]'s value must be assigned to the string array word[i]. When i debug i see that rawWord is edited correctly, but when it comes to … | |
Re: Maybe it will be better to declare pi, radius and area as double or float. If you want to calculate areas of more circles, you can try a loop and then add the areas to the sum. |
The End.