15,551 Topics

Member Avatar for
Member Avatar for huffstat

I am starting a new project and a couple of tips would be helpful. I wish to read all the files in the Windows Favorites Folder or Directory and extract the link information. I know how to read the files once I have the name of the file. What I …

Member Avatar for huffstat
0
115
Member Avatar for bigdill

Could anyone tell me the function this program is using? [code]#include <iostream.h> #include <stdlib.h> void My_Name_Is() int main() { My_Name_Is() //Calls function that prints user's name }[/code] Thanks!

Member Avatar for jim mcnamara
0
69
Member Avatar for sgriffiths

Hello I am trying to write some data to a certain position in a file, but cannot get it to work I want to write "XX" to position 6 of a specified file, but the data is just being written to the end of file. see below [code]#include<stdlib.h> main() { …

Member Avatar for sgriffiths
0
2K
Member Avatar for Ricky_v.s_C++

How can I separate an integer into digits using for loop? eg. before: 123 after: 1 2 3 anyone can help me with that?

Member Avatar for Ricky_v.s_C++
0
400
Member Avatar for mrjaiswal

Hi All, I am new member of this forum. I am trying to implement the simple c logic for the following problem : I want to come out of a [B]while[/B] loop only when I press the key 'e' But [B]condition is that, it should not wait for me to …

Member Avatar for spaceboyz87
0
193
Member Avatar for Tester99

Hi All, When I build a solution, it follows error: fatal error LNK1136: invalid or corrupt file [I]If anybody can provide a key how to fix this, please reply[/I]

Member Avatar for Dave Sinkula
0
53
Member Avatar for squirrel

Hi, I have a program which is hard coded, I need to enter a value(n2 in the below code) in the program, and the program processes the file according to the value n2. how I compile now is as follows: cc -o test testprog.c ./test [filename] What I need to …

Member Avatar for squirrel
0
259
Member Avatar for ~s.o.s~

Hello all prorgammers out there. While just fiddling with the pointer concept of mine which is weak i wrote a very simple function to just give the addr of the array to the char type pointer so that i can refer the array using the pointer instead of the array …

Member Avatar for ~s.o.s~
0
119
Member Avatar for molayos

I have xml strings in a memory in C program. I need to extract the reponse tag. Any known xml parser or string extractor code out there that works?

Member Avatar for iamthwee
0
104
Member Avatar for kishore22

Hello, I need the logic to implement a stack by using two queues. can anybody help in this ? Thanks & regards, Kishore

Member Avatar for Narue
0
111
Member Avatar for Lun

<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?

Member Avatar for Lun
0
94
Member Avatar for ~s.o.s~

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

Member Avatar for Ancient Dragon
0
169
Member Avatar for neeludhiman

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.

Member Avatar for Dave Sinkula
0
89
Member Avatar for rhp405

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 …

Member Avatar for rhp405
0
2K
Member Avatar for jeffxiang

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 …

Member Avatar for jeffxiang
0
422
Member Avatar for DotNetUser

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 …

0
63
Member Avatar for Nedals

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

Member Avatar for Nedals
0
115
Member Avatar for brale

Is there a way to get adress of beginnig of my program in operative memory while it executing?

Member Avatar for brale
0
207
Member Avatar for winbatch

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 …

Member Avatar for kris.c
0
167
Member Avatar for server_crash

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 …

Member Avatar for WolfPack
0
850
Member Avatar for nammi_aqua

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.

Member Avatar for Dave Sinkula
0
54
Member Avatar for kris.c

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 …

Member Avatar for Dave Sinkula
0
138
Member Avatar for ds_matrix

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

Member Avatar for Rashakil Fol
0
121
Member Avatar for Acidburn
Member Avatar for iamthwee
0
47
Member Avatar for brale

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.

Member Avatar for WolfPack
0
191
Member Avatar for YoTaMiX

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 …

Member Avatar for YoTaMiX
0
149
Member Avatar for molayos

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 …

Member Avatar for iamthwee
0
179
Member Avatar for CStallion

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!

Member Avatar for iamthwee
0
143
Member Avatar for bzburr

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 …

0
80
Member Avatar for cocojim

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

Member Avatar for cocojim
0
237
Member Avatar for kris.c

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 …

Member Avatar for Narue
0
284
Member Avatar for ghadahelal

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 …

Member Avatar for jetru
0
244
Member Avatar for molayos

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 …

Member Avatar for kris.c
0
95
Member Avatar for gampalu

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

Member Avatar for iamthwee
0
522
Member Avatar for kris.c

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??

Member Avatar for kris.c
0
189
Member Avatar for kris.c

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 …

Member Avatar for Ancient Dragon
0
87
Member Avatar for Pacer

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 …

Member Avatar for Pacer
0
200
Member Avatar for codergem

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

Member Avatar for Lerner
0
174
Member Avatar for Vada

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 …

Member Avatar for server_crash
0
209
Member Avatar for Buggaya

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 …

Member Avatar for Dave Sinkula
0
104
Member Avatar for AhmedHan

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 …

Member Avatar for WolfPack
0
150
Member Avatar for tlly

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 …

Member Avatar for Dave Sinkula
0
214
Member Avatar for fawadhq

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 …

Member Avatar for hammerhead
0
131
Member Avatar for static

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

Member Avatar for Ancient Dragon
0
131
Member Avatar for codergem

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

Member Avatar for codergem
0
146
Member Avatar for luckycharms3657

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 …

Member Avatar for Salem
0
88
Member Avatar for Phaelax

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 …

Member Avatar for Salem
0
145
Member Avatar for dude543

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

Member Avatar for dude543
0
143
Member Avatar for lilynadia

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!!!

Member Avatar for WolfPack
0
34
Member Avatar for yuzhang

Hi all: I got some questions on the following terminologies: Stackframe and heap. Can anybody give me some explainations with simple examples? Thanks

Member Avatar for LieAfterLie
0
112

The End.