49,761 Topics
| |
Hello everyone, I am having a slight problem in my function "startGame". My code works on Bloodshed and the code does compile. I am trying to refine the part on making sure that only a number gets input and not a letter or any other key gets input. I have … | |
suppose that each of the four edges of a thin metal plate is maintained at a constant temperature and that we wish to detrmine the steady state temperature at each interior point . to do this we divide the plate to squares the corners of which are called nodes. and … | |
Develop an Inventory Control System. The database of inventory should keep the information of Items in the file with flowing components, a. Item ID b. Item Category c. Item Name d. Last Date of Purchase e. Cost Per Unit f. Number of Items in hand Include in your project add_new_Item, … | |
Develop an Employee Database System. The database of Employee should keep the information of Employees in the file with flowing components, a. Employee ID b. Designation c. Employee Name d. Grad e. Date of Employment f. Basic Pay g. Allowances Include in your project add_new_Employee, add_allowance, make_deduction and show_employee_detail functions | |
Hi ive been experimenting with basic calculations and using scanf to be able to enter an integer, if i give numb_1 a value it will divide and calculate the remainder fine but i cant get it to work by being able to enter a number, it just sits on the … | |
Please help me, The question is: "Write a program to accomadate 10 integers. Print the variables at position 3,5 and 2 respectively." thank you! | |
Look at the following code... [CODE=cpp]#include <iostream> #include <cstring> using namespace std; class string { char *p; int len; public: string(char *); void show() { cout<<p<<endl; } }; string :: string(char *p) { len = strlen(p); this.p = new char[len+1]; strcpy(this.p, p); } int main() { string s1, s2; char … | |
please help me wright this program[code]use for loop to construct a program that displays a pyramid of x it should be 20 lines high[/code] | |
Hey, I'm confused... Are Static references the same as Static variables? Thanks | |
I am writing a fake banking program. In the function below I declare a dynamic array. [CODE]void trArr(int transactions) { int n; string* accUse = new string[transactions]; return; }[/CODE] I try to access the array in a later function but I get the error "not declared at this scope. I … | |
Hi everyone, I'm trying to compare list iterators: [code=c++] list<int> l; list<int>::iterator lb = l.begin(); list<int>::iterator le = l.end(); if (lb < le) //here I'm getting error - no operator match these operands: { //do something } [/code] And when I change this that instead of list I have vector … | |
Hi I think this is my first post, so here it goes: [B]Overview:[/B] [INDENT] This program declares global bidimensional array of 30 rows and 5 columns (not counting 0 in the rows) of floating type to save information of students, table is as follows: ID Partial1 Partial2 Partial3 Partial4 Average … | |
Well I'm relatively new to the forums and to C++. I'd like to overload + and = to add two matrices by being able to use Z=X+Y format. Header file: [CODE] #ifndef HOMEWORK1_H #define HOMEWORK1_H class Matrix{ public: double **element; Matrix(int=3,int=3); ~Matrix(); double getelement(int,int); void setelement(int, int,double); Matrix & operator+(const … | |
I'm new to visual studio 2008. I'm trying to make another form be called by the first form by a button. Where and how do I create an instance of the 2nd form? I'm working with a CLR (Windows Forms Application). Please and thank you. | |
I am taking an intro to cs class. I have written a simple program but dont know if it is correct. please help me. thank you! | |
Hi! We can declare not just variables but functions or pointer to functions also in the main function like this: double my_f(double); double (*my_fp)(double); But what can we do with this? For example how can we give a value for my_f or my_fp? I try lots of variants with * … | |
can someone please explain to me how read write work in sock programming. my assignment is to run a server and client. the client ask the server "who are you?" and the server replies with the servers name and date and time. i cannot post my whole code here as … | |
Hi I have written a program in c++ and I feel that it is a bit slow for very large datasets like > 1GB. Well I am not that confident in char* since I have just started coding in c++. So can anybody help me to make it more efficient … | |
I have a project that consist of 10 forms. When I compile this project I get this compile error. [I]1>Form6.obj : error LNK2011: precompiled object not linked in; image may not run 1>LINK : fatal error LNK1104: cannot open file '.\Debug\Form6.obj'[/I] In the debugfolder I can find these anyway but … | |
I am new to programming, but I am trying to create two arrays, arrX and arrY. Then use scanf to insert intialnum amount of elements into each array. That is the easy part. Where I am having trouble is when I try to pull the first element in each array … | |
Design Problem 1 1. Develop sigma and pie bonding and anti bonding molecular orbitals of 2s and 2p Using C or C++ programming language. Expected Outcome: I. Shape of molecular orbitals must be known in depth. II. Proper assignment of bonding and anti bonding molecular orbitals should be stated. III. … | |
Hi, I have some experience with C++ and FORTRAN. I would like to write software to help me visualize shapes in a GUI-based program. Where is a good place to start? Books, websites, etc that would help me get an idea of what is needed would be good. Thanks! | |
I'm new at C++ and I'm trying to right a program that will generate random numbers from a range of 1-19. Here's how it should work, the program will generate 5 random numbers all ranged 1-19 and in random order. Once it chooses the first number, that number used for … | |
i'm a complete beginner to C++. its my fourth week learning it. we have this for a homework assignment: "This program outputs all prime numbers between 3 and 100 using a doubly-nested loop." first off, i've done a lot of research online and from what i've seen the most efficient … | |
I need to write a function splitMid that will split a linked list into two sublists of equal size. I have written most of the functions that I need to achieve this and some other things, but I am having trouble getting started on this function. Can anyone point me … | |
I need to compute the number of nonnegative numbers from an input file. Everything works fine (for good input files and bad input files) except when there is a no data file (with nothing in it). Then, the number of nonneg numbers reads 1, even though it should be 0. … | |
i'm in a beginning c++ class and we have to write a program that finds all primes between 2 and 100 within a doubly nested loop. i feel like i'm really close but i think i've been doing it too long and can't figure out what i'm doing wrong...... help … | |
Hi everybody, i am a new in c++ programming ,, and i am trying to answer this question to get the required result, but i could't till now .. i need your help in order to be able to answer this question correctly. the question is : write a program … | |
how i could make calculator inc++ that do calculation in regular interval like it do calculation as same as the calculator | |
I am a beginner level C++ student, so please forgive me if I use the wrong terminology here....I need to create a program that takes a set of integers from a source file, tells whether the numbers are odd or even integers, and then adds the odds and the evens … |
The End.