19,876 Topics

Member Avatar for
Member Avatar for smart girl

[COLOR=#000000]hi all I am trying to be much familier with pipes I tried to write a c program that generates the following output [B]from child: I want to print this line twice [/B] [B]from parent: I want to print this line twice [/B] what I get is [B]from child: I …

Member Avatar for smart girl
0
120
Member Avatar for avalloc

I am having problems with a program I am writing. Write a program to read 2 integers. Then call a function to add them together and return the result. Display the result from the "main" program. How would I go on doing this?

Member Avatar for avalloc
0
86
Member Avatar for rowin

Hi, Is it possible to set the value of a DateTimePicker to blank so that when you run the application there's no value in the DataTimePicker? Kind Regards, Rowin

0
72
Member Avatar for Acidburn

Hello can anyone explain the following bugs: [quote] Book.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBook::Serialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z) ViewBooks.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall CBook::Serialize(class CArchive &)" (?Serialize@CBook@@UAEXAAVCArchive@@@Z) LSMUtility.obj : error LNK2019: unresolved external symbol "public: __thiscall CBook::~CBook(void)" (??1CBook@@QAE@XZ) referenced …

0
48
Member Avatar for regbrz

Heloo! I found codigo well very interesting, but the same it considers that all the processes arrive in instant zero, as I can make to consider arrivals in aleaórios instants. [code]* Scheduling Simulation*/ #include <stdio.h> #include <stdlib.h> /* Process Data Structure */ struct process { int pid; /* Process ID …

0
311
Member Avatar for rowin

Hi, I have an C++ Builder application. I want to print a report with the values appearing in my application. I get these values from my database. I already have a crystal report format of how the report should be printed. How to do this? Kind Regards, Rowin

0
100
Member Avatar for Acidburn

MFC program seems to always report the following error when I click the 'OK' button to exit the program: Run-Time check failure #2 - stack around the varible 'dlg' was currupted Can anyone explain this? if i click continue, then it just closes and returns me back to my development …

Member Avatar for Ancient Dragon
0
99
Member Avatar for stallion88

The first three people to complete this program will be entered into the annual contest for Top Coder! The grand prize is the chance to become one of TopCoders independent programmer. This is a special opportunity to get paid for programing projects that you create. Below is the program to …

Member Avatar for Rashakil Fol
0
554
Member Avatar for Rass Saee

Does anybody know how member of function can be a pointer to a function. The following example crashes when I call the member that is pointing to a function. [code]#include <stdio.h> #include <stdlib.h> #include <string.h> #include <windows.h> typedef long fooPtr(char *); typedef struct { fooPtr *func; long cnt; } MyStruct; …

Member Avatar for Dave Sinkula
0
124
Member Avatar for BURNEE

I am having a problem implementing the pivot_r portion of the program. I have all of the rest as we have been working on this program for a while but the darn pivot_r portion is killing me. Please any help would be GREAT! [code]/*-------------------------------------------------------------*/ /* Program chapter5_8 */ /* */ …

Member Avatar for Salem
0
209
Member Avatar for jhdobbins

