49,755 Topics
![]() | |
Hello everybody.. i have a project to do. its about lexical analysis there will be a regular expression like [(a|c)*b] . and this regular expression (RE) will be converted to nondeterministic finite automata(NFA) using Thompson's Construction and then the NFA will be converted to deterministic finite automata (DFA) using Subset … | |
can any1 help me with my cwk.. Mr Joe Brachialis, the proprietor of Joe's Gym wants to modernise his filing system. He currently keeps a card index system but he would like to have a computer application to maintain the records of his clients. The clients are offered two types … | |
hey Nanu can you pls send me that bank balance cpp. I really need it for my 12th class project.ppppppppllllllllllllllllllllllllsssssssssssssssss........................ | |
Hey all, I was wondering if any of you could help me out a little but with my functions which I'm writing for a program. I recently have noticed that I'm simply assuming the person using my program would be someone who also uses Bloodshed C++, so I think I've … | |
fin1 xx.txt -------------------- Paychecks 2500.00 Interest 100.00 fin2 xx.txt -------------------- Car_Insurance 250.00 Cell_Phone 50.00 Book 200.00 Student_Loans 180.00 Rent 950.00 fin3 xx.txt -------------------- Food 350.00 the output become --------------------- [CODE] Paychecks 2500.00 Car_Insurance 250.00 Food 350.00 Interest 100.00 Cell_Phone 50.00 Cell_Phone 50.00 Book 200.00 Student_Loans 180.00 Rent 950.00 [/CODE] ------------------------------ … | |
Hi, I have a text file that contains data seperated by a tab. I know that there are 26 columns but the number of rows are unknown b/c the file is huge. I need to traspose the data so I wrote the following script. I open the data file 26 … | |
Hi people, I am sort of very new to Visual C++. I got some query to ask you guys!! I am actually creating a satellite DLL for an application which has not been localized. The situation is: I need to create a new DLL with all the dialogs and string … | |
I have been given the following question in one of my classes, and i know it is probably extremely simple, i am just very thick. Can some one explain to me the steps to work out this problem. "Starting with the following initial values, specify the value of each variable … | |
Hi guys I'm trying to generate a radnom float number between 1.2 and 2.3 but when compile I get this error: cal.cpp: In function `int main()': cal.cpp:13: error: invalid operands of types `int' and `double' to binary `operator%' the code: [CODE] int main() { srand(time(NULL)); float num; num = rand() … | |
i am very new to c++ and have to create a program that will manage the sales of 40 different stores. I was told to use 2 (parralel) arrays(not a two dimensional array). I have no idea how to add the proper data i need becuase the file i am … | |
When it prints it does not print the numbers and names in ascending order like its suppose to do and i have no clue why it doesnt. This is for school and this is the book we are using in class: sixth edition-starting out with C++ early objects. We are … | |
15.5 Ten Carat 12:30 Sedg Yorkshire Evening Post Phil Rostron -12.64 5.5 Chip N Pin 1:35 Sedg News of the World Pegasus +2.10 5.5 Chip N Pin 1:35 Sedg Newcastle Journal Doug Moscrop -6.00 4 Serabad 1:35 Sedg Irish Post David Thorpe +0.50 3.85 Malt De Vergy 2:10 Sedg The … | |
Can any body tell me how to convert the following Fortran arrays to C++? CHARACTER ST1*10 CHARACTER ST*(*) Thank you in advance! | |
Good day. I would like some suggestions/recommendations as to what type of project i could do...so basically you guys get to assume the role of a professor...here it goes: Write a program that uses an array of structures. lt can be on any topic or subject you wish to choose. … | |
Hi, I am having trouble with skipping lines in a file and inputting the value it reads into variable inside the program. Data Inside the txt file i am trying to read: 00112 yourname 5874.87 176.07 3456.98 what i want to do is take the last 3 numbers and input … | |
hi..currently i am doing my final year project regarding pure tone audiometer. i had found the tone with different frequencies and amplitudes.. however, i dont know how to load in my program. Can anyone help me by teaching me how to load and play those tones by using visual c++ … | |
[code=c++] #include <cstdlib> #include <ctime> #include <iomanip> #include <iostream> using namespace std; // prototype and name space declaration int sqr(int); int cube(int); int fourthPower(int); int fifthPower(int); int sixthPower(int); bool printNum(); void show(int (*fn)(int), int); //------------------------------------------------------------------ //------------------------------------------------------------------ //------------------------------------------------------------------ void main() { char first[30], last[30]; cout << "Please Enter Your First Name: … | |
Hello All, I need some major help. I have to make a game for my final project. I decided to do Rock, paper, scissors. I need to add 2 arrays, repetition, user defined functions, and an option to quit. Like "type 3 to quit" Please help. Here is my code: … | |
Hi all My friend sent me a source file that wrote hello world to a text file (im a noob), I tried to modify it and give myself a challange to make a small database but it has gone horribly wrong. I dont know how to get it so when … | |
Hi, plz can u help me i want to sort my file (sort the second column) and i don't find any solution do u have some idea for me plz!! my file : [CODE] 1176890540542339 1 102 2005 4 1176890540575285 0 103 2005 4 1176890540575285 1 103 2005 4 1176890540608694 … | |
Can anybody help me with getting managed code to talk to unmanaged code? I'm okay coding via clr, but I don't have a clue what I'm doing when I try using the GUI interface. I'm using MS Visual C++ 2005 and I'm totally lost VB is much easier. I could … | |
![]() | i have written this program. it excecutes without any errors and even gives me the correct answer. the program is to tell whether the integer is odd or even. the problem is that i want a series of integers and passes them one at a time to function even. Sample … ![]() |
So I started on the final section of my C++ project and got almost done until I re-read the requirements and saw this: [B]Do not use arrays.[/B] *crap* Is there any other way to store multiple inputs than arrays? Basically the idea is to use a recursive function get a … | |
what does the following do? int array[6] = { 5, 3, 4, 17, 22, 19 }; int* ptr = array[0] *ptr = -1; thank you! | |
[code]#include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main( ) { ifstream fin; ofstream fout; fin.open("income.dat"); fout.open("total.dat"); char income; fin.get(income); while (! fin.eof()) { cout << income ; fin1.get (income) ; } double next, sum = 0; int count = 0; while (fin >> next ) { sum … | |
Hi there, I am currently working on a program that reads an inventory list from a file, sorts the list, and then determines the value of the inventory based on the price and the quantity on hand. After these calculations I need the program to write the output to a … | |
Hi all, I have a little question, my compiler is giving me the following error: error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'std::istream' see declaration of 'std::operator <<' Here is the main part of my project. [CODE] #include <iostream> … | |
hey guys, i have a problem with this program... [CODE] void findMax(int arr[], int n, int* pToMax) { if (n <= 0) return; // no items, no maximum! int max = arr[0]; pToMax = &arr[0]; for (int i = 1; i < n; i++) { if (arr[i] > max) { … | |
hey .. please i need help with this code when i write it and i start in case 3 .. i've error massage .. illegal case .. why is that ? [CODE][LIST=1] [*]#include <iostream> [*]#include <string> [*]using namespace std ; [*]class employee [*]{ [*]private: [*] string name; [*] int salary; … |
The End.