15,551 Topics

Member Avatar for
Member Avatar for gampalu

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

Member Avatar for Salem
0
355
Member Avatar for yuzhang

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

Member Avatar for LieAfterLie
0
102
Member Avatar for YoTaMiX

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

Member Avatar for Ancient Dragon
0
173
Member Avatar for nanodano

I've been looking for information on threading, and I found information on POSIX pthreads. Apparently, Visual Studio 2005 does not have [INLINECODE]pthreads.h[/INLINECODE] in their library. I did a search on the computer, and I found pthreadlocale.obj in the LIB directory. Does this object file have anything to do with pthread.h? …

0
65
Member Avatar for nanodano

Hi, Let me explain a little background of the situation in case there is a wiser solution than vectors. I've got a loop running in a program, and for each loop, I need to add a new element at the end. I need to backtrack anywhere from 5 - 250 …

Member Avatar for Lerner
0
100
Member Avatar for dsa11

just wanted to know anyone used software firm nextage technologies [url]www.nextagetech.com[/url] for their software needs . we are going to outsource some work to them and wanted to know about your opinions on them

Member Avatar for msaqib
0
66
Member Avatar for playkid
Member Avatar for yuzhang

Hi people: Here is my problem: Codes: (My program is in the exact order as being represented here) [CODE] void push1(CStack stk) { stk.push(1); } int main(void) { CStack mystack; printf("Stack initially: "); mystack.print(); push1(mystack); } [/CODE] As you may read from above, the push1() function does not work at …

Member Avatar for yuzhang
0
121
Member Avatar for jazzz

Hi, The below is a program which uses quick sort to sort numbers in 3 columns LayerCode, SubCode and BrandCode. It sorts first by LayerCode, then by SubCode and then by BrandCode. The program seems has no errors. but it is not working(i.e., not sorting the numbers). Can anyone have …

Member Avatar for jazzz
0
114
Member Avatar for Dashing Boy

Hi, I have given a assignment to make a program using arrays input match played and win for five cricket teams in the month of April then give the ratings of the teams like “CITY BANK CRICKET RATING

Member Avatar for Dashing Boy
0
126
Member Avatar for Tamir

Hi, I created an addin which contains a button. The button responds on click event. I wish to call back the addin-object which created the button [B]BUT [/B]the [B]addin is not known [/B]from within the button functions. ANy help will be appreciated. Regards.

0
44
Member Avatar for harrypotter

[CODE]#define AND && #define ARRANGE (a>25 AND a<50) main() { int a = 30; if (ARRANGE) printf("within range"); else printf("out of range"); }[/CODE] What is the output?

Member Avatar for Sulley's Boo
0
111
Member Avatar for Mareq

