15,551 Topics
| |
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 :-) | |
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? … | |
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 … | |
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 | |
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 … | |
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 … | |
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 | |
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. | |
[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? | |
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 … | |
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 … | |
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 … | |
hello friends could anybody give me idea how i can find a loop in simple linked list | |
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 … | |
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 … | |
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 … | |
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() … | |
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 | |
i need to write the value of a pointer into file then read it can you help me thanx | |
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 | |
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 | |
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 … | |
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 … | |
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*/ … | |
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 … | |
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] … | |
: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 |
The End.