49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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. | |
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, … | |
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 … | |
if i want user to enter a single char in a variable...then how to restrict him/her from typing more than 1 character.....?? | |
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 … | |
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 … | |
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 … | |
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 … | |
[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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … |
The End.