I want to use process-shared POSIX semaphore under UNIX/LINUX. In [URL=http://pauillac.inria.fr/~xleroy/linuxthreads/faq.html#E]this FAQ (E.7)[/URL], I've found that [I]"Portable applications should test _POSIX_THREAD_PROCESS_SHARED before using this facility."[/I]. Manuals also say, that second parameter (pshared) for sem_init function should be zero, unless this feature is implemented, othrewise sem_init will return ENOSYS. But that …

0
93
Member Avatar for mmiikkee12

First let me point out that this is not homework, it's just something I'm doing because I'm bored ;-) I'm trying to get my little hobby operating system to read from the hard disk. So far all I can get is the byte FF (255). I've tested this in both …

Member Avatar for Salem
0
146
Member Avatar for yuzhang

Hello: Now I am very close to the end of my work, thank you all for helping me out.:cheesy: There is one last strong hold: I need to somehow extract the defining parameters from their associated strings. Below is an example: Strings received from the server: BROADCAST "user_nickname" "blah blah …

Member Avatar for Dave Sinkula
0
94
Member Avatar for johnray31

hello friends could anybody give me idea how i can find a loop in simple linked list

Member Avatar for dude543
0
160
Member Avatar for sevdarib

Please can you help me mates! I have to make a program in C with lists. I should have a function to add a new record,erase, modifying or visualizing an existing one, save the records in a text file, visualize them and a funciton to exit form the program. Or …

Member Avatar for Narue
0
107
Member Avatar for yuzhang

Hi all: There are two function declarations in the header file: void sqEnqueue(const char *s); char *sqDequeue(); (no input arguments) Those function declarations can NOT be altered. I created a linked list in this sqEnqueue function, which has the a "first" and a "last" at the head and the end …

Member Avatar for Ancient Dragon
0
157
Member Avatar for neeludhiman

Hi friends, I am working in C on Linux Fedora Core. I need you help regarding XML Parser in C. I want to convert an XML file into plaintext format. e.g; I have following contents in XML file : [code]<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE persons SYSTEM "http://mail.persistent.co.in/v1/addrbook.dtd"> <persons count="13"> <person …

Member Avatar for iamthwee
0
310
Member Avatar for yuzhang

Hi all: I am stuck in the middle of my programme, wishing you may help. I am writing a "quene" structure in C, and it will copy the content of a string received from a server and display it on the client monitor. Codes: [code]typedef struct Message_from_server message_from_server void sqInitialise() …

Member Avatar for Dave Sinkula
0
132
Member Avatar for type-r

hello can sum1 help me with piping? ive been stuckon this question for almost a month. thanks. if u can help email me at <<email snipped>> and ill emailu the question. ur help would be appreciated.thanks

Member Avatar for Dave Sinkula
0
55
Member Avatar for mhm_ra

i need to write the value of a pointer into file then read it can you help me thanx

Member Avatar for Ancient Dragon
0
145
Member Avatar for lchamarthi

I would like to know the diffrence among loops (for,do while & while) used for flow control & sample usage & selection of loop based on the application.....as a newbie Also why integer is limited to -32767 TO +32767? Thanks & regards Lakshmi

Member Avatar for Ancient Dragon
0
203
Member Avatar for gladiator1919

plz i want your help. if i wrote a string and the user wanted to change a word in it. sample run: the sentence is; my name is gladiator what word do you change? gladiator to? gladiator1919 the new sentence is : my name is gladiator1919

Member Avatar for Dave Sinkula
0
217
Member Avatar for yuzhang

Codes: #define MAX_BUFFER_SIZE 1000 int ch = 0, alpha [25] = {0}, buffer[MAX_BUFFER_SIZE] = {0} ,count = 0; .... while ((ch = (fgetc(stream)))!=EOF) { buffer [count] = ch; count++; } printf("%d", alpha [25]); ..... The problem is: alpha [25] contains buffer [0], (alpha[25] is supposed to be 0). which suggests …

Member Avatar for ivanCeras
0
96
Member Avatar for deineMutti

Hello All, I've been trying to modify an app to be able to resize nicely and I've finally gotten that working. However, while the controls in my main dialog get bigger, the font stays the same size, which is a problem. I wanted the font to get proportionally bigger as …

Member Avatar for dubeyprateek
0
975
Member Avatar for jazzz

Hi, Iam new to programming. Can anyone explain the following program? [CODE]#include "stdafx.h" FILE *fp_dump; /*----- Layer -----*/ /* layer Record*/ typedef struct { USHORT usCode; /*LayerCode*/ USHORT usSubCode; /*SubCode*/ USHORT usBrandCode; /*BrandCode*/ USHORT usStartY; /*Latitude*/ USHORT usStartX; /*Longitude*/ UINT uiAR_DA; /*Offset*/ USHORT usCellSize; /*Cell Size*/ USHORT usDS; /*Relative offset*/ …

Member Avatar for WaltP
0
188
Member Avatar for yuzhang

Hi all: Got a formatting question here: Trying to send data string over to a server via send(); The problem is that I want to enclose the data string with double-quotes, "data string" should be displayed on the server side. The method I used is using two double_quotes on each …

Member Avatar for yuzhang
0
267
Member Avatar for CStallion

disclaimer I'm a programming n00b so I may not know what I'm talking about. /disclaimer My question boils down to scopes. Let say I have code [code] { string mystring1; string mystring2; string mystring3; //code dealing with mystring1 //code dealing with mystring2 //code dealing with mystring3 } [/code] versus [code] …

Member Avatar for CStallion
0
147
Member Avatar for yuzhang

:sad: Codes: if (sock!=INVALID_SOCKET) { if(send(sock,s,(int)strlen(s),0)==SOCKET_ERROR) { WSAGetLastError(); } } s is a char pointer pointing to the very first memory location of the data string. While in debugging mode, there was no error from `WSAGetLastError()`, but the data string was not displayed in the server. Why? Thanks

Member Avatar for yuzhang
0
145

The End.