15,550 Topics

Member Avatar for
Member Avatar for drock9975

I've never seen this before and am perplexed beyond belief... by the way I'm using Visual Studio I have a rather large program/game i'm working on right now, and it reads in via ifstream file i/o from binary files in several locations to initialize variables. For some reason for one …

Member Avatar for drock9975
0
186
Member Avatar for sania kohli

THe foll is a part of a prg i have to append one dummy list to a original list at destination in the original list .So plz help me i am a new user so sorry for any mistalke Here is the code :[code] #include<stdio.h> #include<conio.h> struct node { struct …

Member Avatar for SpS
0
138
Member Avatar for yuzhang

Hi all: Say, my program is about to receive a string "ABC", and I want to test if the string really contains "ABC". What is the best way to test it? I am thinking of read all the characters from the incoming string one by one, but not sure which …

Member Avatar for SpS
0
255
Member Avatar for badchick

Hello there, Okay well i have tried to do this program but i'm just not sure if i'm going in the right direction. Well i have to create a text file (Did that) which is inputed into the program, and the program has to count the instances of the following …

Member Avatar for Dave Sinkula
0
463
Member Avatar for zack

I need to write a function that will take a string and an int and return the string from index int onward. for ex [CODE]Line = "Enter a line: "; WriteString(RetStr(Line,4 )); //Should return er a line: AnsiString RetStr(AnsiString Str, int Start) { int ill; ill=1; char temp; while (Start!=Length(Str)) …

Member Avatar for ivanCeras
0
90
Member Avatar for achala

hello, i have a few questions pls help me out with them coz am really confused .. 1. can lists or vectors passed as parameters in a function? 2. can the lists or vectors be returned ? i want to use lists or vectors in classes i need to knw …

Member Avatar for Lerner
0
146
Member Avatar for yuzhang

Hi all: According to the library, recv() will return a zero if the socket is closed, and a SOCKET_ERROR if the socket meets an error. But when I closed my socket (at least I think I closed it properly), recv() returned a SOCKET_ERROR other than zero. Wondering why? Thank you …

Member Avatar for yuzhang
0
98
Member Avatar for yuzhang

Hi all: I have successfully opened a socket to a server and trying to send some data vai the send() function. But what surprised me is: [URL="http://www.daniweb.com/techtalkforums/wsagetlasterror_2.htm"][B]WSAGetLastError[/B][/URL]() returns nothing, which means the data has been sent to the server, however all the data (a string) will only be displayed at …

Member Avatar for yuzhang
0
165
Member Avatar for Pacer

Hi,all.I want to know why this program can not run faultlessly? Thanks to all. [code] #include <stdio.h> #include <stdlib.h> typedef struct link{ char data; struct link * next; struct link * pre; }list; main() { list * head=NULL; /* Define the head node */ list * linklist; /* Define the …

Member Avatar for Pacer
0
205
Member Avatar for yuzhang

