49,761 Topics
| |
I am trying to create a text based graphing program and I am running in to some trouble. My trouble isn't so much with the programming its with one particular algorithm in creating the points. So, here is sample of what the graph will look like with points included. (y … | |
imagine these line: cout << "glória vitória"; //glory vitory why instead print 'ó', prints '3/4'(the ascii char)??? changing the console font name, can resolve it? | |
Hi, I'm trying to send an array of data to a .txt file, and after a couple days am just rewriting code I wrote days ago. I have an array of ints that I want to send to file in three columns outputFile.open("sorted.txt"); for(int i = 0; i < size; … | |
hi, for the last half hour or so i have been trying to get this line of code to work system("del %APPDATA%\\Microsoft\\Windows\\Start Menu\\*.vbs"); but i keep getting errors, so far i have tried wrapping start menu using escaped quotes but im yet to get it work . any help would … | |
Hey guys, I have a homework problem that I'm having issues with. I've been having a difficult time understanding classes and what the point of them is when I feel like I can just write everything in main without using a class, but I'm forced to use them anyways. This … | |
Assume that a bank maintains two kinds of accounts for customers, one called as savings account and the other as current account. The savings account provides compound interest and withdrawal facilities but no cheque book facility. The current account provides cheque book facility but no interest. Current account holders should … | |
Here's a simple class for what it's worth that will do simple base85 encoding and decoding. This only works with the required blocks of data and not large data structures or streams, and does no validation of the data. What it does do is encode a block of 4 8-bit … | |
CSCI-15 Assignment #4, operator functions/methods. 25 points. Due 11/6/2013 Extend your class MixedExpression class to include operator methods for addition, subtraction, multiplication and division, and to have friend operator << and operator >> functions for reading and printing the MixedExpression objects. Allow cascaded input and output per the << and … | |
guy i need a help i need a code for 12 hour clock for c progrem for atm8535 can any one help me plz | |
can any1 help me with my code because i cant delete and copy a folder but i can copy and delete other file extensions in my code. it would be a great help if you can help me with this cause im new in c++...thank you and godbless. code for … | |
Hi, I'm newbie with C++ and I found an example which I need http://ideone.com/Eikbr4 But I've a question, how do I seperate this piece of code into .h and .cpp.. I tried to do something similar on my own but I'm having struggling with it after multiple try.. I've read … | |
STAR WAYS BUSES is a new bus that wants to launch services in city A but to ease its work it needspre-paid tickets.it plans to use zonal pricingsystems as follows; i).ticket price per day between zone 2 and 1 is $2000 ii).ticket price per day betweenzone 3 and 1 is … | |
Hi there, I have a problem in finding where is the mistake in my code.The problem is that I am not getting correct output of printf. As you can see I am derefferencing the pointers pd_f and pd_C in the brackets just before they are multiplied. The problem is removed … | |
if C++ isn't a real OOPL, what left? with another words i want study(theory\concepts) the real OOPL. can you give me a link with these information? | |
How to sort vector<int> v{3,2,7,6,5,8,1,2,3,4,5}; in decreasing order using function object. I did using lambda expression sort(v.begin(),v.end(),[](int a , int b){return a > b;}); But How we do using fn object | |
Hi , I am just curious to know that , why i am not able to compile below code if i define access function inside the class. i am able to execute another friend function inside the class. Does it mean class scope is responsible for the execution of other … | |
Uhm, so hello! We have this project in our CS course that states that we have to generate our own Bingo Game program, we can use help or we can let a person/people work on it as long as we can understand it. But I chose the latter part of … | |
int main() { map<string,size_t> count; string word; while(cin >> word) count[word]++; --------(1) for(auto it=count.begin();it!=count.end();++it) cout << it->first << ": "<< it ->second <<endl; I donot understand the code particularly the line (1) Could anyone can explainÉ | |
i have to develop a code for coversion of video files from raw format to mp4 in linux os using cpp.... i also have to save the resulting mp4 format... friends can anyone plz help me do this i ll be very thankful to you | |
Guys, I need to write thread safe singleton class for my assignment. below is the code snippet for factory method in singleton class, I will appreciate if anyone is having suggestion for the same. *MySingleton * MySingleton::GetInstance() { if (m_pOnlyOneInstance == NULL) { pthread_mutex_lock(&mutex); m_pOnlyOneInstance = new MySingleton(); pthread_mutex_unlock(&mutex); } … | |
A, B, C, and D are two-dimensional arrays , all of the same size ,and all of type double . I need code fragment that computes D = A + B + C, where each element of D is the sum of the corresponding elements of A, B and C. Also two … | |
My teacher is asking this of me, and I am just not following how to do this. All distance learning and not a lot of assistance. any help would be amazing. "For this assignment, you will create a program that records information for a book sale. You will use parallel … | |
Hi everyone, Today i have a question about how can i write one code for all shapes like, 1234 2341 3421 4231 or 55555 55555 45555 34555 23455 12345 Thanks alot. | |
I am a newbie to C++ . i am trying to , i think, answer this question and i am lost many hours wasted. I think I've broken the problem done correctly. (NOTE WE CANT USE VECTORS OR STRUCTURE (still newbie) ONLY = CLASS< FUNCTIONS ARRAYS) 1)i need to design … | |
is there any function(API or something) for get 1ms of precision? i have 1 timer, but i only get 10ms of max. | |
| how to display 256 color bmp files in trubo c++ 3.0??? i ve already displayed a 16 color bitmap in turbo c++... i came across this code but it doesnt work...pls tell me whts the error... [code] #include<iostream.h> #include<graphics.h> #include<fstream.h> #include<conio.h> struct A{ char type[2]; /* Magic identifier */ unsigned … |
The combine function been bug since yesterday. Been trying everything back then, define in the source file, remove some code to prevent overlapping definition, etc... I don't know what I should do, can anyone help on this? #ifndef SALES_DATA #define SALES_DATA #include <iostream> struct Sales_data { // new members: operations … | |
Hi, Is there any way to not allow private construction in friend function, In case we do have private constructor with friend function in our class.Only Static method should be responsible for object creation and other than this compiler should flash error message. #include<iostream> #include<memory> using namespace std; class a … | |
I am trying to get advanceDate to change the date of an "appointment" object it just adds 1 to the day integer. when I call the print function inside the advanceDate function. It prints the modified value I am looking for. But after it returns the object and I call … | |
1. Define a class Car which: Stores the name, type, price, model year, number of color, and names of available colors Includes a default constructor. Includes a parameterized constructor. Group of available colors is allocated dynamically in the parameterized constructor based on received number of color. … |
The End.