49,761 Topics
| |
When I want to access a part of the vector (appointment) it won't allow it, for example simply adding: [CODE]cout << appointment[1];[/CODE] will not work. I also want this vector to be saved to my class (Appointment), so I can later remove elements of the vector. Would I be able … | |
I am having some trouble getting some overloaded operators working correctly with a simple inherited Vector class (numerical vector, not container) The scalar multiply from the base class doesn't appear to be visible to the derived class. Code follows: Base Class Header [code=c++]#pragma once #include <vector> class Base { protected: … | |
I just watched this tutorial: [url]http://www.youtube.com/watch?v=NTip15BHVZc[/url] and tried it myself, but I could not get it to work, I get these errors: [CODE]||=== 15. Placing classes in separate files, Debug ===| C:\Program Files (x86)\CodeBlocks\programs\tutorials\15. Placing classes in separate files\src\testClassFile.cpp|1|error: testClassFile.h: No such file or directory| C:\Program Files (x86)\CodeBlocks\programs\tutorials\15. Placing classes … | |
I am trying to add a numbering system to a list in a datafile: [CODE] Appointments.open(DATAFILE); if (Appointments.is_open()) { // Read the file until it's finished, displaying lines as we go. while (!Appointments.eof()) { getline(Appointments, line, '\n'); // getline reads a line at a time appointment.push_back(line); cout << i << … | |
Hey guys, I made a program and i was just wondering how to change the icon because right now all its showing is the application file icon. So Any help is appreciated. Thanks! P.S: I already tried resource hacker, and I probably did something wrong but it didn't work. | |
Hello, I am trying to build cURL 0.7.3. When I configure cURL.pp within the shell (./configure), the program exits with error: cannot find boost libraries. So I used the following command to bypass this step: ./configure --without-boost The configuration finishes with no errors, however, when I try to "make" within … | |
Hello. I have written my code and I am almost done, but I keep getting LNK2019 errors. I'm not sure what I'm doing wrong. Any suggestions? [CODE]#include <iostream> #include <cmath> #include <iomanip> using namespace std; int getStudentCount(void); double getExamScores (int noStudents); double getLabScores(int noStudents); double calculatePointGrades(double, double); char calculateLetterGrades(double); void … | |
Hey all, I am designing a budgeting program, not for any particular reason, and am having trouble with my new budget "wizard". I'm just storing the budget info in an xml file, and so far the program can load and modify info (I've yet to implement saving), but it cannot … | |
#include <iostream> using namespace std; #include <iomanip> const double minimumFee = 7.00; const double hourlyFee = 1.75; const int numOfCustomers = 12; const int numOfMinsPerHour = 60; void inputAndValidate(int&,int&,int&,int&); void convertToMinutes(int&,int,int); void convertBackToTime(int&,int,int); double calcCharge(int,int,int); int main() { int entranceMinutes,exitMinutes,entranceTimeInMins,exitTimeInMins ; int minutesParked,parkedMinutes,entranceHour,exitHour,parkedTime ; int parkedHours; double charge ,totalCharges; int … | |
Hello, I am trying to do the following: [quote] Company needs 200 pens a year. Write a program to gauge the expected cost of an item in a specific number of years. Asks for the cost of the item, numbers of years from now it will be purchased, and the … | |
I am having an issue with my decryption out.txt file. I have gotten the program to open the input file in note pad and encrypt. to an output text file but when I try to decryp to an out text file it doesn't do anything. I figure I am missing … | |
[CODE]#include <iostream> using namespace std; #include <iomanip> const double minimumFee = 7.00; const double hourlyFee = 1.75; const int numOfCustomers = 12; const int numOfMinsPerHour = 60; void inputAndValidate(int&,int&,int&,int&); void convertToMinutes(int&,int,int); void convertBackToTime(int&,int,int); double calcCharge(int,int,int); int main() { int entranceMinutes,exitMinutes,entranceTimeInMins,exitTimeInMins ; int minutesParked,parkedMinutes,entranceHour,exitHour,parkedTime ; int parkedHours; double charge ,totalCharges; int … | |
Hi guys, I am trying to create a edit control, with pure win32. When the return key is pressed I would like it to run a section of code. I have tried getting it to handle the return key message through the main windows message handler. Unfortunately that causes it … | |
Hello I an new to C++ and am making my first program from scratch that has a useful solution after a while debugging I notice a problem with a displayed item and so I change the the code and a new error comes up... [TEX]------ Build started: Project: A_Message, Configuration: … | |
Hey guys, I made a converter program and i was just wondering how to make it run on its own without debugging it or anything. So, Any Help Is Appreciated Thanks! If you want my code: [CODE]#include <iostream> #include <time.h> #include <string> using namespace std; float FTC (float); int main() … | |
I need assistance in printing out a Quine. I googled it and stuff, but I didn't understand the code snippets I saw. Can anyone explain in a more lucid tone? | |
I'm making console application and i need to show an image.. i was searching for something to create popup and control it with console (change image every 2 seconds)... but it was hopeless.. but maybe where is some way to accomplish that. | |
i am doing a C++ program that gets number of vectors, so user can input magnitude of each vector. using 3 functions 1.main function, 2.function that get the number of vectors(looping-number of vector must be positive) and 3.last function get the magnitude of vectors (looping - must be positive) and … | |
| [CODE]// bakers.cpp : Defines the entry point for the console application. // /* HEADER USED IN THIS PROJECT*/ #include "stdafx.h" #include<iostream> #include<conio.h> #include<stdlib.h> #include<string.h> #include<string> #include<stdio.h> #include<process.h> #include<fstream> #include<ctype.h> using namespace std; //Classes in this program class Bank { private : long Ac_no; string f_name , l_name ,City; char Ac_type; … |
I can't seem to get this to compile for nothing; I'm new to this c++ any help out there? [CODE]#include <iostream> int main() { //declare variables double average = 0; double sum = 0; double array[10]; int k; // User Input and Total of number input for (k =0; k … | |
I'm trying to make a rectangle object and just do some simple commands. It has been a while since I've coded in c++ so I'm not sure what syntax errors I have? Any help would be appreciated I'm getting the error: request for member 'area' in 'c', which is of … | |
Hey guys, I just wanted to ask why this error kept on showing up, i looked at everything, but i couldn't find anything, so maybe one of your eyes will catch something. Here's my code: [CODE]#include <iostream> #include <time.h> #include <string> using namespace std; float FarenheitToCelsius (float); int main() { … | |
Hi everyone I'm working on a remote controled robot which have four cams & one sound recorder. the robot encode the data send it to a computer, an application decode data and view 4 cams & play sound. Here is my question is there any function or library than can … | |
Hello. First of all i know that this was asked like a million times, but i just cant get the right answer anywhere, yes, even on google. So the thing is that i learned the C++ basics and my learning process was only in a Console Application. And now for … | |
what is d basic differn betwn return 0 & return 1? | |
wat is a multicharacter character constant?plz explain in detail? | |
i'm working on a small project where i'm storing student details in an array of structures.The admin logs in to modify these details.How do i get this data to remain permanent?(i.e the data entered should not be erased every time i re-open the program) Is there no way other than … | |
Hello Developers, I have been attempting for weeks now to create a DLL that reads information from authenticode signed Executables/DLLs, but i cant seem to get anywhere, here is what im trying to do... Create a DLL that has the following functions... [B]certinfo(filename, information);[/B] this function will return the specified … | |
hi , I just using 64 bit linux with my powerfull desktop computer. and I use Scientific linux as the destro,I use the RPM binary package to install gcc. and I using nasm also. I write simple example program in a nasm assembly (free) book.And the author gives some library … | |
Can anyone give a solution for this? Im just new here. Wishing to have a great time here :) by the way : I made a program that the user will buy a certain product (a cake) then i also have a "receipt-like" after. But i dont know how to … |
The End.