49,764 Topics

Member Avatar for
Member Avatar for craig.durnin.1

Hi there guys. Literally I have been asked this question; "The Fibonacci sequence is 0, 1, 1, 2, 3, 5, 8, 13, … ; the first two terms are 0 and 1, and each term thereafter is the sum of the two preceding terms – i.e., Fib[n] = Fib[n – …

Member Avatar for craig.durnin.1
0
7K
Member Avatar for untitled69

I am given a number n and a number b. i have n products and for each product a grade like 'e' for electronics or 'f' for food. I must show only the products with a number of grades smaller or equal to my given b It's like: n=4 b=1 …

Member Avatar for untitled69
0
140
Member Avatar for MRehanQadri

If p is a pointer pointing a node to be deleted, then what's wrong in the following code: cout << "Do you want to delete this record? (y/n) "; if (getch() == 'y' || getch() == 'Y'){// Delete record. if (p == *ph){//If first node is to be deleted. *ph …

0
81
Member Avatar for mc3330418

Hey All! This isn't an important qusetion just an I don't get it question. So, this is out of my book....this is a default constructor clockType(); Ok. This is a constructor with parameters clockType(int, int, int) Thats all fine and good. Here is my quesiton. The default constructor is basically …

Member Avatar for mc3330418
0
143
Member Avatar for Diamond3x

I am a beginner in C++ and trying to learn it. I have a problem with this program. #include <iostream> using namespace std; int main () { int FirstNumber = 0 ; int SecondNumber = 0 ; cout << " This program will help you multiply two numbers " << …

Member Avatar for asifalizaman
0
359
Member Avatar for sami youssef
Member Avatar for rubberman
0
149
Member Avatar for Hyshien

Hello, I am Shien from Malaysia Good to meet you all here I found some problem when doing my final year project Now, I am doing a security system with using PIC18 My project is like this Sensor (digital sensor) detected -> signal send to my PIC18, then I want …

Member Avatar for Hyshien
0
96
Member Avatar for Chan23v

**Hello people** I am in need of help with part of my program... **How can I edit a element in my percent list?** I want the user to be able to change the percentage (that is aready there) so that it can ... update, and then be sorted it... void …

Member Avatar for Nutster
0
194
Member Avatar for can-mohan

hi, I have doubt about virtual function behaviour in below code snippet. As per my understanding class derive2 didn't override the virtual function fun() , so it is obvious that its object can't be assigned to the Base class pointer *p and even individually we can't instanciate the object of …

Member Avatar for can-mohan
0
174
Member Avatar for can-mohan

Hi, I have overloaded new function but unfortunetly never been able to execute global handler for requesting more memory access on my compiler. I also don't understand as per below code snippet if we invoke the global handler for requesting more memory how it is gling to allocate to P. …

0
65
Member Avatar for rkrishnan2012

Hey guys! I will be hosting an online hackathon next weekend. Please join (50 bucks reward if you win)... In this case, you are given a theme and you need to code something relevant to that theme. The coolest program will get the prize money. You are given 24hours to …

Member Avatar for LastMitch
0
179
Member Avatar for meetjatin88

Hello Everyone , Can some one please tell me what is wrong in my program. This is basically a program to insert a new node in a binary search tree. The thing is that my insert function is working correctly and the node is getting inserted which i am verifying …

0
97
Member Avatar for Zaina jee

I am new to filing and have not much idea about it. I have written a code that tries to read an ASCII .pgm file named pic.pgm and writes it as mypic.pgm file: #include <fstream> const int MAXHEIGHT=221; unsigned char *bitmap[MAXHEIGHT]={'\0'} ;// pointers to each pixel row int main() { …

Member Avatar for Zaina jee
0
632
Member Avatar for connor.wells.7946

For this assignment due **3/4/2013**, I have to write a program to read in and evaluate a post fixed expression. I also have to print out the expression read in followed by the results of the evaluated expression (while handling the add, subtract, and multiply operators) and handle multi digit …

Member Avatar for rubberman
0
384
Member Avatar for helixkod

I have an xml file that I have to read in, convert all the carriage returns to \x0D and line feeds to \0xA, then call it into a function as a string. So for example my XML file is: <TEST> this is a string </Test> I would want a string …

