19,876 Topics

Member Avatar for
Member Avatar for djbsabkcb

Need help with the C++ programming. I am trying to compute the count of values, the average, and the standard deviation of the input given by user. My output is correct except for the standard deviation. My code is below: Thanks [code]#include <iostream> #include <string> #include <cmath> using namespace std; …

Member Avatar for djbsabkcb
1
504
Member Avatar for djbsabkcb

Below is my code for a class car efficiency program but I have some errors with the get_gas function. if you can help would appreciate it. [code] #include <iostream> #include <cmath> #include <cstdlib> using namespace std; class Car { public: Car(); Car(double); ~Car(); void add_gas(double); double get_gas(double); void drive(double); private: …

Member Avatar for djbsabkcb
0
169
Member Avatar for shre86

Hey Anyone has any idea how to convert from any data type to strings.. so that i may use the winsock send functions for sending data.. as only strings can be sent in that.. i need to send structures .. so have to convert them..

Member Avatar for Dave Sinkula
0
135
Member Avatar for krishnans.blr

[B]Hi My name is krishnan I am working no a project called autodiscovery so I need a C code to access remote machine so that I can find out the system informatinon of the remote machine[/B]

Member Avatar for shre86
0
56
Member Avatar for rkarimi

Hi, Assume that we want to define a set of template function separately & then use them in other files, by calling their header. 1. Shoud we put function body (both define & declare) in header file as well. My current code works this way. But when I put those …

Member Avatar for rkarimi
0
150
Member Avatar for Naseer

