49,757 Topics

Member Avatar for
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
250
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
270
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
383
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
242
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
402
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
Member Avatar for jal pari

Write a program that clear the difference b/w increment & decrement operators using binary & unary operators. can anyone help me out in this program ???

Member Avatar for tinstaafl
0
179
Member Avatar for PulsarScript

Hi all,please help me out,how to find occureces and scale in this situation?And what is wrong with diplay option,once it displays,the numbers are not in the same column. Thank you kindy. #include "stdafx.h" using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int list[12]; cout<<"Enter 12 values:\n"; for(int i =0;i<12;i++) …

Member Avatar for deceptikon
0
136
Member Avatar for skyyadav

Hi When I tried to compile like g++ -std=c++11 -W -Wall it gives this error error: ‘stoi’ is not a member of ‘std’ #include <string> #include <iostream> #include <fstream> class Grade { public: // Default Constructor Grade() {}; // Functors // If the given course and the score matches the …

Member Avatar for Kanoisa
0
1K
Member Avatar for zozzooo

I have an application this is alredy license but in this application use my functionlity put custome .afl file this file make in c++ i make this .afl file as trial period.So how to make this .afl file as 7 day trial period.....so plz help me... If any one can …

0
134
Member Avatar for miekie357

Hello, guys I'm hoping that you can help me. I'm having a problem coding w/ this problem. I find it hard to do this bcoz when I run the program the result always be like this. #include "stdafx.h" #include <string> #include <iostream> using namespace std; int main() { for (int …

Member Avatar for tinstaafl
0
375
Member Avatar for ariel930

Hi.here is a question I got for assignment.I am stuck in this for hours and couldnt com up with any logic.Any help will be highly appreciated.Thanks Depth-First-Search Q.No.1 The undirected unweighted graph with one selected vertex is given. Find the number of vertices in the connected component where the selected …

Member Avatar for mridul.ahuja
0
169

The End.