Alright... first off I hate fgets with a passion :) Anyway, I am wanting to read a file into a 2 dimensional array and then randomly select one of those lines to output... What am I missing here? [CODE]void displayQuestion() { /* fp is a FILE pointer. This pointer will …

Member Avatar for Salem
0
3K
Member Avatar for arrogant

can any body help in implementing linked queues and also iterating it from the external main program????:?:

Member Avatar for SpS
0
116
Member Avatar for ghadahelal

i have 2 write a program that read a long number up 2 10 digits. when i made it int , the compiler made error, then i made it double, the program is ok and calculate everthing ok, but when i need 2 print this number again it is correct …

Member Avatar for SpS
0
172
Member Avatar for YoTaMiX

Evening :) I am trying to run a makefile on a program i wrote. in Borland C it runs smoothly . after running the makefile - all sorts of error appear which i do not understand. i am adding the files (program + header + error DOC ) . [B]Makefile …

Member Avatar for Ancient Dragon
0
144
Member Avatar for turkish_girl

my delete operation doesn't work.the element which is added last is being deleted.ı want to delete the one ı want; not the last entered.how can ı do that?can you help me?thank you very much for your consideration... [code]#include <stdio.h> #include <stdlib.h> typedef struct student { char name [25]; int age; …

Member Avatar for dude543
0
155
Member Avatar for YoTaMiX

Hello to you all , Major problem in C , Files included Summary of problem : Program will not copy the feild "name" from struct "univ->std.name" properly. the rest of data is presented fairly. do not touch function "output_university" . Thank you , yotam , Israel .

Member Avatar for YoTaMiX
0
232
Member Avatar for antrea

Need help. What`s wrong? Read words from textfile (only [a-zA_Z]. Puts them to the binary search tree. If word already exists in tree has to add to counter in struct. [code]typedef struct puu_alkio { char sana[100]; int lukumaara; struct puu_alkio *vasen, *oikea; }puu_alkio, *puu_osoitin; void add_to_tree(struct puu_alkio *solmu, struct puu_alkio …

Member Avatar for Salem
0
170
Member Avatar for john_hasan

This program converts a decimal input into a hexadecimal and octal value.But I also want to convert it top binary as well.So kindly guide me. thanx [code]#include<stdio.h> #include<conio.h> void main() { clrscr(); int a; printf("Enter a number"); scanf("%d",&a); printf("Decimal=%d",a); printf("\nOctal=%o",a); printf("\nHexadecimal=%x",a); getch(); }[/code]

Member Avatar for Salem
0
95
Member Avatar for frenzy44

hi i just started programming so im very new to all this, i am writing a code and i am comparing a string in a struct to a string. one of them as you can tell is an array of strings, im not really sure if im breaking any rules …

Member Avatar for Bench
0
199
Member Avatar for jack999

there is a problm in this programmebut i dont know what is itquestionWrite a C-Program that does the following• Read integer numbers from a file inp.dat• Calculate the sum, average, and multiplicand of even numbers and store the result and the even numbers in output file out1.dat• Calculate the sum, …

Member Avatar for Dave Sinkula
0
130
Member Avatar for manjurekha

dear friends, In C, a program i wanna write i.e; from one text file to calculate how many single char exists and print it in one more text file. try this............... i cudn't get.

Member Avatar for kriti
0
106
Member Avatar for kklowanshi

Hi , I m working on Peoplesoft Component Interface. I want to access the [code]class PSApiException { private: tstring m_sMsg; PSI32 m_nMsgSet; PSI32 m_nMsgNum; public: PSApiException(LPCTSTR szMsg = _T("Unspecified PS Api exception"), PSI32 nMsgSet = 0, PSI32 nMsgNum = 0) : m_sMsg(szMsg), m_nMsgSet(nMsgSet), m_nMsgNum(nMsgNum) { } virtual ~PSApiException() { } …

0
65
Member Avatar for turkish_girl

ı am from fatih university from turkey.now according to our country'time zone :03.01 am. and ı am still contınue working but ı couldn't solve the problem for 8 days.and there is a little bit time to handle homeworks.if one of you can help me to do my homework ı will …

Member Avatar for Ancient Dragon
0
110
Member Avatar for degamer106

From what I read in a few books, a static variable retains its value(s) throughout the lifetime of a program. In this stack program I've been trying to fix up, the static var doesn't seem to change or hold its contents after different function calls. I can't figure out what's …

Member Avatar for iamthwee
0
196
Member Avatar for degamer106

I'm kind of confused about how the modulus operator works. Suppose i have x % y with x > y. So if x was 6 and y was 2, then 6 % 2 would produce 0. But i don't really get what happens when x < y :eek: In this …

Member Avatar for degamer106
0
111
Member Avatar for a.baki

hi... Can any one help me about text justification("justification on both sides", or "double justification", where text lines are justified both on the left and on the right. That is, all lines except (usually) the last one have equal width; the method used to achieve that is typically to leave …

Member Avatar for a.baki
0
367
Member Avatar for neeludhiman

Hi friends, Can anyone please tell me how can I set echoing the characters off while I type them on the keyboard ? e.g; I have to input password in c code but that must not be displayed while typing. I am working in Linux. Thanks.

Member Avatar for Salem
0
92
Member Avatar for puppy

Hi, I'm trying to compare elements in two different vectors. I wrote this: if (a[i] = b[j]) same = true; and the compiler said this about the first line: assignment of read-only location What does "assignment of read-only location" mean? Thanks.

Member Avatar for puppy
0
102
Member Avatar for rookieinC++

Hi, I want to display integers 0-99 in randomize order. I can get the list on integers, but can not do in randomize order, I used rand and srand, but it’s not giving me unique numbers. Can anyone help me? -thanks Here is what I did so far… //* This …

Member Avatar for WolfPack
0
116
Member Avatar for shdjsm

I want to display a decimal number in a RichTextBox by using AppendText. How do I convert (if I have to) the decimal number to a string so that the AppendText function will work?

Member Avatar for WolfPack
0
28
Member Avatar for YoTaMiX

Hello to you all , I have a program who i want to copy one input.txt to a output.txt and for some reason it duplicates the string and it doest create a full duplicate . i am over this for a few hours now and i can figure it out. …

Member Avatar for YoTaMiX
0
119
Member Avatar for Jon Campbell

Does anyone know where I can get technical information about developing HTTP applications in C++. I'm not talking about CGI, I mean the classes or functions that allow you to directly communicate on the web via HTTP without a web server.

Member Avatar for eCharisma
0
77
Member Avatar for server_crash

I've got the following code: [code] template <typename T> int Histogram<T>::get_occurances(const T& obj) { map<T,int>::iterator find_occur = frequency.find(obj); if ( find_occur == this->frequency.end() ) { return 0; } return ( find_occur->second ); } [/code] The following line always gives me an error saying ';' expected before find_occur. map<T,int>::iterator find_occur = …

Member Avatar for server_crash
0
157
Member Avatar for chelo77

In this function i am having problems with pointers, syntax wise this would not work ex (fstats +1)++; In this function i use fstats floater array to hold float values, now as in the functions i use fstats[index value]++, now i'm just using pointers how would i do this?? i …

Member Avatar for Ancient Dragon
0
68
Member Avatar for chuckrac
Member Avatar for bg123

I'm trying to do a program that takes two vectors and computes the alternating sum, appends the vectors, checks whether two vectors have the same elements in some order, ignoring multiplicities, and removes duplicates. Any help would be appreciated. [CODE] #include <iostream> #include <vector> using namespace std; /* Functions on …

Member Avatar for Bench
0
178
Member Avatar for smazherhq

Hey guys, please help me, i m willing to implement SIP in my university project, the project is targetted to voice communication over network but the problem is, i m not an expert of VC but have sound programming knowledge in Actionscript and ASP.Net(VB.net) , so please guide me as …

Member Avatar for Ancient Dragon
0
82
Member Avatar for blademaster

Does anyone have any idea how I would code this I'm having some trouble coding it, I would appreciate it very much if you could provide a code in C++. Been trying ot figure out this for couple days but keep getting syntax errors for some reason. 1.) let the …

Member Avatar for blademaster
0
63
Member Avatar for YoTaMiX

Hello to you all , I am having a little trouble in C , working with Files. for some reason , it doesnt copy to output file the first letter and jumps over 3 digits of the last number in the file . whats wrong , i cant find it …

Member Avatar for Salem
0
295
Member Avatar for small_ticket

hi, I have a problem of concatenating 2 strings. 1 of the strings is defined in the code and the other one is asked from user. This small code must only concatenate these to strings but doesn't work... here is my code: [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct deneme …

Member Avatar for Narue
0
115
Member Avatar for jankom

Does anyone have ebook Data structures using C by Aaron M. Tenenbaum, Yedidyah Langsam, Moshe J. Augenstein. I am in big trouble, please help me. Thanks!

Member Avatar for Narue
0
32
Member Avatar for j1979c

[B][COLOR=DarkRed]Hello all, Just want to know if you guys can recommend me some good links where I can learn how to make a robot with keyboard interactivity using OpenGL GLUT. Thanks in advance... :cool: [/COLOR][/B]

Member Avatar for SpS
0
277
Member Avatar for gminis3

Im a beginner in C language and I have a problem with strings in array mostly. Question : User is required to input ID number, which consists of 7 characters. First 2 characters have to be Alphabets and the last 5 will be numbers. Example, AB12345 Task : Error checking …

Member Avatar for Lerner
0
194
Member Avatar for SharpOne

Hi, I've just started out learning C# / .NET at a fast rate. Then, I plan to look for company to get experience even if working for free. Any ideas or suggestions would be appreciated. Anyone know where I can gain experience when I learn enough without certification and only …

Member Avatar for Dani
0
63
Member Avatar for chelo77

Need help with a function that reads from a text file usins fscanf function. example say there is 20 stings that are 60 chars long on their own individual line. Does fscanf() read the whole text file or does it read only up to the carriage return. If it doesn't …

Member Avatar for Ancient Dragon
0
156
Member Avatar for SharpOne

Hi, I've just started out learning C# / .NET at a fast rate. Then, I plan to look for company to get experience even if working for free. Any ideas or suggestions would be appreciated. Anyone know where I can gain experience when I learn enough without certification and only …

0
41
Member Avatar for iamboredguy

I have a code in which I want to swap an element in a matrix with another. User inputs the row, column no of the elements to be swapped. But the code doesn't seem to work. Can somebody help? PS: The swapping starts in the snigleplayer() function. [CODE]#include <stdio.h> #include …

Member Avatar for iamboredguy
0
164
Member Avatar for ultirian

Ok so I have a couple of files within a C program diffrent files for diffrent things etc. What I want to know is, Can I open all the files at the beginning of the program (in main) and close it when the program exits or Should I write the …

Member Avatar for dwks
0
93
Member Avatar for tuannie

Hey everyone, Would someone please be kind enough to direct me to a good explainatory tutorial site or that can explain to me in how I would go about in answering this question. I don't know where to begin or start. What is the decimal value of the binary fraction …

Member Avatar for anupam_smart
0
213
Member Avatar for anupam_smart

Ok, :) For the conversion of binary to decimal, check it out: Let’s say we have to convert – 1010.1010 We solve this kind of problems into two parts as follows: (<LHS> . <RHS>) 1. First take the left hand side no. of the radix point( . ) which is …

0
140

The End.