Hi all: I wrote a simple program to open a socket to localhost port 8201. Codes: ...... [CODE]if (WSAStartup(VERSION, &wsadata) != NO_ERROR) { WSACleanup(); return EXIT_FAILURE; } open_socket(serverName, port); SOCKET open_socket (const char *serverName, const int port) { struct hostent *server = NULL; SOCKADDR_IN serverAddress; sock = socket(AF_INET, SOCK_STREAM, 0); …

Member Avatar for yuzhang
0
212
Member Avatar for musicmancanora4

Hey guys just wondering how i can sort the linked list by categoryName for the drink type list. Iv done the linked list in my code but its not sorted? Could someone help me write an algorithm or sum pseudocode [code] #ifndef GJC_H #define GJC_H /* System-wide header files. */ …

Member Avatar for SpS
0
172
Member Avatar for yyuuvvaall

hi, can someone understand how the new element is being attached to the list in this code? [CODE] void insertSortedList (Node **head, int value) { /* creating a new node */ Node *ptr = createNode (value); Node **pCurrent = head; /* adding the new node to the correct place in …

Member Avatar for dude543
0
296
Member Avatar for biotech2

i need to somehow detect text block (i dont need OCR just area where text is, but i am dealing with pixels) within book page and then cut everything else out. i am dealing with scanned books so i have specs and smudges in the page. the easiest way to …

Member Avatar for Salem
0
133
Member Avatar for gopi-krishna

i want to know about a program to find out the number on the cd which is presently inserted in the drive

Member Avatar for dubeyprateek
0
78
Member Avatar for degamer106

I'm supposed to take user input in the form of a prefix expression, convert it to infix and postfix, and then print the results. So far, I've got both working, but I would like to add some parenthesis to the infix expression once its converted. At the moment, I can't …

Member Avatar for iamthwee
0
229
Member Avatar for rontab68

hi, any suggestions on a good reading material or examples about linked list, doubly linked list on the web. or any good book that touches on this`topic very well..thanks bros. I want to keep one for future ;) reference.

Member Avatar for SpS
0
78
Member Avatar for moloza

Helloe all I have this small program using switch statment. the problem that when I complie this C code using gcc under Linux I get message: switch guantity not integer!! Now, when I use switch(*hello) instead switch(hello), I got run time error: segmentation fault!! I want to know where is …

Member Avatar for Dave Sinkula
0
3K
Member Avatar for a_takavci

hi everyone i have a server using windows sockets and runs on multiple computers on lan, and i need to display a list of the servers from a client machine, what is the easy way ,how can i implement it

Member Avatar for a_takavci
0
88
Member Avatar for D.Mark Phillips

I have just recently downloaded graphics code to help soup up and visualize fractal concepts which I'm developing. I plan on using a DOS desktop application which I think I can do through visual cpp from a Windows 98 S.E platform. My questions are; Where do I install the header …

Member Avatar for dwks
0
149
Member Avatar for yuzhang

Hi guys: I have a very strange problem here. Under Linux Mandriva Powerpack 2006, KDE I "make" the program I wrote successfully in the terminal, without any errors. And I could see there was an executable file generated in the same folder. But when I typed in the program name, …

Member Avatar for Salem
0
79
Member Avatar for yuzhang

Hi all: Try to do some programming under Linux. The programme I am writing is supposed to read all the char from a file via "command in line argument (i.e. agv[i])" and via redirection (i.e. read <FILE_NAME. In my program, I have written: FILE *stream; stream = fopen(argv[i],"r"); if (stream==NULL) …

Member Avatar for yuzhang
0
381
Member Avatar for yuzhang

Hello all: I successfully use `(int)i=fgetc(stream)` to read data from a file. But the problem is: All the data in the file are integers, like 3 0 2 3 0 0 1. (with a space between every two integers) Code: for(i=0;(i<100)&&((n=fgetc(stream))!=EOF)&&(ch!='\n');i++) { buffer[i] = n; printf("%d=%d ",i, buffer[i]); /*For debugging …

Member Avatar for Ancient Dragon
0
145
Member Avatar for HackWizz

Hi.. Could any one tell me about... 1) What is top-down approach(POP) and bottom-up approach(OOP) and the difference between them.. 2) Different types of containership (might be with exs..) Thanks for the help

Member Avatar for HackWizz
0
101
Member Avatar for lchamarthi

Hi Everybody! First of all i would like tell my sincere thanks to founder of this site and people sharing the information. I am Newbie to this forum & to C language too.. Now i want to start to learn C. Could any body suggest/send me some quick start & …

Member Avatar for SpS
0
178
Member Avatar for yuzhang

A newbie here. I try to: Using MS Visual Studio 2005; Programming some simple C programs; Want to open a text file and read whatever it the file into a member of a struct. First of all, which type is this "FILE" anyway? Secondly, does the definition of "stdin" include …

Member Avatar for yuzhang
0
180
Member Avatar for breal
Member Avatar for dubeyprateek
0
114
Member Avatar for degamer106

OK.......right now i'm learning about binary tree traversal and this problem looks like a total killer to me. Here's it is: Write a program that takes as input the preorder and inorder traversals of a binary tree, and produces as output the level-order traversal of the tree. All i gotta …

Member Avatar for degamer106
0
261
Member Avatar for remedius

Hello! I just want to understand DDK unidrv example. As far as I've read unidrv can include two plug-ins. So,I try OEMDEV structure to send some data from one to another. But when I add some more fields in OEMDEV stucture (I mean besides OEM_DMEXTRAHEADER and dwDriverData, which are happened …

0
112
Member Avatar for fraley118

write a document that would outline dev-c step by step how to create a win32 dialog based application

Member Avatar for fraley118
0
82
Member Avatar for YoTaMiX

Hello :-) I have build a task of Linked List but for some reason , after i break the Input sequence by entering the same INT value twice in a row , the menu appears twice . howcome? Thank , Code Attached . Yotam

Member Avatar for Ancient Dragon
0
76

The End.