Use the CPU trace generator to generate jobs (or process) traces and simulate the following algorithms 1. Shortest remaining time next (aka Shortest Job First with pre-emption, aka SJF, shortest next burst time). 2. Round-Robin with user set-able time quantum (the time quantum should be a userset-able command line parameter. …

Member Avatar for alc6379
0
215
Member Avatar for yaan

I've used linked lists before. Does anybody have a resource or url address on how to write a linked stack? I need to create a stack with a menu using int and char variables. Thanks.

Member Avatar for shre86
0
154
Member Avatar for Yoshidex

Hi, I'm new to the forum and need some help writing my first 'complicated' program. I have trouble writing to an existing file. I want to write to an Excel file I already created and edited exclusively for the program I wrote, but when I write the data it destroys …

Member Avatar for Yoshidex
0
343
Member Avatar for M Tritt

I'm trying to put together a tic tac toe game for a c++ class. Requirements are that it have two classes - gameboard and gamepiece. The gameboard I've pretty much taken care of, but I'm confused on how to set up the gamepiece class. Here's the requirements as given to …

Member Avatar for M Tritt
0
1K
Member Avatar for Mr.

Hello, I want to create a very simple program to test threading. Example [code] int main () { char option = 'a'; int run = 1; while ( option != 'x' ) { option = getch (); /* some code that changes run */ /* thread ? */ } } …

Member Avatar for Mr.
0
91
Member Avatar for robgxxx

Anybody out there with example source code that might demonstrate the keeping of the program button off of the taskbar with "CreateWindowEx" or the alternative method of creating a hidden window and making it the owner of the primary window. :?:

0
67
Member Avatar for Raven11

Hello, I've been working on a security based software from which I got the idea from another program. Here are the details: Upon load of the software a 4 digit string is given (I.E: 1kfh). Then you're prompt for a password. To find your password you would use a Memory …

Member Avatar for oboler
0
93
Member Avatar for dile

I need to figure out a way to check for conflicts in a Number Puzzle. This is how the number puzzle works.... It has a [U]1D array of size 81[/U]. It is filled with integers from 1-9. When the user enters a number i need to make sure it's valid …

Member Avatar for oboler
0
163
Member Avatar for shre86

hey i would like to know if there is anyway i can send an object or a structure directly using any winsock2 function.. its mighty difficult to convert to a string and send as required by WSASend and send functions..

Member Avatar for Dave Sinkula
0
113
Member Avatar for dello

Hi all.. wonder if anyone can guide me. I am writing a program which reads values from a text file, the text file includes both characters and float values, below is a sample of the data.. [QUOTE]London 7.24 8.15 6.45 3.24 3.66 2.45 4.71 6.78 6.45 8.61 7.45 6.55[/QUOTE] The …

Member Avatar for BruceWilson512
0
263
Member Avatar for NejiHyuuga

I have a program that I know I need a string to use. Problem is in class we did a program with strings in which we input one name like "Dan" and another name like "dave" and it would say which is bigger, how many characters are in each ect. …

Member Avatar for Dogtree
0
155
Member Avatar for yaan

I've gotten feedback from my instructor to modify my code because it contains poor design techniques. I need to add a " return " after each function without it going back to " main " and also to avoid the use of global headers. I've tried to modify it several …

Member Avatar for BruceWilson512
0
181
Member Avatar for johnson9000

Which method below requires less processor time? [CODE]class obj{ public: void DoSomeThing(){}; }; int main() { obj *p = new obj; p->DoSomeThing(); // OR obj theObj; theObj.DoSomeThing(); return 0; } [/CODE] Thanks for your help. W.Johnson

Member Avatar for johnson9000
0
149
Member Avatar for amna zafar

hi i have a project to complete within one month which is of the graphical representation of tower of hanio ............. i-e that all the movements of the plates should be shown.........plzzzzzzzzzzzzzzz help me out i need ur help desperately bye

Member Avatar for Dave Sinkula
0
71
Member Avatar for oRg

Hi, I'm fairly new to C++. I've taken a class on it at a university but it really only went through the basic I/O, data structures, classes, and pointers. It wasn't very algorithm oriented. It was all very basic. Here's the problem a friend of mine needed help with his …

Member Avatar for oRg
0
444
Member Avatar for Mahen

Am writing a program to find the binary directory of any executable, so I use FindExecutable() but sometimes it does not find the executable and i want the program to know that the Executable has not been found but i don't know how, please help. [code]#include <windows.h> #include <iostream.h> #include …

Member Avatar for Mahen
0
546
Member Avatar for harshchandra

I was tring to write some data in a file from the singly linked list and also read the data from that and append it to singly linked list in the begening of the program.For this i had written two seperate functions . 1. writetofile 2. readfromfile for appending the …

Member Avatar for harshchandra
0
150
Member Avatar for biqa

Hello People I want to write a c program to run external programs. For example, i need the c program to open internet explorer or open and run another program writen in java (or another programming language)? Can any body give me any tips of how to go about this? …

Member Avatar for frrossk
0
149
Member Avatar for Judas

Hello Im hoping someone could help me with this code, i have used comment notations to show problem areas. If anyone has suggestions on how to improve this code or see's something i have used that may be wrong(mixing the wrong class or code) please reply. [code]#include <fstream> #include <iostream> …

0
70
Member Avatar for gpta_varun

Hi All Can anyone plz suggest me a good site with C/C++ questions . I need them for an interview / test Thnx Varun

Member Avatar for indianscorpion2
0
155
Member Avatar for shre86

I am writing a windows program.. in that i ve to do one job and the other only if the user tells me to do it and then i ll interuppt the first one.. if i create a messagebox for one i.e the user input it waits till what the …

0
74
Member Avatar for arvind

I'm getting to know about the various graphics functions in C. I'm planning to create a text editor using C(turbo C).I came across a function installuserfonts() in the graphics.h header file.but the function uses only *.chr font types where as the type of fonts i have is *.ttf.Is there any …

0
40
Member Avatar for WolfPack

Hello, I am developing an application in Win32, ( No MFC at all ). It is an MDI application, and I am using Keyboard accelerators. The Keys that I have assigned for accelerators are working properly, but when I press something that is not an accelerator, such as Ctrl + …

Member Avatar for WolfPack
0
274
Member Avatar for simplex85

I am doind a lab for my class and the guidlines is suppoes to consist of an input file with student names and 10 quiz grades. The output file is suppose to produce the same format as the input file but one extra column, and that extra column is suppose …

Member Avatar for kreitcher
0
358
Member Avatar for numerouno543

Hello..... I've written this simple C program to return the IP of a hostname ... this program compiles perfectly as well the Output is built...however, on executing the output, the Output crashes..... Can someone tell me what's the problem? Regards. [code]#include <stdio.h> #include <stdlib.h> #include <time.h> #include <windows.h> #include <winsock.h> …

Member Avatar for numerouno543
0
328
Member Avatar for skprasat

Assume that i have a file called "test.txt". can u help me how to store the previously modified date and time.. so tht when i modified that file again, say after 2 days or after 1 hr, i need to compare the last two modified date and time. regards prasad

0
103
Member Avatar for skprasat

Hi, Does anyone know how to check for a file access date and time? The function returns the modified date and time and i need something that compares the accessed date time to the current date and time. regards prasad....

Member Avatar for skprasat
0
4K
Member Avatar for komalac

Hi All, Can any on guide me in the logic / algorithm to implement 2 stacks using one array and a queue using 2 stacks. I need this very urgently. Thanks in advance. Komala

Member Avatar for Dave Sinkula
-1
245
Member Avatar for limu

i am problem in codeing in 3 program in Visual. they are 1. "For a given number of people, write a program to simulate Joseph's problem. (You must use circular queue maintained using double link list.)" 2. Write a program to sort a set of points using Merge sort of …

Member Avatar for Dave Sinkula
0
64
Member Avatar for noman13

Hi guys, I need help with this code, I am trying to figure out how can I add semaphores to this code in order to have just one at a time accessing the shared memory. Thanks, [code]/* elevator.c The elevator process starts a people process which runs independently, except that …

0
116
Member Avatar for petethepop

I'm not a c-programmer, rather a guy who inherited a system that previously had an I/Q demodulation in a gate array, need to move it into c-code. I have 1024 sample buffer that was synchronously digitized with x4 clock, so samples are alternately +I, +Q, -I, -Q,....... Need a snippet …

Member Avatar for petethepop
0
234
Member Avatar for shre86

I am trying to develop a basic communicating link using windows sockets in visual studio.net2003... but it is showing an lnk2001 error.. is it necessary that have to get the platform SDK and install it before i can use winsock2.h????

Member Avatar for shre86
0
177
Member Avatar for khaagner

Hi, Inherited problem in that a programmer has left for better pastures overseas and that without trace - no source code found just a working prototype that actually needs very little modification. The application connects to our website and downloads information to the PC's SCREEN. Need however for this information …

0
72
Member Avatar for cuperman

Can any one tell me how to disable and enable ctrl c and ctrl z interrupts in a c program? also what is the use of sscanf and its syntax?

Member Avatar for Dave Sinkula
0
87
Member Avatar for sadeolah

pls i reallly need help with this problem.i want to convert binary numbers e.g 000000101010 to decimal values(30,40,50) in C language. i know how to convert it manually but am finding it difficult writing a program for it.thanks sadeolah

Member Avatar for Dave Sinkula
0
93
Member Avatar for Robert G

I have a project creating a cartesian point, then a line segment, then a line comparison. Each has its own class .h and .cpp file. Main just starts the program to CartesianPoint test, in the point class. My question is after I create an instance of the point class and …

Member Avatar for Dave Sinkula
0
83
Member Avatar for rkarimi

I'm using a set of classes with lots of *.h files. These files are located in a separate directory & I do not want to copy them to my own folder. I can add the path of the *.h file I use in the #include. However if that *.h file …

Member Avatar for Dave Sinkula
0
89
Member Avatar for hemanth.balaji

How do you CENTER & BOLD the labels of the columns (i.e headings) using ListView. I did not understand the below found in MSDN.. /* If a column is added to a list-view control with index 0 (the leftmost column) and with LVCFMT_RIGHT or LVCFMT_CENTER specified, the text is not …

Member Avatar for WolfPack
0
133
Member Avatar for jr_coder

hello I have a question: how long it takes to create a win32 dos/cmd bash shell overlay program. I need to create that one. but i have no enough experience. please any suggestions will be appreciated. thanks

Member Avatar for darklordsatan
0
156
Member Avatar for evilsilver

i have this for loop in my program that i am creating but it is counting further than it is supposed to and trying to call to an unknown variable thus creating an error. here is the code that kicks back the error. [code] for (i = 1; i <= …

Member Avatar for Dave Sinkula
0
82
Member Avatar for Merrissey

Lets say I have the following as a string: 097102099105110 What I want to do is find the ascii character represented by every set of 3 digits. So the ascii character of 97, then 102, 99, 105 and then 110. Could anybody point me in the right direction here?

Member Avatar for Dave Sinkula
0
242
Member Avatar for Zackery

Ok so I have this program and Im using 2 functions that both use "buffer" to move the images to the front screen. Well I used create_bitmap(800,600) to make the buffer, but im using that in both functions so, they both are diffrent buffers! So when I run the program …

Member Avatar for Dave Sinkula
0
136
Member Avatar for elek

Hi, I have a program and i cant seem to get it to work. I need to write a program that can take up to 50 strings and then reverse them... The actual question is: Write a program that will prompt the user for two strings of characters(each string has …

Member Avatar for elek
0
183
Member Avatar for yonoid

I have a problem with some controls, in order to make the aplication more attractive i put a Bitmap in the back, but then i have a big problem, 'cause the control aren't transparent so they have an awfull gray rectangle. Coul some one can tell me how can i …

0
83
Member Avatar for sameersbn

hello everybody! i am developing a client/server application for streaming audio in linux.. i have already implemented the mp3 player and buffering... could anybody tell me how to create threads so that the child process continues to receive the audio buffer packets while the decoding of the received buffer is …

Member Avatar for Dogtree
0
72

The End.