102 Topics

Member Avatar for
Member Avatar for SoftwareGuy

Hello. I've seen some tutorials, but I can't find one that particularly suits my needs. What I'm trying to do is this: I have a form that contains an object. I want this object to be able to modify its parent form when an event for it is thrown. The …

Member Avatar for SoftwareGuy
0
229
Member Avatar for wombomatt

I am currently working on a banking system that has 3 classes. customer, savingsAccount and transaction. I have created the 3 classes but am having problems with the saveAcnt object in the customer class. I need to link it with the savingsAccount class. Any help would be appreciated. Also I …

Member Avatar for dkalita
0
254
Member Avatar for ritu143

Hi, I am new to c++, facing difficulty in compiling the following code [CODE]#include <iostream> #include<string.h> using namespace std; class myclass { public: int i, j, k, *l; // accessible to entire program static int *m; }; int myclass::*m = NULL; int main() { myclass a, b, *p; a.i = …

Member Avatar for rubberman
0
2K
Member Avatar for JamieLynnSEO

I've been working on creating a plan to optimize my company webpage for SEO... Ive gathered a whole bunch of information and need to make an outline to present to my boss. Does anyone have a general outline that i can reference, or anything that could possibly help me put …

Member Avatar for JamieLynnSEO
0
127
Member Avatar for C#Jonathan

Hi, I've just migrated an application to Visual Studio 2010 and upgraded a third party add-on called Visual WebGUI to .Net 4. I now have a problem with assembly references to the third party DLLs The latest version of the Visual.WebGui.Forms DLL for example is at 4.0..... . Our application …

Member Avatar for C#Jonathan
0
146
Member Avatar for barevhayerable

hello everyone.. please answer me , if you can give me working code I thought about something... I know that everything in our machines have addresses.. I thought about watching everything in my computer's random access memory(RAM) But I don't want to see the information in view of garbage , …

Member Avatar for Ancient Dragon
0
193
Member Avatar for pinsickle

I should remember this but I am rusty. I'm passing a char* [] to a function which will hold data that I have extracted using strtok. I've tested the output and it is doing what it is suppose to, at least it is inside of the function. As soon as …

Member Avatar for pinsickle
0
186
Member Avatar for weasel7711

I have a small company Database that tracks our repair orders. I have a query that I would like to execute based on criteria that the user inputs. I am new to VBA so most of my code is based on google research. I took a technique of wrapping my …

Member Avatar for weasel7711
0
248
Member Avatar for Gh.S

Hi, This is my first post in daniweb! I've two questions: First question: I'm currently studying about classes, and could get '=' overloading format: [CODE]​[COLOR="Red"]T&[/COLOR] T::operator =(const T& b);​[/CODE] Why we set it to return reference? what's the use? Why couldn't simply be: [CODE]​[COLOR="red"]void[/COLOR] T::operator =(const T& b);​[/CODE] I've used …

Member Avatar for Gh.S
0
263
Member Avatar for jadelopez

Arrays are passed by reference (address) by default. Function takes an array and tries to return average, sum of elements, and the sum of the squares. Calculate and display sum, sumsq using for loop in the function definition display sum, avg, and sumsq to see the difference between the values …

Member Avatar for VernonDozier
0
163
Member Avatar for madan.uba@gmail

0 down vote favorite hi, I had a problem with adding reference in my C application. I am unable to add linker reference to "libiconv" in my data compresser project.I have download "libiconv" library but confuse in adding reference which show error in compiling.I'm using Dev C++ for developing my …

Member Avatar for Ancient Dragon
0
607
Member Avatar for mommabear

[B]Specifications (minimum):[/B] The CDROM class contains the following, private, data members: string Name; // The Name of the CDROM string CDType; // The Type of CDROM float Cost; // The Cost of the CDROM [I]The ONLY recognized (i.e., legal) CDROM types are, “Game”, “Word”, “Compiler”, “Spreadsheet”, “Dbase”, and “Presentation” (AND, …

Member Avatar for mitrmkar
0
148
Member Avatar for tKc

I am trying to learn parameters by reference. In my code i try to compute the sum between 1 and n. This is what i got so far and if i input 5 it outputs a extremely high number. Any suggestions? [CODE] #include <iostream> #include <cmath> using namespace std; void …

Member Avatar for csurfer
0
131
Member Avatar for Knome

I've searched all over google and this site. I've found a few hints here and there but after i make the changes either my compiler throws a fit or it doesn't produce the desired results. Here's what i want: I want to create a linked list in the main function …

Member Avatar for Martin B
0
4K
Member Avatar for cortez716

If you are viewing my post, thank you for taking the time to hep me out. It is greatly appreciated. Here is what I'm trying to do: Write a function called Square2 that will take as arguments an integer and a double. With the use of references i want my …

Member Avatar for cortez716
0
162
Member Avatar for Garrett2011

