19,876 Topics

Member Avatar for
Member Avatar for pfkdesign

Hi! I am working in a project on window base C sharp and i successfully create resizable, moveable multiple rectangles by mouse dragging on a PictureBox but i cant distinguish between them! ex i want to delete the selected rectangle (first select then click on the delete button) . " …

0
38
Member Avatar for Gaiety

Hello, i found two codes for finding out the height of the tree (this is what creating confusion for me which one is correct) 1. int height( BinaryTree Node t) [COLOR="Red"]{[/COLOR] if t is a null tree return -1; hl = height( left subtree of t); hr = height( right …

Member Avatar for Tom Gunn
0
120
Member Avatar for Elektrikz

Hello guys. After some time searching around the forums for a thread about an e-book for crash course from C++ to Java and no luck I decided to post a thread about it. So my question is,does anyone has or knows such book? Thanks in advance.

Member Avatar for tux4life
0
283
Member Avatar for DoEds

I just found this example in my book. After running the program in will only ready the first line of my file. Ex. inside my file "PhoneBook.txt" Mine 12345678 Hers 1234567 Them 123456 It will only read "Mine 12345678" ignoring "Hers 1234567 and Them 123456" How will i'll make this …

Member Avatar for DoEds
0
114
Member Avatar for jralexander137

I'm trying to find the largest int in an array and then print it out to the screen. Here is what I have so far: [code=c]void LargeNumber(int numbers[], int k){ int len = k; int i = 0; int big_num = 0; for(i=0; i<len; i++) { printf("i is: %d\n", i); …

Member Avatar for dkalita
0
109
Member Avatar for splurchner

I wrote this small program for a class im taking, and its supposed to take an int n and a radix (int between 2 and 16) r and give me the number converted to the new base. It only has to go from decimal to other radix's. I run my …

Member Avatar for splurchner
0
192
Member Avatar for jralexander137

I'm a little lost when it comes to initializing a dynamic array. I am counting the number of integers that appear in a given text file and incrementing a counter which will then be used to set the size of the array. Here is what I have so far: [code=c] …

Member Avatar for Salem
0
170
Member Avatar for serkan sendur

guys i need an error-free way of keeping name value pairs in a regular c# string. i am quite busy, i dont think i am able to come up with the best algorithm now. what i want is two methods one to add a name-value pair to the string, the …

Member Avatar for kvprajapati
1
1K
Member Avatar for cristian.sorin

Hello. I have this simple program that open a file and read lines from it and print them to screen. #include <errno.h> #include <stdlib.h> #include <stdio.h> int main() { char line[4096]; FILE *fp = fopen("/root/Desktop/testfile","r"); if( fp == NULL ) { exit(1); } while(fgets( line, sizeof(line), fp ) != NULL …

Member Avatar for codeguru_2009
0
186
Member Avatar for Gaiety

Hello, I am working on tree stuff but i am very confused of Tree concepts and balanced trees , height of the tree. What is an expression tree? how to create the expression trees. Please request you to do the need.

Member Avatar for Tom Gunn
0
84
Member Avatar for ubi_ct83
Member Avatar for kvprajapati
0
177
Member Avatar for wewehalim

Hi, i need help in building a program about automata cellular. So, there is 4 state of cells, `0 = space, 1 = ".", 2 = "+", 3 = "#"` This state is continuous from 0 - 3, after 3, it will be back to 0. we need to compare …

Member Avatar for wewehalim
0
533
Member Avatar for hket89
Member Avatar for jralexander137

I'm trying to scan a line from a data file(txt format) it just contains a line of ints ex. 3457983257892 I need to scan the line and get the total number of individual ints. Basically, 34563456 would total to 8. I'm not sure how to manipulate a while loop using …

Member Avatar for Salem
0
102
Member Avatar for Nathan Campos

Hello, I'm starting in the development under PocketC and i want to know if here in DaniWeb we have other users that are using the same software. Regards, Nathan Paulino Campos

Member Avatar for serkan sendur
0
75
Member Avatar for MrNoob

hello i m suppose to do this program which should pass array of ptrs to a structure intilise and put student[i] info in each array i did most of it but now i got problem coz i cant just pass address of structure since its an array of ptrs to …

Member Avatar for MrNoob
0
152
Member Avatar for ameneh_p

hi i want to get it's implementation as soon as possible. i will be thankful for your help. :icon_redface:

Member Avatar for mrnutty
0
158
Member Avatar for MrNoob

hello i m doing some function for saving a structure of some employee to text but i want to do it using ptrs to struct normally i tried first using ptr to struct in some main function to test some stuff abt it but i get runtime error [code] #include …

Member Avatar for yellowSnow
0
128
Member Avatar for Gaiety

Hello every one, I Request you to kindly provide me the description of Tree and its traversal meothds of using iterative. i tried for all recursive ones but this one i cant get. how to get back to the parents nodes when printing in inorder and post order methods. how …

Member Avatar for Tom Gunn
0
171
Member Avatar for geoffy0404

I am just starting out in C, i am doing this from what i remembered from the class i take and i just cant find whats wrong with this[CODE]#include <stdio.h> int main() { char lol[30] = ("hello everybody"); printf("%c", lol); return 0; }[/CODE] when i compile, i just keep getting …

Member Avatar for geoffy0404
0
78
Member Avatar for mrman208

I was wondering how if possible to get information from the internet and display it. Thanks, Mr. Man

Member Avatar for Salem
0
58
Member Avatar for zhinokin

hi to everyone... i will make a program about parenthesis checking and my prof said that we will not be using a stack for this. will you kindly help me to this.. aside from stack can you help me on what to use.?.

Member Avatar for Salem
0
94
Member Avatar for novice_33

the problem is.. a certain .dat file consists of 3 fields of data..for example...user account, password and username (gibsonML, sweetie33, Mel Gibson). How I will load it and then assign it to hash table. Thanks..

Member Avatar for Salem
0
146
Member Avatar for namasteall2000

Hi - I have a question and I know the answer too but don;t know how to explain my answer - could someone help me in explaining. Consider the two-dimensional array A: int A[][] = new int[100][100]; where A[0][0] is at location 500 in a paged memory system with pages …

Member Avatar for Salem
0
89
Member Avatar for vileoxidation

Hello there, and thank you in advance for helping me with this! I am working on a program for my class, which is supposed to perform multiple functions on a string that the user enters. I have posted the code that was given to us, as well as one of …

Member Avatar for vileoxidation
0
253
Member Avatar for nateuni

I have been bashing away at this for hours and am not making any new ground. I have to find the employee that is closest to the all the average. Originally I thought I would just see how far each value was away from the average (eg ageRemainder = averageAge …

Member Avatar for nateuni
0
86
Member Avatar for adcodingmaster

hi guys can any one tell me the difference in architecture of dual core and core-2-duo processor? which one is better? plz reply to both the questions. thnx

Member Avatar for Salem
0
357
Member Avatar for vanalex

Hello everybody! I want to write a program in c that has to open a file (a c program) and count how many char or double declarations have been made in it, so as to calculate the amount of memory that char and double data types will occupy in memory. …

Member Avatar for Protuberance
0
187
Member Avatar for ivatanako

hi, i know this is a basic question and i have tried searching GOOGLE but it does not solve my problem. I have a array which is declared as [code] int frameScores[]; [/code] but when i tried to get its size after adding elements by using sizeof, i get a …

Member Avatar for Salem
0
227
Member Avatar for ANNICO

Hello, I am new the the C++ scene and to this website. Can someone assist in Pseudocode for take-home pay? Thank you.

Member Avatar for vmanes
0
25
Member Avatar for edwar

Hi every1, is there some1 how could give a code to sort a text file in c. for example, you write a text in kladblok and you write a code to to sort the text in alphabet. please if there is some1 who knows how to write the code, it'll …

Member Avatar for Ancient Dragon
0
106
Member Avatar for pymatio

I have this code: [icode] #include <unistd.h> #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; void add(char todo[], string priority, string home){ FILE *file; file = fopen(home.c_str(), "a"); fprintf(file, "%-50s| %-6s\n", todo, priority.c_str()); fclose(file); } void list(string home){ string line; fstream file(home.c_str(),ios::in); int …

Member Avatar for Ancient Dragon
0
236
Member Avatar for Nathan Campos

Hello, At this times i need to decide something that will chage my life forever, it is: Continue with C++ and the possibility to compile my programs at my HP Jornada 720(Handheld PC) and in my [b]PC only and NOT for my j720[/b], or learn C and start my mobile …

Member Avatar for Frederick2
0
345
Member Avatar for littlewonder

hi, i get an error - 'incompatible types in assignment' for the following code [CODE] #include<stdio.h> int main() { char name[10]; name="Hello"; printf("%s",name); } [/CODE] Any help will be greatly appreciated...

Member Avatar for littlewonder
0
59
Member Avatar for ubi_ct83

i have loaded the string data from file to double array.this is example: const_array[1][]=a1,b1,c3, const_array[2][]=a2,b1,c3, const_array[3][]=a3,b2,c2, const_array[4][]=a2,b3,c1, const_array[5][]=a3,b2,c1, those data need to be compared to this string: append_test_data.this is also an array and it will be changed randomly by d program.the prob is,my prog just compare to the last data …

Member Avatar for ubi_ct83
0
617
Member Avatar for niyasc

Hai, I'm a higher secondary student in kerala. As our project I have to create a simple car racing program in c++. I implemented the following code fragment. May I get some instructions to improve it? Especially the method of accessing input to controll movement of object? [code=c++]#include<iostream.h> #include<conio.h> #include<dos.h> …

Member Avatar for mrnutty
0
193
Member Avatar for AndrewWood

Hi, Came here to find an answer to a question no one wants to touch. I'm currently doing some work with debugging principles in Windows C and have found a very odd problem when spawning a process. When using CreateProcess with any of the debug flags set on my other …

Member Avatar for IanHannah
0
306
Member Avatar for EvilLinux

Hi, I've been working on this project I'm doing and its killing me because I can't figure why my array\formula's don't want to get along. Here is the general overview of what the project requires: Here the project: Operation • The user enters a score and clicks the Add button …

Member Avatar for EvilLinux
0
2K
Member Avatar for dzruptz

i am currently starting on a project that requires to load a flash movie from a remote website (which keeps track of the user authentication) and edit the variables inside them. in other words, something like a flash game bot. i have figured out how to embed the flash swf …

Member Avatar for Diamonddrake
0
153
Member Avatar for sophie_kiu

Question1 : how to use c++ to read/write excel file without changing it into CSV file? Question2 : How to use CSV parser in c++? Are there any examples?

Member Avatar for Protuberance
0
334
Member Avatar for katwalatapan

Hello, I tried to compile a posix mq_send and mq_receive application. The msg is sent on the queue successfully, but during the receive part, an error occurs. I have attached the send and receive part of the code, please do suggest any corrections. mq_send [code=c] #include <mqueue.h> #include <stdlib.h> #include …

Member Avatar for Protuberance
0
1K
Member Avatar for JETFUSION

Hi there all, Could anybody please help me, as to why my program is not adding the right quantity's? [CODE]// Question 2a #include <iostream> using namespace std; int main ( ) { const int NR_SESSIONS = 3; int nrAttend; int votesForS, votesForR, votesForO; char vote; // Initialise totals votesForS = …

Member Avatar for tux4life
0
127
Member Avatar for vivekarora

Hello Friends, I have a huge program having multiple malloc & free. At the end of my program, I wish to print the memory leak which has occured. There are obviously many solutions to this problem. e.g. Simplest one: 1) When you allocate the memory, keep the allocated memory pointer …

Member Avatar for vivekarora
0
283
Member Avatar for vashek

Hi All, this is my first C code in my professional life. I wanted to write a common function to retrieve file content. I do not know whether below code is upto the mark or not. any Suggestions/modifications/tips are greatly appreciated. [CODE] #include <stdio.h> #include <stdlib.h> /* Function Name: get_file_content …

Member Avatar for wildgoose
0
431
Member Avatar for katwalatapan

Hello everyone, I have installed Dev-C++ IDE on my system to run POSIX threads application. The program has compiled correctly. When I try to run the application, I am encountered with the following error Unable to locate component This application has failed to start because pthreadGC2.dll was not found. Re-installing …

Member Avatar for ajay.krish123
0
254
Member Avatar for octavia

Hi :) anyone can help me for my problem 1) how to convert 'unsigned char' to 'unsigned int' ... 2) need more idea about casting for embedded c after making some calculation , value from char typed array element are changed some unknown value which can't be handled. Wanna know …

Member Avatar for ithelp
0
159
Member Avatar for pk09
Member Avatar for 9868
-1
125
Member Avatar for diogoc.pinheiro

Hello guys, I need help here. I´m new to C# and asp.net, i'm doing a program that shows a list box with the users in the DB. A user has a group or a schedule. What i want to do is, when the user selects a user i want to …

Member Avatar for lenj
0
163
Member Avatar for littlewonder
Member Avatar for snprime

Hey guys, I a new CS student taking a class on C and I have a question about passing by reference. I have a problem in which I am trying to open a file called reportFile. The problem is that when I try to do this using a function, as …

Member Avatar for snprime
0
132

The End.