49,761 Topics
| |
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 | |
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 … | |
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 = … | |
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 … | |
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: … | |
Forget it, i just solved it, jeje, sorry. Thanks, and god bless you | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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){ … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
[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 … | |
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 ( … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. | |
[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 … | |
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 … | |
| |
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 … |
The End.