51,593 Topics

Member Avatar for
Member Avatar for maricor

PROBLEM ANALYSIS 1. To calculate how many liters per vehicle fueled and convert it to price. 2. To calculate the sales of the fuel from beginning to ending of one shift. 3. To calculate sales inventory. 4. All the consumer purchase diesel and unleaded must be recorded and save for …

Member Avatar for csurfer
-3
180
Member Avatar for babaijeet_123

Hey guys... I am working on a program which converts infix to postfix. My coversion to postfix works perfectly. I am using dynamic char array for data storage. The problem arrises while evaluation. I am wondering how to evaluate. I have been able to seperate out the terms by inserting …

Member Avatar for csurfer
0
86
Member Avatar for haven_u

iam trying to extract a individual character. for example, during run time the user enters 110111 as input. can any 1 help me with the code to extract these input and store them in an array as individual elements.

Member Avatar for haven_u
0
157
Member Avatar for Dewey1040

What i have to do is read a string into a vector, then cop that vector into an array of character pointers, then for each element in the vector i have to allocate a new character array andcopy the data from the vector element into that character array. Then finally …

Member Avatar for Zjarek
0
130
Member Avatar for needhelpe

hello! I am having problems with a palindrome program. I have to input an integer between 1 and 9. and then the output has to be: for example if I input 4: output: 1234321 if I input 5: output: 123454321 if 1 output: 1

Member Avatar for twomers
-2
391
Member Avatar for babaijeet_123

Header File: struct BitmapHeader { unsigned char type[2]; unsigned int size;// unsigned int reserved; unsigned int offset;// unsigned int header; unsigned int width;// unsigned int height;// unsigned short planes; unsigned short bits; unsigned int compression; unsigned int dataSize; unsigned int horizontalResolution; unsigned int verticalResolution; unsigned int colors; unsigned int importantColors; …

0
45
Member Avatar for mohamed07

Write the pseudocode for a modular computer program which will read a file of pumpkin weights, one number(in pounds) for each record. the program will print the weight of each pumpkin, count the number of pumpkins, determine the largest pumpkin of all pumpkin records processed, and compute the average weight …

Member Avatar for Grn Xtrm
-2
149
Member Avatar for lancevo3

Hey guys I am writing code that uses a dynamic casts then prints out some objects. What I am having trouble with is my code test as null when it isn't suppose to. Here is what I got and the dynamic cast code looks dead on to me. Maybe not …

Member Avatar for JasonHippy
0
100
Member Avatar for Tvirusx1

Hello I am new to DaniWeb and this is my first Thread. I am currently trying to develop a bot for the Game DarkOrbit. I used WPE Pro and I found out that I could controll the Spaceship by sending specific Packets (I have some Packet codes already). Well heres …

Member Avatar for Tvirusx1
0
171
Member Avatar for realchamp

Hello! I was wondering if it were possible for me to have a PHP script which would send a line of charactors to my C++ program. The C++ program needs to run all the time to recieve the inputs from PHP. Both the C++ program and my webserver is on …

Member Avatar for realchamp
0
224
Member Avatar for neithan

[CODE] unsigned longitud; cin >> longitud; vector<char> palabra(longitud); for (unsigned i = 0; i < palabra.size(); i++, letra += 1) { palabra[i].push_back ('a') << " "; }[/CODE] The error i get: [CODE]error: request for member `push_back' in `(&palabra)->std::vector<_Tp, _Alloc>::operator[] [with _Tp = char, _Alloc = std::allocator<char>](i)', which is of non-class …

Member Avatar for neithan
0
144
Member Avatar for lipun4u

I was trying to implement operator overloading in c-string in the following code [CODE=cpp]#include <cstring> #include <iostream> using namespace std; class string { char *st; int len; public: string():st(NULL), len(0) {} string(const char *s); string(const string & s); ~string(); friend string operator+(const string &s1, const string & s2); friend int …

Member Avatar for mrnutty
0
136
Member Avatar for DeadJustice

I'm having a small problem. I've created a binary tree that represents an n-ary tree using the left-child and right sibling syntax. I know that preorder on the binary tree gives you the same result as if the tree weren't binary. But, how do you change postorder and levelorder so …

Member Avatar for DeadJustice
0
184
Member Avatar for countrygirl1970

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 …

Member Avatar for countrygirl1970
0
188
Member Avatar for hla3mi

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 …

Member Avatar for hla3mi
0
141
Member Avatar for slaywee

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, …

Member Avatar for Phil++
-1
78
Member Avatar for slaywee

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

Member Avatar for Phil++
0
100
Member Avatar for Nitricity

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 …

Member Avatar for Nitricity
2
151
Member Avatar for gmauger

Hi All, I'd like to declare a static array in a header file. Is this possible? I assume there is a fairly simple solution to this, but I have not been able to find documentation on the correct syntax for this. Just to be abundantly clear, I'd like to do …

Member Avatar for gmauger
0
15K
Member Avatar for aejr

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!

Member Avatar for ShawnCplus
0
90
Member Avatar for lipun4u

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 …

Member Avatar for lipun4u
0
97
Member Avatar for sam d

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]

