166 Posted Topics

Member Avatar for gameon

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]

Member Avatar for Tellalca
0
145
Member Avatar for krap_nek

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 …

Member Avatar for Tellalca
0
118
Member Avatar for 4erepa

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?

Member Avatar for Tellalca
0
58
Member Avatar for chound

[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.

Member Avatar for Tellalca
1
161
Member Avatar for Tellalca

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 …

Member Avatar for gerard4143
0
110
Member Avatar for sdinu96

"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 .

Member Avatar for Ancient Dragon
0
88
Member Avatar for Tellalca

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); …

Member Avatar for Tellalca
0
92
Member Avatar for purvi12345
Member Avatar for laghaterohan

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.

Member Avatar for Tellalca
0
80
Member Avatar for Tellalca

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 …

Member Avatar for Tellalca
0
173
Member Avatar for deanus

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.

Member Avatar for deanus
0
148
Member Avatar for Tellalca

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 …

Member Avatar for Tellalca
0
226
Member Avatar for bill_
Member Avatar for tieuyeunu
0
13K
Member Avatar for Tellalca

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. …

Member Avatar for Tellalca
0
192
Member Avatar for Tellalca

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 …

Member Avatar for Tellalca
1
301
Member Avatar for manutd4life

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.

Member Avatar for Tellalca
0
130

The End.