49,760 Topics

Member Avatar for
Member Avatar for zandiago

Good day guys: The assignment is : Write a program that will generate an unknown (between 93 & 139) count of random numbers whose values fall between 147 and 206. Calculate the average to 2 decimal places and the standard deviation (3 decimal places). On the monitor, display only the …

Member Avatar for zandiago
0
186
Member Avatar for scsi_016

Hi! Would you anybody please do check my code given below and say why I am getting Debug Assertion Failed. I have used visual studio 6. But I think I have problems in my code. Please I do need urgent solution. Please help me. [code] #include <iostream.h> int INITIAL = …

Member Avatar for scsi_016
0
93
Member Avatar for johngw

I have a project in C++Builder. It invokes Application->MessageBox in several files. I recently upgraded to C++Builder 2007. The MessageBox calls that were already there seem to work OK, but those I have added since upgrading all give an AccessViolation at Run time. The Call Stack looks like this: :7c812a5b …

Member Avatar for johngw
0
117
Member Avatar for fiz

i was trying to do this program, but i find it difficult to solve it!! could you please help me? this is the question, write a C program that can find the root of equation using bisection method. given that f(a) is 1st point, f(b) is 2nd point amd f(m) …

Member Avatar for n.aggel
0
103
Member Avatar for Duki

Hey guys. I need to add a constructor that takes an int argument, sz, and an array of char of size sz. I then need the constructor to set the first sz members of the private dara array (myArray) to the sz members of the argument array of char. Here's …

Member Avatar for Dave Sinkula
0
88
Member Avatar for eranga262154

Hi all, I want to use a function to write some values to a text file. That function is called from the main function. Every time when I can that function from main, the perviously written value is overwrite. That's true, it wont work. So what I have done is …

Member Avatar for eranga262154
0
149
Member Avatar for sarah24

hi please i need some help..i know how to write a code for postfix expression evaluation by taking input from user,, but what if all the data is in text file,, pls help me modify my code , i have to read all the variables and values and also the …

Member Avatar for Lerner
0
230
Member Avatar for HoldenCfld

I have a project for class and I have an error coming up that I don't understand. I've written code the same way I always do, and haven't found that I've done something oddly, but I still get an uninitialized local variable warning. Here is my code: [code] include <iostream> …

Member Avatar for HoldenCfld
0
181
Member Avatar for leetari

If I were to write the code for some functions in a 2 dimensional linked list called get_data that finds the data stored in specified row and column and upon successful data retrieval, it returns true or else return false. And the given prototype is: [INLINECODE]template <class T> bool get_data(int …

Member Avatar for Narue
0
101
Member Avatar for icecube

Hi I am completely new to the programming and I got 0/10 on my last algorithm in pseudo code. I need to write an algorithm using pseudo code to score a tennis match. The algorithm takes two scores and the player who won the point as input and retuen the …

Member Avatar for icecube
0
93
Member Avatar for vvikramreddy

Hi :) , I have a question. How to create a ramp(ramp means randam) image and store it as file. int main( ) { // Input a file name string fileName; cout << "Specify file name: "; cin >> fileName; if (cin.fail()) { cerr << "Input error" << endl; return …

0
50
Member Avatar for asilter

i'm trying to read and understand a .cc (c++)file, i want to know what does ok_flag(false),time_range(false),prefix() do after ":" ? I did know that ":" was being used for class inheritance but what is ":" for in the bleow code? [code] ClassA::ClassA(const char *db) : ok_flag(false),time_range(false),prefix() { //.. Constructor statements …

Member Avatar for asilter
0
142
Member Avatar for zandiago

The following is my "inFile": [code]UEAALEUE RIXETOHI BACOZOEI DIUEAOAU ZIKOFIMO RESUZEAE IIJEHUMO EEQINOXO TAOEKIBI RUQICIGU ZIWAREWE HIDIFIFO MOIACALA MEJIEACO UAPEUUQU YISOZAZO KENIDONA EEVIYOHU SEJEXEYA OESEQUFU NUJECAUE RAKAWUME NISIMAKE MEPIBADO TAUELAZI IIEACINU IITOGIIE GIEIFEVU NIOUQELU IIVOFEHI TOKUCORU GUQOEOJE HOBUUIXA HOVEDAGO JEROMAFA TOLIOELU QIGOIIAA TEDEIUOA COZOLELA YOHUZUZA QUNACAKO POSAEIGA JECAMOPE VAKEKAPA LEJEVINE …

Member Avatar for zandiago
0
270
Member Avatar for jalkhane

can u help me how to make programs in c++ i am an IT student...i just want advance learning or to have knowledge about this subjects...pl..tnx morepower n godbless...

Member Avatar for n.aggel
0
46
Member Avatar for basimo

hi im new in c++ and i need some help , im doing a program that trace many shapes and i have a problem with this one %%%%%% % % %%%%%% this is just an example i hav to read the length and with and the character from the user …

Member Avatar for Salem
0
69
Member Avatar for didierdrogba

Hello, I am trying to migrate my application from an older unix box to the new Hp unix box with Itanium architecture.The problem I am facing is with the different versions of the aC++ compilers installed in the 2 boxes: older unix machine has : aC++ Version A.03.33 new machine …

Member Avatar for Salem
0
712
Member Avatar for jaepi

Do you have any idea what functions to use in standard library to replace these Win32 functions (GetPrivateProfileInt and GetPrivateProfileString)? Thanks! :)

