49,761 Topics
| |
Hello everyone. I suppose I should start off with an introduction. I'm new to the whole C++ environment. I've done some scripting in perl, but just started with C++. I've picked up a few books and looked around on the web now for about 5 months. Finally came across this … | |
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 … | |
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 = … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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... | |
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 … | |
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 … | |
Do you have any idea what functions to use in standard library to replace these Win32 functions (GetPrivateProfileInt and GetPrivateProfileString)? Thanks! :) | |
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. | |
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 … | |
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 … | |
>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. | |
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 :) | |
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 … | |
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 … | |
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. | |
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 … | |
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 ? | |
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 … | |
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. … |
The End.