Consider following function: [CODE]void func(const char & input){ //do something }[/CODE] Apparently it makes sense for the parameter to be constant value not reference to constant, Now may a compiler optimize that to constant value so that it'll be the same as following ? [CODE]void func(const char input){ //do something …

Member Avatar for Narue
0
135
Member Avatar for Garrett2011

In a scenario that caller doesn't necessarily need callee to use memory of one of its local variables of a primitive type to track that variable later for anything, I know that when passing that variable to a callee function; it'd be done by value and that makes total sense …

Member Avatar for TechnoCat
0
136
Member Avatar for jay1648

[CODE] #include <stdio.h> #include <string.h> typedef struct { char firstName[50]; char lastName[50]; int age; }Person; void ModifyPerson(Person*); int main() { Person person; strcpy(person.firstName, "firstName"); strcpy(person.lastName, "lastName"); ModifyPerson(&person); printf("First Name=%s\nLast Name=%s\n",person.firstName, person.lastName); system("PAUSE"); } void ModifyPerson(Person *p1) { //This doesn't modify the original variable declared in main function Person person = …

Member Avatar for N1GHTS
0
2K
Member Avatar for martin_anastaso

Hello all, I am getting the following linker error when I try to pass an object of type "string" to a function. Otherwise, the code compiles correctly. exercise_3.10.obj : error LNK2019: unresolved external symbol "void __cdecl reshuffle(unsigned int,unsigned int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?reshuffle@@YAXIIV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main Here is …

Member Avatar for martin_anastaso
0
204
Member Avatar for Empireryan

I am writing code for a guessing game program. The game is supposed to generate a random number, 3 digit number and let the user guess what it is, providing feedback for every wrong input. It is also supposed to perform 10 iterations, keeping track of the number of guesses. …

Member Avatar for Fbody
0
512
Member Avatar for sbrohee

Hi everybody, I think this question will be kind of stupid for you ... but I am fighting with since yesterday evening. I have a class Test defined as such in the hpp file (Test.hpp) [CODE] #include <iostream> #include <vector> using namespace std; class Test { public: Test(); static const …

Member Avatar for sbrohee
0
423
Member Avatar for shannon.archer

Hey I've just started using C# and wanted to start employing DirectX as well however before I can start all the tutorials I go to say I have to add a reference to the library. Now I've installed and reinstalled the June 2010 DirectX SDK a few times but the …

Member Avatar for shannon.archer
0
233
Member Avatar for new_programmer

What is the difference between pointer and reference Please explain in detail. I want its full concept , so pls explain in detail

Member Avatar for daviddoria
0
91
Member Avatar for daudiam

Hi, I'm just a little confused as to what to we call a reference. [CODE]A ob=new B();[/CODE] Here B is a subclass of A. Should we say "ob is a reference of A which has been assigned an object of B" or "ob is a variable of A which has …

Member Avatar for JamesCherrill
0
91
Member Avatar for slices

Hello guys, Can anyone tell me why do I get the error message in the code below? The code fires onPageLoad. What should I change? [CODE]Dim con As New SqlConnection con.ConnectionString = "Data Source=s01.winhost.com;Initial Catalog=DB_10078_kdn;Persist Security Info=True;User ID=xxxxx;Password=******" Dim s As String s = "SELECT * FROM Users WHERE Seller_id …

Member Avatar for slices
0
472
Member Avatar for salowe

This year, STLP has added an Iphone App competition that I am interested in. However, I know little to nothing about creating one and could use any help, references, tutorials, etc. you have. Are there any sites or programs that I could use/need to make an Iphone App? [B]Note:[/B] Being …

Member Avatar for blud
0
133
Member Avatar for DhCoder

Here is the error message Object reference not set to an instance of an object. Line 18: FuelDSTableAdapters.FuelTableAdapter dsFuelTableAdapter = new FuelDSTableAdapters.FuelTableAdapter(); Line 19: decimal totalFuel = (decimal)dsFuelTableAdapter.TotalFuel(DateTime.Parse(TextBox2.Text), DateTime.Parse(TextBox1.Text)); Weird thing is - it works based on the dates I put into the text boxes. I think it has something …

Member Avatar for rohand
0
144
Member Avatar for ntagrafix

Hi Guys! Am revising for my upcoming exam. I was trying a question in the past papers. It read: [INDENT]A power-tool hire company requires an object-relational (e.g. Oracle) database to record details of their tools and rentals. Customer details, including their name, address and telephone number, must be recorded for …

0
61
Member Avatar for blackblizzard

Hi everyone, I'm dealing with a problem I can't figure out how to solve, and I'd love to hear some suggestions. [NOTE: I realise I'm asking several questions; however, answers need to take into account all of the issues, so I cannot split this into several questions] Here's the deal: …

Member Avatar for blackblizzard
0
154
Member Avatar for flashkarni

hello, i'm having trouble printing arrays to file. each time i run this code, i get only two results max. if the array has 2 genres, i get them but no languages. if the array has 1 genre i get it and only 1 language. if the array has more …

Member Avatar for d5e5
0
127

The End.