49,761 Topics
| |
For the past 12 years I've lived in mortal, cowering, abject fear of one particular feature of the Visual Studio 6 C/C++ IDE, and that is the 'Find' feature on the 'Edit' menu where you can fill in the textbox to find a symbol in your file, and then click … | |
Hello,i want to implement a program that verify what mail I get. Anybody can tell me if there is a library to work with mail,or where to get started, Thanx in advance | |
Hi, Im trying to do a screen-flashing application, that flashes the screen according to the music(which will be frequencies, such as healing frequencies, etc...). I already made the player and know how will I make the screen flash, but I need to make the screen flash super fast according to … | |
[B]Code:[/B] [CODE]class statistic{ double * store; int noOfData; public: statistic(double* s,int sz); statistic(const statistic &); ~statistic(); double average() const; int size() const; const double* data() const; }; statistic::statistic (double * s , int sz):noOfData(sz){ store=new double[noOfData]; for (int i=0;i<noOfData;i++) store[i]=s[i]; } [/CODE] Definition and test code of the class.. Can … | |
[CODE]#include <iostream> using namespace std; int main() { double firstNo;// first number is stored here double secondNo; double result;//variable for result when first and second number are operated upon double operation;// place to store the user's inputed operation // asks the user to choose the first number cout<< "Enter in … | |
Hi, I'm mechanical engineering graduate student in Portugal. I'm familiarized with c++ but I've been having problems with the windows forms. I'm trying to make a form that would compile diferent data with inviscid fluid flow formulas but I've got one major problem. I've done hundreds of google searches and … | |
Hello everyone. I am experienceing some rather strange behaviour regarding the instantiation of an object. It's a templated custom array type object, something like this. [CODE] template <class T> class Array { public: // Construction/destruction. Array( void ); Array( unsigned int size ); Array( const Array<T> &array ); ~Array( void … | |
Can anyone help me on how to display my infix notation with parentheses? 4+3 should be displayed as (4+3) also, my code only works for simple expressions like 4+0, it can translate the infix,prefix,and postfix correctly, but when the expression grows, for some reason, its outputting the incorrect notations for … | |
I wrote a very simple vector class to call level 1 BLAS through MKL, [CODE] #include<mkl.h> #include<stdexcept> #ifndef _x_matrix #define _x_matrix class xVec{ private: double *v; int n; public: xVec():n(0),v(0){} xVec(int a):n(a),v(new double[n]){} xVec(int a, double c){ n=a; v=new double[n]; for(int i=0; i<n; ++i) v[i]=c; } ~xVec(){if(v) delete[]v;} double &operator()(int … | |
Good afternoon, I've got an assignement where i need to set up a parent class and a child class with .cpp files. When I try to call the a function in the child class i get and undefined reference error. I'm able to initialize this class using the default constructor … | |
sir i want to multiply two matrix 3-by-3 using recursion function please send me source code on mail address <<snip>> thanking you | |
Hi you can customize it the problem is that when i put 5 it say to low then when i put 6 it say to high or any numbers pls help me.. [CODE] #include <iostream> #include <cstdlib> #include <ctime> #include <conio.h> #include <cmath> using namespace std; char ans; int main() … | |
[CODE]//************************************************************************************ // // This program keeps track of speakers' bureau. // It displays a menu, where the user can add info, // view the info of another speaker that's already in there, // and etc. //************************************************************************************* #include "stdafx.h" #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; //************************************************************************************** // function … | |
I can't seem to figure out whats wrong with my logic for the is it a function or not area. I used the following given test with the correct output: f(1) = 1 f(2) = 4 f(3) = 3 f(4) = 1 f(5) = 1 This function is a valid … | |
The program initially asks the user to insert the secret sentence and the encryption code (an integer number in the range 1-100). Then, the program calls a user-defined function void encrypter (char *, int) that accepts the string pointer and the encryption code. The encryption algorithm is based on the … | |
I'm having a problem getting my buffer(string) to print out everything that the user inputs. When I run my code the buffer only prints out the last thing that is inputted. I've tried just about everything and I really do not know what else to do. I'm new to c++ … | |
[COLOR="Green"] I am using Lotus C++ API to create DLL's. I use VB6 and Lotus8.5.0 for programming. I am able to create EXE files & am able to execute and see the results. I then created a DLL,used that DLL successfully in LotusScript. But when I tried to use the … | |
i'm trying to count the number of people (i called speakers) that are on the list. But, in order to do that, I have to know that there is actually some name is written in that person's spot. In other words, I want the "for" loop to skip/don't count the … | |
This question was rolled out in our data structures Mid Term or test, i can't remember which. I'm pretty sure it was the mid term. The actual question if I remember correctly was something like. 'Is C++ the King of all Languages, it will always be around and is the … | |
Hey all I have this program that is supposed to output a stickfigure. I got this from my game programming elective class (which I now regret enrolling to) and the professor told us to work on it in a way that the class called "example" with the function render should … | |
[CODE]#include <iostream> using namespace std; int main() { int numbers; numbers = 2; while (numbers <= 1000); { if (numbers % 2 ==0){cout<< numbers;}; if (numbers % 3 ==0){cout<< numbers;}; if (numbers % 4 ==0){cout<< numbers;}; if (numbers % 5 ==0){cout<< numbers;}; if (numbers % 6 ==0){cout<< numbers;}; if (numbers … | |
Hi. I am creating a program for class that can be used to gather statisctical data about the number of movies college students watch in a certain time frame. I have to find the average, median and mode and show this in the output. I am able to get my … | |
Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; … | |
Hey guys, wasn't sure where to post this but i posted it in both categories. Converting the for loop is probably the most confusing for me especially the arrays. Hope you guys can help me out, thanks. [CODE] #include <iostream> using namespace std; int main() { int Function[10][2] = {0}; … | |
hello, i have a code of the game called 'TRON' in c++ an example of the same game in c++ here [url]http://www.mediafire.com/?vnkslb3x0qbd3q0[/url] ((i tried to upload it here but it says invalid every time)) i can't understand some partss of the code so please geys help me understanding the code … | |
Good afternoon, Does anyone know whether it's possible to have more than one overloaded ostream in a class? This is for a time class that i've created however it ouputs data like this 12:12:12:AM, i'd like to use the same ostream operator to output military time 14:12:12, however when I … | |
Hi all, I am currently working analysising silicon pixel detectors for the LHC at my university. One thing i have to do is to find clusters of signal in a silicon pixel detector. I have directory of macros which handles the data and getting it ready, not important. My goals … | |
Sorry for the newbie question, but what are header files? What should they contain? Just classes and definitions? | |
I want to draw three circles within a pentagon in C++. I also want to give random movement to one of the circles within pentagon. Can anyone tell me the code alongwith the required header files for drawing this. regards |
The End.