49,761 Topics

Member Avatar for
Member Avatar for w0rk4holic

how do i find all the interior angles of a concave polygon? here is a java applet that does the same :- [URL="http://www.mathopenref.com/polygoninteriorangles.html"]http://www.mathopenref.com/polygoninteriorangles.html[/URL] thanks

Member Avatar for w0rk4holic
0
438
Member Avatar for blackmagic01021

Hello, I have received a piece of code which compress the image direct from a camera to a encoded file using Rice algorithm. [CODE]void code_riceI(unsigned short int *pic, const int X, const int Y, const int n, char *fn) - *pic: pointer to a field of 16bit image (bayer encoded …

0
66
Member Avatar for priyankapandey

Hi all... can anyone explain how i can read from a config file and retrieve its value in a cpp file... I am writing down the cfg file... <APM> [APM_SAYHELLO] Formatter.Type = String Formatter.Val = AtlLogPlainTextFormatter Filter.Type = String Filter.Val = LEVEL_DDEBUG ComponentLevelFilter.Type = String ComponentLevelFilter.Val = true ComponentsEnabled.Type = …

Member Avatar for phoenix911
0
166
Member Avatar for Luks

Hallo! I am a running a program, using the OmniORB and I have included the include path in VC++ directory, but I get the following error: 1>c1xx : fatal error C1083: Cannot open source file: 'C:\Program Files\omniORB\4.1.4\\include': Permission denied I am the administrator on my PC and I have all …

Member Avatar for Luks
0
837
Member Avatar for aianne

Hi! I need help to my Turbo C program.. I need to create a program that will ask the "Starting X:", "Starting Y:", Ending X:", and Ending Y:" on different shapes.. this is how the program should be: [CODE]SQUARE: starting X: starting Y: ending X: ending Y: CIRCLE: Starting X: …

Member Avatar for Top9ne
0
1K
Member Avatar for pato wlmc
0
100
Member Avatar for crodriguez08

Hey there, well I'm working on this miniregister program that allows the user to add classes and insert students into those classes and whatnot, and I'm trying to get the average age of a class but I keep getting garbage for some reason, so if you could help me out …

Member Avatar for Salem
0
132
Member Avatar for NEMESISD

Hi, I've been trying to catch up on my class and pointer code (both are weak areas for me at the moment). I tried researching as much of the code as possible and getting some in-class help, **Edit Changed program, no longer gives build error**. This is designed to take …

Member Avatar for NEMESISD
0
246
Member Avatar for edicar

I Have the following skeleton c code, I want to be able to open the file for reading and write some of its contents to the screen. rather than being hard coded into the program, the name of the file to be opened and read will be given a command …

Member Avatar for Ancient Dragon
0
102
Member Avatar for micmagicfly

I have to write a multiple choice program and the following code is as far as i've gotten. It's coming back with invalid answers and I'm not sure where i'm doing it wrong. You’ve been asked to write a program to grade a multiple choice exam. The exam has 20 …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for stankit

I need to write a program that asks for the input of variables and one variable must be entered as "?", but I cannot get the program to use "?" at all. Also, I don't know how to create a driver function. Once I get the "?" input working, will …

Member Avatar for WaltP
0
313
Member Avatar for bushimports

Below is the code I have for doing this but something is really wrong . Filenames is the container I am using. Filename is a string. [CODE] void SaveFileName(){ ofstream out; out.open("..\\..\\Bush Breakout 3D\\Exe\\Level\\filenames.txt",ios::out | ios::app | ios::binary); // out.seekp(0,ios::end); int size = Filenames.size(); for(int i = 0;i < size;++i){ …

Member Avatar for Ancient Dragon
0
234
Member Avatar for mommie

Trying to finish my program for binomial coefficients. It compile but it keeps giving me 0 which is not correct. I think it may be a problem with my for loops but I can't figure it out. Here is the pseudocode: [CODE]/* pseudocode for Binomial Coefficients */ int binomial(int n, …

Member Avatar for VernonDozier
0
99
Member Avatar for MonteM

Hi There, I have a problem in my C++ code. i am trying to null terminate a vector of string, and i am not sure if i am on right track! when compiling my code there is no error, when running i get segmentation fault error, i am running off …

Member Avatar for Ancient Dragon
0
81
Member Avatar for micmagicfly

What is wrong with the following code segment? [CODE] const int limit = 100; int eprep[limit]; int examp[limit]; for (int index = 0; index <= limit - 1; index++) { eprep[index] = 0; examp[index] = 0; } if (eprep == examp) cout << "Equal"; [/CODE] At first I thought it …

Member Avatar for Banfa
0
93
Member Avatar for Violet_82

Hi there, could anybody tell me how to compile a program and run it using Visual C++ 2005? This is what I have done: -File, New, Project; -In the menu, I choose Win 32 and then Win 32Console application; then I give a name to the project and save that …

Member Avatar for Violet_82
0
163
Member Avatar for josolanes

Okay, I've been working on my own version of a Date class and I had it working before but thought I'd try to revise the code a little at a time, after reading "Effective C++: Third Edition" by Scott Meyers I'll start with the code as I'm not too sure …

Member Avatar for mitrmkar
0
133
Member Avatar for micmagicfly

What is the side effect in the following function? [CODE] int ExamPrep (int param1, int& param2) { if (param2 = param1) return param2; else if (param2 > param1) return param1; else return param1 * param2; } [/CODE] A side effect is defined as the result of an operator, expression, statement, …

Member Avatar for Spartan-S63
0
127
Member Avatar for ecompean

Hi, I have been looking in this forum about how can I do to send a Char buffer throw an specific ethernet interface. I have 2 NIC's, whith 2 ADSL connections (each NIC with an ADSL), and already have the code to send a String Message from a computer to …

Member Avatar for ecompean
0
159
Member Avatar for MTW1989

[CODE]include <cstdlib> #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; void printintromessage (); void getUserInput (char& Y); void printplayerinfo (const int& numofgamesinseries, const int& numofplayersonteam, int& i, int& j); int main(int argc, char *argv[]) { const int numofgamesinseries = 3; const int numofplayersonteam = 4; int i,j, score[numofgamesinseries][numofplayerson… char …

Member Avatar for MTW1989
0
195
Member Avatar for corby

hi in my drive file this is what my constructor looks like. im passing an array to it the constructor so that i can assign it to set[num]. what i want to know is what would this look like in the header file? drive-file: [CODE]IntegerSet::IntegerSet( int a[]) { for ( …

Member Avatar for Sodabread
0
205
Member Avatar for merse

It is possible to set more than one default arguments with the same type at the end of the parameter list? [CODE]int myfunc(int a, int, b, int c = 42, int d = 137); { ... }[/CODE] Now if i call myfunc(x1, x2, x3); than c=x3 and d=137? or d=x3, …

Member Avatar for Fbody
0
127
Member Avatar for MyrtleTurtle

This is my first question here. My latest assignment is to create a random walk program using a 2-d array. The program worked fine until I tried to put this code into a function: [CODE] for(int i = 0; i < 100; i++){ //reset field of flowers for each attempt …

Member Avatar for Fbody
0
231
Member Avatar for ntombazana

ive just started c++, n im not really good, even with the simple programs, couls someone help me with this? thanx Question 3 (10 marks) Concepts: • Static local variables Implement a function to track various details regarding a list of exam results. Download and extract prac6-q3.tar.gz and read the …

Member Avatar for emilo35
0
144
Member Avatar for sneha.harwani

this is an directshow webcam capture application in vc++ it captures video and audio from webcam to a file.but i am getting few errors like 1.ShowFilterPropertyPages identifier not found 2.GetAudioInputFilter identifier not found 3.GetVideoInputFilter identifier not found 4.SaveGraphFile identifier not found 5.pVideoRenderer undeclared identifier 6.error C2227: left of '->Release' must …

0
57
Member Avatar for mosespascal

I am a first year engineering student and i am very intresred in programming using c++ basically to use it in creating my own search engine.Please anyone to help in step by step as I have started learnig c++ language because I dont have prior kowledge in programming.

Member Avatar for Fbody
-1
872
Member Avatar for ueoptimum

[CODE]#include <stdio.h> #include <iostream> #include <conio.h> #define p printf #define s scanf float np, in, ir, pf, ad, md, re, rr,pfl,al; char bn[20],bc[5],rn[10], c[10]; main() { system("title Application No. 2"); system("color F4"); do { p("\nEnter your name please: "); s("%s", &bn[20]); p("\nEnter your code (A-C): "); s("%s", &bc[5]); p("\nEnter your …

Member Avatar for Pynolathgeen
0
253
Member Avatar for gamerprog

So, as a project for funzies, I decided to make a basic game where you run around the screen and get into fights when you encounter skeletons. However, I'm nowhere near the fighting parts yet. So far, the main character only appears when he moves (no idle animation), erases rocks …

Member Avatar for Pynolathgeen
0
327
Member Avatar for 2009_53

hi i need a program for a prime no "whether a no is prime or not'

Member Avatar for syd919
-2
90
Member Avatar for BrandonB

Hey all, I'm busy with an assignment for which a question, due to being too complicated, has been cancelled (i.e. no longer required to be done). The lecturers told us that if we still included this question in our assignment answers, they would give us the marks for it if …

Member Avatar for Fbody
1
566

The End.