Member Avatar for helixkod
0
1K
Member Avatar for MRehanQadri

We cannot use constructors if we want that whenever a pointer is declared, it should be NULL. Am I right Sir? if I declare student *head, *tail, where student is a class, can I make my pointers automatically make NULL using default constructor?

Member Avatar for Moschops
0
168
Member Avatar for J-P1988

Hey I have an code in Qt that is an QPushButton is hidden at start of the cpp but later i want to get it appear when the file is open and an line is readed but the problem i get an segmentation fault. Can be because the setHidden(true) in …

0
137
Member Avatar for nah094020

Ok so am writing a program that simulates a computer system.The cpu and memory will be forked making memory a child process and cpu athe parent and i will be using pipes to let them exchange informatino. I am really lost tough on what to do next, i have loaded …

Member Avatar for rubberman
0
258
Member Avatar for handsomelaw

write a program which display a restaurant menu, then ask the user to select a choice from the menu. Using the switch statement select the user choice. printout the choice the user slected and the bill amount.Include in the bill a 16.5% tip and 8.25% sales tax.

Member Avatar for rubberman
0
113
Member Avatar for desolatebeast

Hey everyone need help on a project im doing in c++, so far I have made a command interpreter, that breaks user input into array of Strings sepperated by spaces and have a run function. Now I am trying to do the list() and list(directory) but I'm not quite sure …

Member Avatar for desolatebeast
0
392
Member Avatar for maham1234

**please help me with this code ASAP** Problem Statement: You have to write a Schedule Management Program for the counsellors. Here are some facts: Facts: There are 10 counsellors. You have to Manage only one week's schedule. There are 7 days in a working week ten working hours in a …

Member Avatar for NathanOliver
0
138
Member Avatar for adfsandfianfosdaafs

Hello, i just started to study c++ and i have a problem about 1 porgram in the homework ! it ask me to write a c++ program that first asks the user if he want to enter a number if yes he enters the number and then ask him again …

Member Avatar for deceptikon
0
104
Member Avatar for JaceLightning

I am trying to figure out what it would take to create software like [MaxiVista](http://www.maxivista.com/) or [ScreenRecycler](http://screenrecycler.com/ScreenRecycler.html). I have good experience with Java and C++, but these two programs are just awesome and over my head. Basically, they take a window from one computer and transfer it to another. Does …

Member Avatar for ktsangop
0
252
Member Avatar for n1csaf3

I have been trying to call a C++ function in a DLL, from a C# WPF application I'm working on. I've done it before and it's worked but I can't remember how I did it and can't seem to find an example that works for me. I'm doing something wrong …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for Baldur

Hi Everyone, I have been trying to teach myself how to code for more than a year now, having started with VBA and then switching to c++. Recently I have been forced to confront how horrific my coding practices are, and have been doing pennance by trying to modify 1500 …

Member Avatar for Tumlee
0
435
Member Avatar for Xorlium

Hello, I'm still learning C++, and I have a question that I'm not even sure how to search for it, so sorry if this is a repeat. The thing is that I'm trying to make, for a project a-for lack of a better word-memory manager. I want to have kind …

Member Avatar for mike_2000_17
0
202
Member Avatar for harinath_2007

Generally people sit in front of computers for a long time which results in eye strain. We indeed forget to take a break. So here is a good freeware called FADETOP which reminds you to take a break after every 15 minutes. However you can change the default time. You …

Member Avatar for CimmerianX
2
321
Member Avatar for softwaretime

Hi, I would like to know how I would modify the close (X) button in the GUI. For example, I would like to be able to have the user click on it and the program to bring up a message box from the MessageBox::Show() function that I type in. This …

Member Avatar for deceptikon
0
229
Member Avatar for Bhavya scripted

I am having trouble understanding the concept of virtual functionsin c++.i couldn't find any simple example code for me to understand.can anyone show a simple program using virtual functions and it's importance? Thanks

Member Avatar for deceptikon
0
177
Member Avatar for Suzie999

I'm using the function GetBitmapBits. MSDN says of the function > The GetBitmapBits function copies the bitmap bits of a specified device-dependent bitmap into a buffer. What it does not say, is how the data is stored, and I need to know this if I'm to analyze each specific color. …

Member Avatar for Suzie999
0
299

The End.