Member Avatar for Grn Xtrm
-2
36
Member Avatar for Phil++

Hey, I'm confused... Are Static references the same as Static variables? Thanks

Member Avatar for Phil++
0
72
Member Avatar for NervousWreck

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 …

Member Avatar for Nick Evan
0
94
Member Avatar for atch

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 …

Member Avatar for atch
0
114
Member Avatar for Triztian

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 …

Member Avatar for vmanes
0
116
Member Avatar for jt241

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 …

Member Avatar for dkalita
0
192
Member Avatar for Gaiety

Hi, i am presently working on C but there are some situations i need to know the assembly code of corresponding C program. if any can provide some general info of c - assembly it would be appreciated. i have a program called [CODE=C]int main() { printf("Hello,Plz Help\n"); return 0; …

Member Avatar for gerard4143
0
209
Member Avatar for royalbow

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.

0
48
Member Avatar for unsure

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!

Member Avatar for pspwxp fan
0
126
Member Avatar for merse

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 * …

Member Avatar for Grn Xtrm
0
172
Member Avatar for drjay1627

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 …

Member Avatar for dkalita
0
242
Member Avatar for Web_Sailor

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 …

Member Avatar for dkalita
0
146
Member Avatar for Lukezzz

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 …

Member Avatar for Lukezzz
0
294
Member Avatar for kyllle

Hi all, Going to begin learning C# and then ASP.NET and was wondering if anyone knew of any good websites teaching beginner level C# or if anyone has any advice for me before I begin my mission! Thanks in advance! Kyle

Member Avatar for avirag
0
126
Member Avatar for dabeechman

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 …

Member Avatar for dabeechman
0
88
Member Avatar for moneeka

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. …

0
61
Member Avatar for jqorso

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!

Member Avatar for K0ns3rv
0
109
Member Avatar for PennKen2009

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 …

Member Avatar for zati
0
760
Member Avatar for ddashtrois

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 …

Member Avatar for mrnutty
0
411
Member Avatar for LaurenR

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 …

Member Avatar for VernonDozier
0
514
Member Avatar for swolll

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. …

Member Avatar for Zjarek
0
178
Member Avatar for jdrei

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 …

Member Avatar for VernonDozier
0
2K
Member Avatar for hopeful man

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 …

Member Avatar for mrnutty
0
108
Member Avatar for saurabh gulati

how i could make calculator inc++ that do calculation in regular interval like it do calculation as same as the calculator

Member Avatar for Grn Xtrm
0
68
Member Avatar for PDB1982

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 …

Member Avatar for PDB1982
0
102
Member Avatar for Phil++

What are instance variables please? Also, is this a good explanation for Encapsulation: Encapsulation or information hiding is all about hiding the details of the implementation of the interface. Encapsulation is used to prevent users from viewing the inner workings of the interface. A real life example of Encapsulation is …

Member Avatar for Tom Gunn
0
105
Member Avatar for surfer2009

i am new in programming . i have a clock code. but want to modify it. when user press "0" it increment in time by 5min and when press "1" increment time by 10 min _______________ [CODE]//The complete program listing of the program that defines //and uses the class clockType …

Member Avatar for Kashaku
0
1K
Member Avatar for Phil++

Hey, I'm just wondering if it's possible to run an if statement through a class? The thing is, I wanna store users details and then when you search for a user, i.e "Phill" it returns all the information on that user. I'm using something like: [CODE] c1.GetName(); [/CODE] So something …

Member Avatar for Nick Evan
0
93
Member Avatar for neithan

[ICODE] * Don't use system("pause") to pause your program if possible. Use getchar( ) if you are using C and cin.get( ) if you are using C++. [/ICODE] Why is that? A reasonable explanations for those tips would help to learn.

Member Avatar for marco93
0
674

The End.