19,876 Topics
![]() | |
Hello, I need the logic to implement a stack by using two queues. can anybody help in this ? Thanks & regards, Kishore | |
<Post moved from dead [URL="http://www.daniweb.com/techtalkforums/thread22835.html"]thread[/URL]> is it possbile if the string letters can be alternatively capital? like uhmm ex. boring to a bOrInG? and without using the any str? | |
Here is the code i have written to accept string from the user. Can you please modify the code so as it can even count the space as well as print the whole line with the spaces instead of the first word. Thanks a lot. [CODE] #include <stdio.h> #include <assert.h> … | |
Hi, Can anyone please tell me where can I fing the C code for Base64 decoding. I have a string that is base64 encoded, and I have to decode it, how can I? Thanks, Neelu. | |
Hi! I'm trying to find out what is wrong with the next code which I'm trying to run in Linux: [code] int e1; int e2; pid_t pid1; // pid of child pid_t pid2; pid_t w1; // return code of wait() pid_t w2; // child process 1 pid1 = fork(); if … | |
Hello, ostream - how to insert a line of text instead of overwrite in the beginning of the file? #include <fstream.h> int main() { char fileName[] = "SampleFile"; char buffer[255]; ofstream m_fp; // m_fp.open(fileName, ofstream::ate ); m_fp.open(fileName, ios::in|ios::out); m_fp.seekp(0, ios::beg ); m_fp << "This is the line written to the … | |
I have been writing some CGI scripts in C++, and I was wondering if anyone else has done the same? I have built a pretty decent sized library of functions I use a lot for formatting form inputs and such. The reason I chose C++ is because I'm so familiar … | |
I'm using Visual Studio .NET. The gui I'm implementing will be used on a wide screen. In the design view of the IDE, the form size is limited to the screen resolution. How can I stretch it to be the size of the wide screen so I can add controls … | |
Hello, I have been asked to use Microsoft SDK 5.1 to enable voice commands in a program. After installing the SDK I am using the Reco sample program. I am using a vocabulary which I have created. Reco recognizes this vocabulary and is working fine. For the program I need … | |
This is a snippet from a larger block of code. The print statements are included for testing. Within 'main', if I ouput the 'cell_ptr' or 'params' pointers, it correctly returns pointer values but if I try to output an element from the params array, I get an '...illegal operation...' message. … | |
Is there a way to get adress of beginnig of my program in operative memory while it executing? | |
Hi, I've inherited some code in C that acts as a server and receives requests over a socket. That is all working fine. I wanted to make a very small change to the server code to print out the hostname of the client connection. However, I'm always getting 0.0.0.0 as … | |
I have the following simple piece of code: [code] double new_amount; printf("Enter an amount: "); scanf ("%d", &new_amount); [/code] For some reason, it always give me zero as the new_amount no matter what I input. What exactly am I doing wrong? Also, is there a way I can do a … | |
I am finding difficulty in writing delete function for binary search trees. It wud be great if someone cud send me the code in C language. | |
Hi all, I wish to write the contents of a large char array into a file. I open the file for writing and say, fp is the pointer to the file. and I write : fprintf(fp,"%s",buff); Does fprintf write the whole array into the file or is there any inbuilt … | |
[code]///Program for Select Sort //Name: Sharan Shanmugaratnam //Date: June 6th, 2006 //Constants #include <stdio.h> #include <ctype.h> #include <string.h> #include <time.h> #define SIZE 1000 int main (void){ char x[1000][1000], y[1000][1000]; int size; char a[0][1000]; int sorting=0; FILE*file; //Opens the file that contains the 1000 words. file = fopen("words1.txt","r"); //Reads the file … | |
Hello is there any windows graphics programmers that can help with a problem? ![]() | |
J need function that calculate formula in infix notation. For exempele function that takes string as argument and return an float as value of that formula. J make function that calculate postfix formula but it is not help me to solve problem. | |
Hello to you all , I am Trying to Implement Code for Void** Array which will Store Strings in a QUEUE system . I can see the Strings in the Queue . I am sure i dis the Casting OK, But i need a fresh pair of eyes. Also is … | |
I am using libcurl ls -l lib* libcurl.a libcurl.la -> ../libcurl.la libcurl.lai libcurl.so -> libcurl.so.3.0.0 libcurl.so.3 -> libcurl.so.3.0.0 libcurl.so.3.0.0 libcurl3.so -> libcurl.so.3 So we have link for libcurl.so and libcur.so.3 When I complile the code and link it how do I link the [B]libcurl.so.3 (with .3 at the end)[/B]? [B]cc … ![]() | |
I just need to know how to count the entries of an array like this one: [code] string array[] = {"entry", "entry", "entry", ... , "entry"}; [/code] Thanks! ![]() | |
I want to learn C+ but i want to start with a simple compiler. I have access to Borland C++ and Visual studios.net but they are way to overwhelming. Can some body give me names of decent simple programs that I can learn with. | |
Hi everyone have been asked to maintain a Borland Builder 6 application - though im more used to another environment have been finding Builder quite fun as a change. I have run into a problem - in the app there is a form which has an owerdrawn TListbox (items added … | |
I was trying to implement "strcat" myself, however, I found that the following commands simply won't work: "..... char *p; p="string"; *(p+2)=a; " I was thinking that this will change "p" to "staing". But no. It compilies fine, but when I tried to print out p, i got error message: … | |
hi all, I am required to generate an array having 100 random numbers, where there is absolutely no repetition and the case where the ith element of the array is the number " i " itself is not allowed .. I found some ideas where we could generate pseudo random … | |
hallo i need 2 deal with each digit after the floating point. ex . 12.5678 i need 2 compare the 12.5 with another number and then the 12.56 and then 12.567 and so on till 4 digits is there is a function that takes the int number and one number … | |
How do I pass a file to post instead of message The url i am posting is IP:PORT/app/server/recieve. How do I pass /app/server/recieve in the following program? struct sockaddr_in { (short int sin_family; unsigned short int sin_port; struct in_addr sin_addr; unsigned char sin_zero[8]; } struct sockaddr_in their addr; their_addr.sin_family=AF_INET; their_addr.sin_prot … | |
I want to open a file and count the number of strings in the first line. Assuming that each string is delimited by spaces. I tried to do some code but yet not successful, can anyone help? [CODE] int main(int argc, char* argv[]) { int count = 0; FILE *stream; … ![]() | |
I have done programs that print themselves on execution,but is it possible for a c program to execute itself or another c program whose path is specified?? | |
hi all, Suppose, I have a string stored in a character array. I want this string to be stored in a file. If I do fopen and use the write mode ,the contents of this file will be junk.. How can I store the string as it is inside the … | |
Hi,everybody.Following is an simple C programm which want to display the content of a file with corresponding hex.If one letter is a undisplayed then replace it with '.' . info and code: info: [root@localhost guai]# gcc disp.c -o disp.exe disp.c:29:9: empty character constant disp.c: In function `main': disp.c:47: wrong type … | |
HI, I AM CAS ORJIOKE FROM NIGERIA. I'M A FINAL YEAR STUDENT IN ELECTRICAL AND ELECTRONICS ENGINEERING. I DESIRE KNOWLEDGE ALOT. IF THERE IS SOMEONE TO ME GAIN THE KNOWLEDGE IN C AND C++, I'LL BE VERY GRATEFUL. MY E-MAIL IS ;casorjioke777@yahoo.com. | |
Helo friends!! I m having problems in understanding that how every node is added at last.Could anyone explain me this in much better manner. Well here it is.... we use a local "reference pointer" which always points to the last pointer in the list instead of to the last node. … | |
I really need help in computer projects can any one suggest me where to get computer projects please send in my mail .In case you are having one please attach it and send it in my mail. Hey it is dam URGENT my school is going to open within two … | |
hello people :) found this site via google and its helped me a great deal so far but ive hit a snag. from this topic: [url]http://www.daniweb.com/techtalkforums/thread19672.html[/url] ive managed to create an app that will sit in the system tray and can be minimised and restroed again but the problem is … | |
I'm begginer in using c ( platform of linux) the problem is that idon't know name of function that ineed First Iwant to make simple applications to be able to go through it step by step. Can any one know functions used to accomplish that simple program =>Run/stop a specific … | |
Recently I installed Visual Studio 2005 .NET on my computer. I wrote a Win32 program. But my program doesn't run on PCs that doesn't have Framework 2 installed on. Is there any settings for VS 2005 .NET to make my code run on all PCs? Or what DLL file should … | |
I've got a 2 tricky questions for u. Can anyone write: 1). A "Hello World" program in 'C' without using any semicolon. 2). A 'C' program without using any loop (if, for, while,etc...) to print numbers. A friend gave me those questions but up till now i have not been … | |
i want to make a reservation system for my DataStructures Project. THE main requirement is that the complete data file has to be loaded in the memory and then any processing ( entry, deletion, sorting or searching ) has to be performed in the memory ? where am i going … | |
HI , i have some errors about linked list,when i made print it only shows characeters like 'ô¼'... plz help; :lol: // lets assume wordCount is 10 and vayArray is {"lower",upper}; :cool: Thank you very much Here is code:[code] struct for_char_5 { char vh5[80]; for_char_5 *next; }; for_char_5 *p, *start, … | |
Helo !!! I was trying to implement linked list in which the data field is Generic... the structure details are.. [code]typedef struct node { void *data; struct node *next; }gnode; [/code] Now to add a node into it, and i have written this function. [code]void insert(gnode **head,void *data,unsigned int size) … | |
i have been working on this for some time now and i get an error message that says "Could not find a match for 'vector<int>::vector(const int, const int, const int)' " heres my code. [code] #include<u:\C Plus\LVP\gui_top.h> #include<u:\C Plus\LVP\vector.h> //-------------------------------------------------------------------------------- class ButtonClass { public: ButtonClass(String Text, int X1,int Y1, int … | |
I'm doing an english paper, an internal proposal memo. I chose a fake company and their problem is use of remote monitoring software which bogs down a system beyond use when its active due to the software doing complete screen dumps for the monitoring. My proposed solution is to rewrite … | |
This is/was an interview question I got two weeks ago. Find where the loop begins in simple linked list. I hope this figure will help understand what I mean : [code] [LEFT][1] ->[2] ->[3] ->[4] ->[5] ^ | | U [10] [6] ^ | | U [9]<- [8]<- [7][/LEFT] [/code] … | |
I need help... I don't know how to insert data [continuous numbers] from a text file (.txt) into a linked list?? I have been searching for some tutorial abt it but i didn't found any of it. Please help me!!! | |
Hi all: I got some questions on the following terminologies: Stackframe and heap. Can anybody give me some explainations with simple examples? Thanks | |
Hi! I built this class, however when I executed my program the memory run out quickly, because I wasn't making any "deletes", so I added the delete in the destructor, but It crashes there... what's wrong? [CODE]class CMatrix { public: void Identity(); void SetMaxColRow(int nRow, int nCol); void SetElement(int nRow, … | |
Hi people: Here is a very basic question, but it has been bugging the living hell out of me. I am using Visual Studio 2005 and progamming in C. The whole program's skeleton was given to me, and NOT to be altered. There are several header files in the "header" … | |
Hello , I wish to create a User-Defined array (1=float , 2=int) and to ALLOC the array properly. I defined void* ARR in main function and is a SWITCH (choise) i will make the desired array. why doesnt it work? Code is attached . thanks :-) | |
Hi, How can I do the following? I have a DBGrid and I need to get values that grid. When I click on a cell in the grid, I need to get all values in the selected row. If for example there are 3 columns named ID, name and age. … |
The End.