49,761 Topics

Member Avatar for
Member Avatar for Teseng

The normal VB forums werent much help unfortunately, so i've joined the great looking community here :) So, sorry if anything about this post is wrong, i'm new! But anyways, can anyone give me any insight on how i can accomplish this? I will need to pass the vb6 udt …

0
38
Member Avatar for close_encounter

I'm stuck trying to figure this out. I know I'm going to need a counter I just don't know where or how to implement it. I'm reading from a .dat file. The contents of the file look like this. google.com 760000 250 yahoo.com 340000 170 daniweb.com 230000 125 etc. I …

Member Avatar for Fbody
0
132
Member Avatar for Atlanticspace

Ok so i have the following functions that does a recursive merge sort. I need to pass my arrays in by reference since I have many different arrays containing different things. Im comparing lists[index1].get_type() vs lists[index2].get_type() yet when i run this i am getting the same event with the same …

Member Avatar for Narue
0
167
Member Avatar for dalaharp

Hi, i am trying to implement gabor filter for image enhancement. if someone has any code snippet or pseudocode or any idea of implementing it in C, please help me out with it. thanks.

Member Avatar for hayat alazzeh
0
1K
Member Avatar for newcoder192

Im new to dynamic arrays. What im trying to do is get a line of number that are stored as charachters , but implement a dynamic array to store the charachters so the size of the number(i.e. number of digits) is unkown. After i convert the charachters to an integer, …

Member Avatar for Narue
0
80
Member Avatar for jimJohnson

I am writing a program and stuck on entering standard deviation. I have looked on previous forum topics and from what I have found this is what I have coded but when I cout my standard deviation I keep getting a 1.#f Can one of you guys take a look …

Member Avatar for VernonDozier
0
2K
Member Avatar for manish.ranjan

if i want user to enter a single char in a variable...then how to restrict him/her from typing more than 1 character.....??

Member Avatar for manish.ranjan
0
74
Member Avatar for Atlanticspace

Ok so i have a merg sort algorithm in my code yet for some reason its not letting me change it to what I need. Im not seeing where I have the mistake. any help? here are my files along with error. I am trying to sort the events by …

Member Avatar for Atlanticspace
0
221
Member Avatar for MShadows

Hi guys, I've been using C++ for quite a while now, maybe around a year and something has always bothered me but I've never discovered a better way to deal with it. When I define a class I will always define a header file. As an example take this: foo.h …

Member Avatar for Ancient Dragon
0
69
Member Avatar for Dinglish

i have a piece of an unfinished program. try to run it... if you go straight to option 3 and input values, how do i output these values in option 4 ? i tried outputting my declared variables it wont work ? why is this ? i apologize the code …

Member Avatar for Dinglish
0
119
Member Avatar for clement99

Hi Guys, I need your help here, I'm working on a assignment, and had done up the source code, but I'm getting wrong results: Summarised below: I screenshot the output: [IMG]http://i4.photobucket.com/albums/y101/clement_twk/Output.png[/IMG] I noticed under the output on these 2 lines are wrong: Addition A + B = 100+103i+106j+109k I supposed …

Member Avatar for Banfa
0
175
Member Avatar for Rhap

[CODE]//// point.h using namespace System::Drawing; class point { protected: int x; int y; Color col; public: point(); };[/CODE] [CODE]////point.cpp #include "stdafx.h" #include "point.h" point::point() { x = 0; y = 0; col = Color::Blue; }[/CODE] [CODE]///Error c:\...\point.h(10) : error C3265: cannot declare a managed 'col' in an unmanaged 'point' 1> …

Member Avatar for jonsca
0
233
Member Avatar for vihrao

I am using operator to add two matrices stored inside matrix objects. I instantiate and initialize two matrices. Then I call operator to add them. But before adding the two matrices: m1 and m2 , their destructors gets called. When I start adding the matrices since m2 matrix array has …

Member Avatar for VernonDozier
0
491
Member Avatar for lukebradford

Hi all, I would like my program to be able to search for a string using Google and then use the number of results. I'm not sure what exactly this will entail in I/O terms so I guess I'll leave it at that and see what you guys have to …

Member Avatar for lukebradford
0
119
Member Avatar for blahbla

hi i was given an assignment to do i did it but i'm always getting a segmentation fault i found out where i'm getting the problem but i dont understand why i'm getting the problem heres the code: the extra cout's that dont make sense are just to tests to …

Member Avatar for blahbla
0
71
Member Avatar for defender_

