49,756 Topics

Member Avatar for
Member Avatar for jenna_baby

instructions [CODE] Skills needed: while loop, logical expressions, nested if-else statements Your assignment for MP3 is to calculate the monthly bill for a cell phone user given the following rate structure. Note that this is a simpler structure than in real life – you do NOT have to be concerned …

Member Avatar for ithelp
1
89
Member Avatar for Dj Saturn

Hello, I'm new to these forums. So I know how to program from I/O operations to making your own headers files and.. i was wondering if anyone could point me in the direction of beginner programming tutorials for windows applications? i want to implement the stuff i know to actual …

Member Avatar for Ancient Dragon
0
101
Member Avatar for BBallAsh23

Hello DaniWeb users, I hope one of you can assist me. I did search and found nothing to help me. So below is my code and I am hoping that someone can please tell me what on earth I am forgetting. I have been playing with this for quite some …

Member Avatar for BBallAsh23
0
124
Member Avatar for amanda4help

I have a homework assignment to create a program to calculate the full date of Easter Sunday between the years 1900 and 2600. The following is the error I receive: 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::basic_istream<_Elem,_Traits>' My …

Member Avatar for zandiago
0
494
Member Avatar for chocl8drop

I'm trying to write a solution to the 8 queens problem. I am trying to start with a empty board. I keep getting the following error "error C2664: 'SetQueen' : cannot convert parameter 1 from 'int' to 'int [][8]' Conversion from integral type to pointer type requires reinterpret_cast, C-style cast …

Member Avatar for Dave Sinkula
0
123
Member Avatar for PaKmAn

Develop a C++ program to determine a student’s letter grade based on a given integer test score. If the test score is 90 or more, the grade is ‘A’. If the score is between 80 and 89, the grade is ‘B’. If the score is between 70 and 79 the …

Member Avatar for PaKmAn
0
132
Member Avatar for Azurea

Hi there. I'm pretty new to the C++ language (came from Python :lol: ) and I was wondering how to create a library. In Python I used to create files with functions that can be used in other programs, and I want to know how to do that in C++. …

Member Avatar for Dave Sinkula
0
124
Member Avatar for cosmos22

Using the code below, I tried to implement a second line of code to delete another file in the same folder. I got an error message as a result. I'm using messenger as an example: I tried to replecate this line: const char * pFileToDelete = "h:\\MSN Messenger\\myfile.txt"; into something …

Member Avatar for cosmos22
0
88
Member Avatar for cj-read

I have a .csv file of data which has the following format: int,string,float,float,float,float, where the string is always 3 characters. I want to read the file in and sort column 5 relative to column 1. i.e. 1,b,1.11,2.22,3.33,200.00 3,c,1.11,2.22,3.33,100.00 becomes 3,c,1.11,2.22,3.33,100.00 1,b,1.11,2.22,3.33,200.00 etc. I'm a novice programmer and I don't quite …

Member Avatar for vmanes
0
184
Member Avatar for dophine

Hi when I look at this website [url]http://www.parashift.com/c++-faq-lite/operator-overloading.html[/url], I don't quite understand for the section 13.14 about prefix++ and postfix++. Number x = /* ... */; ++x; // calls Number::operator++(), i.e., calls x.operator++() x++; // calls Number::operator++(int), i.e., calls x.operator++(0) why ++x is calling x.operator++() while x++ is calling calls …

Member Avatar for dophine
0
135
Member Avatar for carnage

this would be my first time with arrays so i still have no idea how to use it i'm thinking on using it on this program [code=c++]#include <iostream> #include <conio.h> #include <string.h> using namespace std; int main() { char main_menu; char parts; char items[]; //here's the part i don't know …

Member Avatar for carnage
0
130
Member Avatar for Jaycii