Member Avatar for jaepi
0
173
Member Avatar for snoeflake

Hello, I need to make a x^2 curve in C++. It has to be horizontal to make it easier, not vertical. I have no idea where to start, can someone put me in the right direction? Thank you.

Member Avatar for snoeflake
0
124
Member Avatar for cowboys111

Hi, I am trying to write a program that tells the user the ammount of digits that are in a number for multiple numbers. I have it to the point where it will tell me the digits of the first number but it wil just write it an infinite number …

Member Avatar for cowboys111
0
92
Member Avatar for wendy2learn

Hello everyone, I'm working on a school work to create a simple text-based dungeon game. In this game, a player goes from one room to another room. Each room may have an item to be taken. Commands used are like: go south, go north, take sword, drop sword, look (to …

Member Avatar for ShawnCplus
0
620
Member Avatar for Narue

>How can i convert a number to binary in c++ If you stare at it really hard, things will start to blur and when you turn your head, it'll start to look like binary in your peripheral vision.

Member Avatar for WaltP
0
252
Member Avatar for jacques95

Hello im trying to learn c++ but cant find a program to use. I dont really know what to write on so can anybody tell me? thanks :)

Member Avatar for jacques95
0
138
Member Avatar for Bennymin

I have data in a txt file named Test2.txt that looks like this. 1a,1b,1c,1d,1e 2a,2b,2c,2d,2e 3a,3b,3c,3d,3e 4a,4b,4c,4d,4e 5a,5b,5c,5d,5e I want to put this data into a 2D array so that `dataArray[0][0]` will hold 1a, `dataArray[0][1]` will hold 1b, `dataArray[1][0]` will hold 2a, etc. However, the problem is that I need …

Member Avatar for Bennymin
0
133
Member Avatar for maverick786

The requirements for my program is to input a set of substrings into a vector and produce permutations/ combinations of the substrings. The resulting strings must be an integer multiple of the length of the inputted substrings. My program only produces permutations of each substring with no replicates. i.e I …

0
59
Member Avatar for annagraphicart

I have output from my program. I need it to be sent directly to Notepad or any other word processor. How can I do that? it's really important--thanks.

Member Avatar for Ancient Dragon
0
88
Member Avatar for de_ghost

hi , i'm writing a user define function for time i don't know is it correct.. need help here are my code [code] void Time(char buffer[256], time_t curtime , struct tm *loctime) { curtime = time (NULL); loctime = localtime (&curtime); fputs (asctime (loctime), stdout); strftime (buffer, 256, "Today is …

Member Avatar for Ancient Dragon
0
123
Member Avatar for jokerjokerer

How do i calculate the f^-n if: f(x)=3.2X(1-x) I need to draw in MFC the line drawed by the function...the draw i can handle but how do i calculate the inverse of the f ?

0
71
Member Avatar for jack223

Sorry~~, I don't know where to post this quetion. Can someboy help me with this question, plz.... Suppose someone designed a stack abstract data type in which the top function returned an access path (or pointer), rather than returning a copy of the top element. This is not true data …

Member Avatar for vijayan121
0
187
Member Avatar for henry.nc

Hi all, This code block is making sure the user is entering the correct character, either y/n. char response; cout<<"\nDo you want to continue? (y/n): "; cin>>response; cout<<endl; while(response != 'y' || response != 'n') { if (response == 'y' || response == 'n') break; cout<<response<<" is an invalid input. …

Member Avatar for henry.nc
0
75
Member Avatar for Zazabazulla

[code] #include <iostream> #include <list> #include <string> using namespace std; // prototype for function template printList template < typename T > void printList( const std::list< T > &listRef ); class NumberOfPersons { private: int numberOfPersons; public: NumberOfPersons(int person); int getNumberOfPersons(); }; NumberOfPersons::NumberOfPersons(int person) { numberOfPersons = person; } int NumberOfPersons::getNumberOfPersons() …

0
40

The End.