Hi, i am having this problem with c structure pointers. this is snippet from a larger program in which i use temp* to assign values to different other pointers but whenever i update temp* it automatically updates the value of all other assigned pointers as well. pointer b points to …

Member Avatar for defender_
0
64
Member Avatar for iammfa

Hi, This is an exercise I solved it, I want to know, is my solve is the best solve or there is notes, if there is a notes, I'm glade to hear it: [B]The Exercise:[/B] [CODE]Make a program that calculates the sum, mean, minimum, and maximum of a series of …

Member Avatar for chiwawa10
0
162
Member Avatar for Chris_Giarla

Hello everyone! So I am still coding this game and every time I make progress somewhere I take a step back somewhere else. I know that it is late but I am re-writing from scratch. Anyway, the basic concept of how I am doing this now is as follows: I …

Member Avatar for Fbody
0
200
Member Avatar for mrnobody

Hi, Can somebody please advice me on raising/throwing custom exceptions? Here is what I'm trying to do. [CODE] //MainFunction() will call SubFunction() to perform some ADO function. MainFunction() { try { SubFunction() //OtherFunction1 //OtherFunction2 } catch(...) { //to catch custom exceptions raised by me in SubFunction() so that it will …

Member Avatar for caut_baia
0
82
Member Avatar for BLKelsey

Guys, I could really use some direction in getting this console program working for a C++ assignment. I'm in my 8th week and although I've been doing good on past projects, this is a multiple file assignment and I'm confusing myself the more I try to understand. I feel like …

Member Avatar for BLKelsey
0
267
Member Avatar for smkdude

Hello, I am currently trying to write a board game, and I am having trouble making each GameTile on the board access the same Point on the board. Each GameTile contains a certain number of Points, and sometimes Points overlap(the Point on a corner of one tile may be the …

Member Avatar for smkdude
1
164
Member Avatar for Rexzie

Hi fellas..this is my first post here..I am new to this 'hardcore programming' and all..I came across a problem for which I killed some time..with no fruits..It might be simple,trivial or even 'famous' for you guys..Any assistance is appreciated much.So here it goes.. Given an integer,the problem is to find …

Member Avatar for Rexzie
0
165
Member Avatar for d34dw4rd

Parking lot simulation This program simulates the operations of a parking lot. This particular parking lot consists of two alleys, each of which is wide enough for only one car and is closed at one end. You must use a Link List. Alley A Alley A is the primary parking …

Member Avatar for Lerner
0
283
Member Avatar for superchica08

hello everyone i was wondering if anyone would be able to help me in an program i have to do. the program wants me to use my initials A and G and plot them on using gotoxy() function to make some thing that look like the picture in the link …

Member Avatar for superchica08
-1
912
Member Avatar for trantran

Is there a safe and legal way to go from a pointer to a member of an object to a pointer to that same object?

Member Avatar for trantran
0
129
Member Avatar for aaronmk2

I am trying to use pow(2,a); and I am getting a error 'pow' ambigous call to over load function. I don't understand why, I added the cmath libarary. Here is the code. [CODE] #include <iostream> #include <cmath> using namespace std; int binaryToDec(int); int main() { binaryToDec(1110); return 0; } int …

Member Avatar for aaronmk2
0
92
Member Avatar for DrueY

Hi Everyone, I need help understanding how these traversals work :s [url]http://en.wikipedia.org/wiki/Tree_traversal[/url] On this page they have the code for these tree traversals, but I don't quite get it. For example, printing using the in-order traversal (using the example tree provided on the site) should give: A, B, C, D, …

Member Avatar for DrueY
0
455
Member Avatar for babzog

Hey folks, Probably a stupid error on my part, but I'm having trouble with this. Using ioctl calls to get adapter info on a linux box. I've got it working using a fixed size array (of struct ifreq) but it's not working when I try to use a dynamic array …

Member Avatar for babzog
0
126
Member Avatar for daino

Hi Would anyone know if there is a book explaining all the various C++ Libraries and what features they encapsulate? I'm thinking in terms of, for example: iostream -- then a list of features and functions in iostream etc. Could anyone suggest any books or good reference material for this …

Member Avatar for daino
0
217
Member Avatar for vihrao

I am trying to add two matrices and get error when I add two matrices in the line rslt = m1+m2 using operator overloading. Both m1 and m2 are matrix classes. Here is the code: [CODE] int main(int argc,char *argv[]) { matrix * rslt; //matrix *m1 = new matrix(); matrix …

Member Avatar for vihrao
0
230

The End.