49,761 Topics
| |
do you know whats a cout? what are its function and in what library can it be found? | |
Hello, dear all. My algorithm as follows. my input is in Code2D.h file. actually i have to put in file 'Code2D.in'. but i dont know have to create it. By the way, my algorithm have no problem with N <= 4. but when i change N = 5, 6 , … | |
I want to create a "Help" in an application that I do. I have attached a file for what kind of solution I am after. The solution is the same type as in VC++ 2008 under "Help" /Index? How it is constructed is with a listBox on the left side … | |
I'm writing a program that opens a file then sorts it a couple different ways then closes it. Someone in my class said something about using a getline function but I can't figure out how that works. I can't find a way to take a specific line in a text … | |
given two arrays of n numbers, a[] and b[], and a number c, find the largest sum of elements from a[] so the sum of same-indexed elements from b[] don't go over c... i really have no idea... only recursion works but too slow :( heeeeelp! | |
I've been banging my head on this errors and can't seem to find where I went wrong. For any of the "set_" errors, set_ (as well as print) refers to a member function of another class . Please, any help would be great. [CODE] test.cpp: In member function `void CDCollection::get(int, … | |
Hi Does anybody knows what is wrong with taht code? Why it says it is empty link list? It should fill with the numbers I enter. Could anybody help to answer the question? Thanks [CODE]#include<stdio.h> #include<conio.h> struct Node { int number; struct Node *link; }; typedef struct Node* NodePtr; void … | |
With much pleasure I've started using a TR1 imlpementation. I'm a bit wobbly with it, but I'd dearly like to replace some code involving old-school pointers with some shared_ptr The original code is as follows below. It creates an array int* of size rows, each of which points to an … | |
hi what is the purpose of virtual function, please give me idea thanks bala | |
hello, dear all i'm try to find determinant . there is error with ' pow': [code=cplusplus] sum = sum + b[0][p]*pow(-1,p)*determinant(c,m-1); return sum; [/code] after run, the argument was appear as follows: 1>c:\documents and settings\user\my documents\visual studio 2008\projects\deter4\deter4\deter4.cpp(78) : error C2668: 'pow' : ambiguous call to overloaded function 1> c:\program … | |
hello there! im creating a program with both stdio.h and iostream.h in the include header. Can the program run with them both? or others? | |
[font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1]How do you make a class accessible from a dynamic link library? It is a commonly asked question with a solution that is surprisingly simple. In this article I will show you how to do it in Visual C++. [/size][/font] [font=VERDANA, ARIAL, HELVETICA, SANS-SERIF][size=1]First, you need to … | |
Hi I want to read a two huge integer input from user & wanted to display output on the screen can any one help me ? eg : int a=8132123781237; int b=1237829789; result = a *b ; print(result); ???? | |
Hi all, whaz up poeple i have a little problem! if anybody could help me, i would be grateful i have made an application in borland c++ about credit cards there are 2 fields, and between them are 2 buttons (import and status) when i press the import button, i … | |
Hello, I am new in the world of snmp++. Recently I have downloaded the latest version of snmp++ for Linux and tried to compile the sample (specifically Qt example). While I try to "make" the sample, at one stage it shows the following message and exit the make utility: /usr/bin/ld: … | |
Hey, Long time reader, first time poster. I'm working on a project, and think that I have the logic correct, but I think that my code may have some memory errors. I'm not asking for you to give me any asnwers, but a little help in the right direction would … | |
I have a couple of easy questions, but I'm not that good at C++ yet, so I need your assistance... I'm using an array to store for: 1) Test grades 2) Project grades 3) Lab grades I want it to print out like this: Test Scores: 92 73 81 My … | |
My output looks like this "T h i s m y o u t p u t" and I want it to look like this "This is my output". Any suggestions? I guess what Im asking is how do you take words from a file and put it into an … | |
I am pretty new to programming. I am writing a fairly small and simple trivia program. It will be my 5th program to date. My biggest problem is how to add a list of Q/A. The program has 2 functions that handle the trivia part of the game. The 1st … | |
im trying to learn how to make a if/then statement that will take a number, possibly with a decimal and round it to the nearest integer. Like so.. if 3.4 is the number, then the final would be 3 not 3.4 how would i do so? | |
I've been trying to find a complete list of the c/c++ libraries and all of their functions, but everywhere I look, I only find a part, never the whole thing. Is there a website where I can find such detailed list? | |
Hi guys I am new here and I need some assitance with my Merge Sort. I have it written but its not working correctly. It just gives me -1, 1. The way my program works is that the sorts are handled inside the Class Sort so there is no need … | |
I have to write a code where I tell the user to enter a sentence that has at least three commas. Then i have to print out each of the three words that appear after each of the first three commas. I am so lost and it is just introductory … | |
Hello! First of all, sorry if my english sucks, it's not my first language >_< I want some help of you guys. I got a vector of dates named ListDate[i], and I want to do a search on it, to find the last days the user defines, for example: The … | |
Using a windows forms application, most appropriate thing to use seems a listbox. Been searching around a bit, but I never found anything which seemed to explain it thoroughly. The idea is to load data from an XML file, and then display it in a list, presumably a listbox. Basically … | |
I need to make a program to check if the entered number is palindrome or not i.e. if u take a number and reverse it it will be the same old number for example if u take 121..then if u reverse the number it will be 121 and so 121 … | |
I have a class named SString, which is a user defined c style string class. The constructor for SString dynamically allocates a char array. Then I have a CD class which contains data about a specific CD, like artist, title, year, etc. They are defined as SString instances. I want … | |
This is a stripped down version of an error I'm getting in a different program, but this is simpler. The problem comes from if I try to set something that isn't an int in MyClass [code=c++]#include <iostream> using namespace std; template <typename T> class MyClass { private: T data; public: … | |
I am trying to develop a code that will take a number similar to 8.23 or any number with a decimal and convert it to a whole number like 8. I would like to do this in an if/then statement but i dont know which process to call it from. | |
I think I have a convertingproblem when using stringstream. I multiply 0.995 * 19.99 wich is: 19.89005 The first messageBox do show because 19.89 < 19.89005. Then I convert Total to string and back to double again and do the same check if: 19.89 < NewNumber But here the MessageBox … |
The End.