49,766 Topics

Member Avatar for
Member Avatar for dmanw100

Can anyone spot the error in my code? The program will enter the last while loop but continue in an infinite loop... I figured fresh eyes may help spot the flaw! [CODE] int xlist[1500], ylist[1500], counter = 0, tempx, tempy, tempcounter; bool assign = false; while(counter < 1500) { xlist[counter] …

Member Avatar for dmanw100
0
108
Member Avatar for mauro21pl

Hi I wrote that peace of code but it is not doing what is suppose to do. It should saved my numbers into linked lists in incresing order. It doesn't. What am I missing. Thanks [CODE]#include<stdio.h> #include<conio.h> struct Node { int number; struct Node *link; }; typedef struct Node* NodePtr; …

Member Avatar for Salem
0
100
Member Avatar for dmanw100

I have a program that has a custom class that I would like to create many of and access them like an array. Example: [CODE]#include <iostream> using namespace std; class Thing { public: Thing(int value) { a = value; } int doStuff(int diffValue) { a = diffValue + a; } …

Member Avatar for Agni
0
117
Member Avatar for monkey_king

I'm doing my own array template version of an array. I'm having some problems overloading a method. I'm doing a specifik version of a "print()" if the type of array is <char>,(i'm saving bools as char). this works without problems. I just needed to add a templete<> infront of my …

Member Avatar for monkey_king
0
112
Member Avatar for arfte

Hi, Anybody knows how to expose an interface from unmanaged MFC C++ to managed c++ within the same application ? I have a managed c++ class and an unmanaged MFC c++ class, and am trying to create an object of managed class with keeping the application's compile option as unmanaged.

0
45
Member Avatar for jadedman

do you know whats a cout? what are its function and in what library can it be found?

Member Avatar for x3mario
0
141
Member Avatar for shamila08

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

Member Avatar for shamila08
0
119
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
122
Member Avatar for swbuko

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 …

Member Avatar for Ancient Dragon
0
130
Member Avatar for gregorynoob

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!

Member Avatar for gregorynoob
0
86
Member Avatar for nizbit

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

Member Avatar for Lerner
0
240
Member Avatar for mauro21pl

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 …

Member Avatar for mauro21pl
0
82
Member Avatar for Moschops

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 …

Member Avatar for Moschops
0
165
Member Avatar for balakrishnan.kb

hi what is the purpose of virtual function, please give me idea thanks bala

Member Avatar for Narue
0
108
Member Avatar for shamila08

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 …

Member Avatar for Nick Evan
0
115
Member Avatar for jadedman

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?

Member Avatar for Jawahar prabhu
0
1K
Member Avatar for meabed

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

Member Avatar for ArkM
0
848
Member Avatar for helixneu

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); ????

Member Avatar for iamthwee
0
92
Member Avatar for F_Rock

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 …

Member Avatar for jencas
0
104
Member Avatar for efarook

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

Member Avatar for efarook
0
109
Member Avatar for superdave421

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 …

Member Avatar for Salem
0
79
Member Avatar for NinjaLink

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 …

Member Avatar for vmanes
0
90
Member Avatar for JackDurden

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 …

Member Avatar for Alex Edwards
0
182
Member Avatar for erabyss

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 …

Member Avatar for Ancient Dragon
0
85
Member Avatar for brent.lozano001

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?

Member Avatar for ArkM
0
245
Member Avatar for AlSal

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?

Member Avatar for BeyondTheEye
0
93
Member Avatar for bones10925

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 …

Member Avatar for kylcrow
0
103
Member Avatar for brodster89

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 …

Member Avatar for VernonDozier
0
133
Member Avatar for Cindy_

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 …

Member Avatar for Cindy_
0
194
Member Avatar for BeyondTheEye

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 …

0
57

The End.