I am trying to use an overloaded + operator to find the total balance for two values. I am messing up with the way to set them up, or forgetting something. I am getting values such as -9.543e2433 The code I am using for the operator is [code] Account operator+(Account …

Member Avatar for Jaycii
0
140
Member Avatar for cosmos22

Hello. I've been doing some programming recently that is supposed to delete files from a specified pathway [code=cpp] #include <iostream> #include <cstdlib> #include <windows.h> using namespace std; int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow); int main() { cout <<"Deleting file..."; // ??? What to do here? MessageBox(NULL, …

Member Avatar for cosmos22
0
171
Member Avatar for ithelp

Hi All, I am trying to understand whatever problems reported by static analysis tools for a codebase , can they always be caught by some dynamic analysis tool like purify (other than coding style issues) , what I meant is if you discard coding style issue, is running static analysis …

Member Avatar for vijayan121
0
90
Member Avatar for ventrica

i hav write a coding regarding to lists topic. and i had found about 3 error which i cant solve. any1 here who can help me wif dis error? i m very appreciate 4 all of ur help..TQ..dis is my coding and the error..TQ [code=c++] List.h #ifndef LIST_H #define LIST_H …

Member Avatar for vijayan121
0
402
Member Avatar for kunalcrazycoder
Member Avatar for appu.puli

HI all, I am beginner of VC++. I am working with remote console management. Can u please help me to display a string message on the console. If possible can u please send me the sample code. Thanks,

Member Avatar for Jx_Man
0
45
Member Avatar for kelvinskk

Hi, I'm still pretty new to socket programming and I'm using Fedora Core 5. Currently I need a simple IPv6 client to send text messages to an IPv6 Server. From some sample codes that I have gotten, it could work in IPv4, but the code could not work in IPv6. …

Member Avatar for kelvinskk
0
743
Member Avatar for wamuti

Hi guyz. I am making a client-server application uysing CAnsySocket. A little history may help you assist. I made the application and was working just okay but the problem was that two client app. could not connect to the server. It always crashed. A viable solution to that was making …

Member Avatar for dandan
0
86
Member Avatar for number87

hi again! this time im tasked to create 2 data structure types: RationalNo and RationalInfo. The structure for RationalInfo consists of RationalNo as a nested structure and a few other functions. RationalNo is an array with fixed size. but i got no idea how to even begin and populate the …

Member Avatar for DangerDev
0
101
Member Avatar for nurulshidanoni

How to correct it , at line 84. Error executing cl.exe. error C2447: missing function header (old-style formal list?) [code=C++] /*--------------------------- Filename : ConflictMatrix.cpp ---------------------------*/ #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <vector> using namespace std; struct student { string studentid; vector <int> examcode; }; int main() { …

Member Avatar for nurulshidanoni
0
121
Member Avatar for Jennifer84

I have 2 Forms in my Windows Form application. Form1 creates .txtfiles. I open Form2 from Form1 and can see the .textfiles that is created in a comboBox3. If I open the application from the beginning and go to Form2 I will see all .txt files that exists in a …

Member Avatar for Jennifer84
0
103
Member Avatar for dallaseve

[QUOTE]Hi, I am back again and need some more help please. I have to write a template that performs a bubble sort, and then I need to write an overload function template prinArray. I have the first part (well with a double, couldn't make the float work) but I'm lost …

0
70
Member Avatar for aircraft

How to avoid the output for 10 appears 3 times. 20 appears 3 times. repeat at each line. Im just want one only. 10 appears 3 times. 20 appears 3 times. s610 6 29 69 74 95 103 110 132 10 appears 3 times. 20 appears 3 times. s611 2 …

Member Avatar for aircraft
0
97
Member Avatar for knight fyre

My assignment requires me to demonstrate composition in my source code. I completed my code and worked out all the bugs but at the end where I display the date, I doubt that constitutes composition. Here the question: [QUOTE]Create a system that maintains information on drivers' licenses. The system must …

Member Avatar for knight fyre
0
140
Member Avatar for cosmos22

Hello, I am pretty new to C++, and I have a question: I am, and have been using Dev-C++ I used this code, to delete a text file on my desktop. The first time around, it worked perfectly. Given the file example name of "dafile". #include <stdlib.h> // needed to …

Member Avatar for Ancient Dragon
0
105
Member Avatar for deadrabit

hello, my head has been spinning around a way to do this. the best way to describe it would be with psudo code so... ReplaceLine (string file, string keyword, string str) { open file "file" search for first line containing keyword "keyword" replace that entire line with string "str" save …

Member Avatar for Ancient Dragon
0
246
Member Avatar for Dr_Pepper

my question is how can i make my program not to display any unique combination more that ones? //*****f04.cpp***** //Name: //Date: 02 - 17 - 08 #include <iostream> using namespace std; int main () { // #1 int a, b, c; for (c = 1; c *c <= 100; c++) …

Member Avatar for Dr_Pepper
0
118
Member Avatar for k2k

Does anybody know what class function is for checking if a string has any letter in upper case? string FirstName_LastName any function return the idex of char[] that is upper case ? thank you

Member Avatar for deadrabit
0
337
Member Avatar for dkwantee

Hello! I am having problems to copy the output of a text file to another one. The aim of this small program is to convert a sentence in lowercase stored in a file to uppercase and store the output to another txt file. finally display the output..Plz help me [CODE=c++]#include …

Member Avatar for Ancient Dragon
1
84

The End.