49,761 Topics

Member Avatar for
Member Avatar for tensity

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 …

Member Avatar for tensity
0
394
Member Avatar for cambalinho

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?

Member Avatar for cambalinho
0
102
Member Avatar for mixelplik

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

Member Avatar for L7Sqr
0
422
Member Avatar for glenwill101

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 …

Member Avatar for tinstaafl
0
152
Member Avatar for lightdshadows

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 …

Member Avatar for mike_2000_17
0
1K
Member Avatar for aastha b

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 …

Member Avatar for arunava.iiitcal
-3
2K
Member Avatar for tinstaafl

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 …

Member Avatar for tinstaafl
0
1K
Member Avatar for andrew mendonca

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 …

Member Avatar for Ancient Dragon
0
252
Member Avatar for shyyaz

guy i need a help i need a code for 12 hour clock for c progrem for atm8535 can any one help me plz

Member Avatar for DeanMSands3
0
272
Member Avatar for mkash

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 …

Member Avatar for tinstaafl
0
273
Member Avatar for coiseng

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 …

Member Avatar for tinstaafl
0
315
Member Avatar for josephwakiro

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 …

Member Avatar for morad jbilo
0
162
Member Avatar for cppgangster

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 …

Member Avatar for mike_2000_17
0
129
Member Avatar for cambalinho

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?

Member Avatar for cambalinho
0
386
Member Avatar for skyyadav

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

Member Avatar for mike_2000_17
0
272
Member Avatar for can-mohan

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 …

Member Avatar for can-mohan
0
244
Member Avatar for vyalineconstantino

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 …

Member Avatar for Moschops
0
2K
Member Avatar for skyyadav

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É

Member Avatar for techofunda
0
211
Member Avatar for divva

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

Member Avatar for divva
0
218
Member Avatar for can-mohan

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); } …

Member Avatar for mike_2000_17
0
4K
Member Avatar for fashxfreak

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 …

Member Avatar for rubberman
0
119
Member Avatar for renagadejesus

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 …

Member Avatar for Moschops
0
266
Member Avatar for Zahin

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.

Member Avatar for Learner010
0
85
Member Avatar for ticomatik

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 …

Member Avatar for kal_crazy
0
723
Member Avatar for cambalinho

is there any function(API or something) for get 1ms of precision? i have 1 timer, but i only get 10ms of max.

Member Avatar for cambalinho
0
408
Member Avatar for skandh

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 …

Member Avatar for jay.vivarekar
0
2K
Member Avatar for Vasthor

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 …

Member Avatar for Schol-R-LEA
0
127
Member Avatar for can-mohan

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 …

Member Avatar for can-mohan
0
288
Member Avatar for highonbikes

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 …

Member Avatar for Moschops
0
155
Member Avatar for Rawan_92line

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

Member Avatar for tinstaafl
0
209

The End.