49,757 Topics

Member Avatar for
Member Avatar for Elixir42

Everything was running fine, then I made a simple change. Like adding a class or two and bang!!! C2995. Can you spot where I have obviously gone blind and cannot see the error. I have header gaurds throughout the solution, so I dont understand why this is happening. Here are …

Member Avatar for Elixir42
0
442
Member Avatar for murnesty

I recently learn about the polymorphism and I don't know what is the purpose to use this feature. From http://www.cplusplus.com/doc/tutorial/polymorphism/ , it uses the child class rather than the parent class. I thought most of the time we inherit and we only use the parent class to access the child. …

Member Avatar for murnesty
0
156
Member Avatar for can-mohan

Hi, I do have doubt regading use of delete p . In most of the scenarios we call delete inside the destructor if we would have called something int *p = new int (10); but as per below code snippet (original code of delete p) it already invoke the destructor …

Member Avatar for Elixir42
0
137
Member Avatar for sandz24

Can anyone please explain to me how to compute DCT? I'm finding it hard to understand it. ![2D-DCT](/attachments/large/3/2D-DCT.png "2D-DCT") ![dct1](/attachments/small/3/dct1.png "align-right") I attached the formulas the Discrete Cosine Transform (DCT) and it's Inverse-DCT.

Member Avatar for white_pearl
0
825
Member Avatar for asifalizaman

Roots of quadratic equcation #include<iostream.h> #include<conio.h> #include<math.h> void main() { float a,b,c,disc,root1,root2; cout<<"enter a"<<endl; cin>>a; cout<<"enter b"<<endl; cin>>b; cout<<"enter c"<<endl; cin>>c; disc=(b*b)-(4*a*c); root1=(-b+sqrt(disc))/(2*a); root2=(-b-sqrt(disc))/(2*a); cout<<"root1"<<root1<<endl; cout<<"root2"<<root2<<endl; getch(); } any question or assignment ask to me!guys

Member Avatar for asifalizaman
0
349
Member Avatar for kyle.mace.35

Alright so my problem is I am getting an error that says undefined reference to all of my functions related to DoubleLinked, DoubleLinked<string> dict, dict.add, etc. If anyone knows why that would be great. Thank you. Oh and if i add () to DoubleLinked<string> dict then i just have undefined …

Member Avatar for kyle.mace.35
0
381
Member Avatar for abzksm

A dark mage casted a black spell On the fountain of life.So,instead of producing the elixir of life,the fountain now produces the elixir of life and the dark poison at rate r (litet/sec). the fountain will become deadly when the amount of poison is the as that of elixir in …

Member Avatar for rubberman
-1
130
Member Avatar for dan.gerald

I am trying implementing a vector ADT by means of an extandable array used in circular fashion. So now I want to apply the doubling strategy to double the current size of array Wheenever the full exception happens, by using a template to make the vector work here are my …

Member Avatar for deceptikon
0
565
Member Avatar for gopi.mishra.7

Dear All, I require to download a webpage, analyse the html and from that html I have to identfiy some required images and download them for analysis.Please help as to which library I would have to download and install. Is cURLpp good for this.? for the image analysis thing i …

Member Avatar for gopi.mishra.7
0
58
Member Avatar for MRehanQadri

http://libraryofcprograms.blogspot.com/2013/03/initializing-character-array-structs.html Is there any other way to initialize a chararcter type array in structs?

Member Avatar for MRehanQadri
0
99
Member Avatar for MRehanQadri

Let f1 and f2 are two user defined functions. main(){ int *p; f1(&p) } f1(**p){ f2(&p);//If I've to pass the pointer by reference again in another function, will I've to do something like this? } f2(***p){ **p = NULL; }

Member Avatar for MRehanQadri
0
178
Member Avatar for asifalizaman

#include <iostream> #include <conio> #include <windows> void main() { int opt; cout<<"\t\twhich type of window you have\n\t\tEnter one for shoutdown for windows xp\n\t\tEnter 2 for windows 7\n"; switch(opt) { case 1: system("C:\\WINDOWS \\System32\\shutdown-s-t-0"); break; case 2: system("C:\\WINDOWS \\System32\\shutdown/s/t 0"); break; } getch();} using borland execute that program and shutdown your …

Member Avatar for deceptikon
0
460
Member Avatar for firebird102085

Hello All, First - I am just a beginner at this (just started studying C++ this semester) so I am lost somewhat sometimes and I think I am making good headway with my first array, but, I can not get it to return any output in my console window. I'm …

Member Avatar for mrnutty
0
1K
Member Avatar for Lin2013

Question is Write a modular program (function) for problem given below. This program will let you enter the initial balance for the month, followed by a series of transactions. There is no limit on the number of transactions the program can process. A transaction takes the form of two input …

Member Avatar for otengkwaku
0
139
Member Avatar for theaamalia

Hello, *We are very much begginers at programming in general, and it would be great if you could keep that in mind when helping us!* Could someone please explain just what a **socket** is? We are working on a program which will solve a 3D puzzle, handed to us by …

0
148
Member Avatar for waqas.zafar.125

hey guys ! i have been given an assignment as pasted below : You will be given two files. Grid.txt will contain a grid of letters (as shown below) j q v r l k u v e r s i o n l d v k e r n …

Member Avatar for ravenous
0
153
Member Avatar for ralph.d.abernathy.1

Hello all. I wrote a program that gives me 100 random values from the range between -100 to +100. How am I supposed to find the minimum, maximum, and average of the values that will be listed when I run the program? I appreciate the help anyone can give me. …

Member Avatar for tinstaafl
0
3K
Member Avatar for Superfreak3

Hi there, Years ago I posted in an InstallShield forum to see how I can detect if a patch has been applied on a particular machine programmatically. We have an update utility that will fire a Myapp.msp if it is detected in a particular folder. What is happening is that …

0
110
Member Avatar for chocolatte.lavista

hello guys ! I need some help.. "assume that the process happen in some restaurant. there are seat1 until seat10 in the restaurant. the customer(user) need to enter the seat number to select the seat that they want. the seat that have been selected by customer will remark by 'reserved' …

Member Avatar for tinstaafl
0
279
Member Avatar for TheBrick

Hello, I'm having a play with Qt and can draw what I want, perform transforms, more the origin with a translation but would like to know how big the area I have to paint on is and is it possible to control this. I've read the entries for things like …

Member Avatar for TheBrick
0
1K
Member Avatar for singularity~

When I run my makefile I get this error: ** No rule to make target `videofeatures.cpp', needed by `videofeatures.o'. Stop. Here is my makefile CC = gcc CPP = g++ CFLAGS += BIN_DIR = ../bin INC_DIR = ../include LIB_DIR = ../lib INCL = -I$(INC_DIR) `pkg-config --cflags opencv` LIBS = -L$(LIB_DIR) …

Member Avatar for singularity~
0
307
Member Avatar for himgar

I want to change the color of the text in c++. I am using Turbo c++ 4.5 and Windows XP. I have used that textcolor(14) type code but it didn't work. It says : Call to undefined function "textcolor" in function main I have included header files iostream.h, conio.h, windows.h, …

Member Avatar for renel.c.allauigan
0
4K
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
6K
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
358
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
193

The End.