64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for aagomez

I am currently having problems updating a public data member that is a vector of pointers. I have a class called node, that has a public data member called list. list is [icode]std::vector< node<T>*>[/icode] and should contain pointers to other [icode]node<T>[/icode] objects. I am trying to overload the assignment operator, …

0
57
Member Avatar for serkan sendur

i need a third way to do it at compile time without command line but using visual studio editor. at : [url]http://www.csharphelp.com/archives/archive36.html[/url] two ways are as follows: 1.Define in your C# program 2.Define them at command line on compile time Here is example for first way: Example: [CODE]#define TEST using …

Member Avatar for Rashakil Fol
0
102
Member Avatar for erialclaire_238

anyone here who can help me on this? I need to create a program that can output the location of 5 inputted values. sample input/output; enter 5 values: 4 5 9 8 3 enter no to search: 8 8 found in location 4 HOPE YOU GET IT> pls give me …

Member Avatar for erialclaire_238
0
319
Member Avatar for Vallnerik25

I have some more basic questions about using overloaded operators. This is just a hypothetical question. Say I have 2 overloaded operators functions defined for a class. The overloaded operator= function and the overloaded+ function. Now I want to create the overloaded operator+=. Can I define that function in terms …

Member Avatar for Vallnerik25
0
143
Member Avatar for stephen lowry

hi guys wondering if you can help i have thrown together a rough and ready project using winsock, now it is just thrown together to see if i could get it to work the problem is (well it does work first of all) when i receive data it is in …

Member Avatar for agrothe
0
123
Member Avatar for killhha

the program im trying to make will select a random movie from a list of movies and tell the user which 1 he should watch. first the program will ask how many movies there are. it will then ask for the titles of each movie and then it will output …

Member Avatar for killhha
0
183
Member Avatar for clarkpoon

[B]Need Help To Make First Letter Of All Words In A Textbox To Uppercase[/B] so, i have this code to convert first letter of word to uppercase: [CODE]Private Sub txtFields_Change(Index As Integer) txtFields(Index).Text = UCase$(Left(txtFields(Index).Text, 1)) & LCase$(Mid$(txtFields(Index).Text, 2)) txtFields(Index).SelStart = Len(txtFields(Index).Text) End Sub[/CODE] but, this was before i realize …

Member Avatar for clarkpoon
0
267
Member Avatar for onlymsfrance

Hello there! So I have created a project for school. I have this program running without errors. The problem is it doesn't perform the math. Any ideas or suggestions? Here is the output when ran...and the code as well. Please choose your operator : + (addition) - (subtraction) * (multiplication) …

Member Avatar for WaltP
0
80
Member Avatar for trinity_neo

help needed to solve this series E(x)=1-x^2/2!+x^3/3!-x^4/4!+x^5/5!+....................

Member Avatar for siddhant3s
0
174
Member Avatar for snowfish

I am facing a problem when i tried to run the python code. The error is " Name error:global name 'receive' is not defined". May I know how can I solve the problem? I am using this code in my mobile phone to communicate with microcontroller to control ON/OFF ports …

Member Avatar for snowfish
0
388
Member Avatar for rouse

I found a demo version of a jQuery accordion menu that I liked. I want to implement it on my soon to be published home page, What it does not do is that it pushes and pulls the content below it, as down as the accordion expands and contracts. I …

Member Avatar for rouse
0
107
Member Avatar for slider_44

Hello everyone, I need help. I have two table name: Table 1: resortid resortlocation Table 2 resortid resortname Now I want to get the maximum of resortlocation then getting the name of that specific resort also. I am having a hard time. Can someone please help me? Thanks.

Member Avatar for slider_44
0
97
Member Avatar for rajeesh_rsn

Hi I had a database and a column called "details" in it. I need to select data from that column and show only limited characters of it. For eg: Original : The quick lazy fox jumps over a lazy dog. Display : The quick lazy ... How can I do …

Member Avatar for rajeesh_rsn
0
94
Member Avatar for ace_dman

Right now Im still beggining to learn the idea of pointers,basically I just want to ask a question about the code I have found, I mean I want to know what is happening right here...the comments on the code serve as my question just look at below... [CODE=cplusplus] #include<iostream.h> struct …

Member Avatar for ace_dman
0
103
Member Avatar for GadiK

Hello dear forum friends. I know that this subject has been dealt with before. I read the threads about this issue in this forum however I still couldn't make it work. So I'm bringing this up again and hopefully you'll find it in your hearts to forgive and help me. …

Member Avatar for GadiK
0
832
Member Avatar for brakeb

Greetings, I have reached a point where I need some help. I have a tivo at home, and I'm trying to script something that will allow me to 1.) pull the XML off of the tivo, and save the file, 2.) Take the text in the XML, and pull out …

Member Avatar for brakeb
0
383
Member Avatar for TidusBlade

Hey! I'm pretty new to programming, and since I'm a little too young to join any sort of course, decided to self-teach myself, and decided to start off OO programming through Java, seeing as I'll be picking up Computer Science next year as a subject, and it has quite some …

Member Avatar for TidusBlade
0
359
Member Avatar for arkaprava

Accorting to MySql manual and web site I modified the environment variable for installing JConnector for mysql as follows : CLASSPATH C:\Program Files\Java\mysql-connector-java-5.0.7\mysql-connector-java-5.0.7-bin.jar where my MySql connector Folder is placed on Java folder in program files (I put there willingly) But actually when I want to do any testing program …

Member Avatar for peter_budo
0
164
Member Avatar for ITech

hi, i have a table with customer information(name, date of birth etc) i have created a windows form in c# and binded it with the database. the thing i want is retrieve the DOB from database and calculate the customers current age n display in a label in the form;; …

Member Avatar for ddanbe
0
106
Member Avatar for lehe

Hi, I am goint to create a very large array but have this error when running this code [code] #include <iostream> #include <limits.h> #include <cstddef> #include <cmath> using namespace std; int main() { cout << UINT_MAX << " " << ULLONG_MAX << endl; cout << pow(pow(24,2),4) << endl; unsigned long …

Member Avatar for nucleon
0
189
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
435
Member Avatar for daviddoria

I've seen a few questions about this floating around here (mostly from me :) ) but I finally got this is into a nice working form - maybe it will be useful for someone. It is called like this: [code] void TestParallelSort() { vector<double> Numbers; Numbers.push_back(3.4); Numbers.push_back(4.5); Numbers.push_back(1.2); vector<string> Names; …

0
230
Member Avatar for Traicey

I need to keep track of odd and even number which will be accepted from the user 10 time after the user entering them I have to print something like odd number = "The number of odd numbers from what she/he is inputed" and even numbers = "The number of …

Member Avatar for Traicey
0
104
Member Avatar for kjetil4

Hi, i`ve made a simpel media player that can open and play mp3 tracks. And now i wanna try to make it open/create and save playlist. any hints on how to start?? Apreciate your time! =) the code for the player is here [url]http://www.daniweb.com/forums/thread177216.html[/url]

Member Avatar for kjetil4
0
633
Member Avatar for webCurious

Hi, There is a problem with session ID haunting me for a couple of days. In Mozilla Firefox, the session ID changes every time the page is refreshed. But in IE it does not change and is working correctly. Is this because of some browser settings? Since I am checking …

Member Avatar for webCurious
0
610
Member Avatar for eugene83

I'm new to C++ and I'm having a hard time with classes the question is [COLOR="green"]int main(void) [COLOR="Green"]{ Point ary[5] = { Point(1, 2), Point(3, 4), Point(5, 6) }; Point sum; sum.SetXY(sum.GetSumX(ary, 5), sum.GetSumY(ary, 5)); sum.Print(); return 0; }[/COLOR][/COLOR] for this main function how do I make a Point class …

Member Avatar for siddhant3s
0
94
Member Avatar for Frani

i have been getting this error, <identifier> expected System.out.println("Enter the name of the lab this computer is located: \t"); room = scan.nextLine(); while (room.length() == 0) { System.out.println("Error: This field cannot be empty"); System.out.println("Enter the name of the lab this computer is located: \t"); } room = scan.nextLine(); } System.out.println("Enter …

Member Avatar for Frani
0
130
Member Avatar for Caled

Hello Experts, I need to use JOptionPane a lot in my Java exercises. Instead clustering each Java files with this JOptionPane syntax plus the parameters, I've decided to use sort of class called showFrame which has the method to show message dialog and input dialog. At the moment, im putting …

Member Avatar for stultuske
-1
443
Member Avatar for phoenixlsk

hi i need some help. i have to do a linked list using XOR and i don't know how to do it. thanks

Member Avatar for manojthesingham
0
376
Member Avatar for Tank50

HI I installed Visual Studio 2008,but I only installed C#.I want to create new database connection,so what I did is in Database connection->Add connection->select Data source But MS Sql server compact 3.5 and MS sql server database File are avaliable in here I cant find the sql native client,only MS …

Member Avatar for Tank50
0
124
Member Avatar for jenilgandhi
Member Avatar for Valkerion

Greetings from Greece. We got a Hangman assignment for my Class at Java. I m just a begginer.And the whole input/output thing is done either by console (system.out.println) or with JOptionPane. So here is my code [code] import javax.swing.JOptionPane; import java.util.*; public class Hangman { public static void main (String …

Member Avatar for blog_user
0
1K
Member Avatar for death_oclock

My program is getting hung up somewhere in the function [ICODE]evolveRealization[/ICODE] and while it is stuck its memory usage is increasing by around 1MB per second! While it is building up generations, it was designed to only use the most recent one, and the old ones should be freed. So …

Member Avatar for Ancient Dragon
0
151
Member Avatar for danielle23

I am working on finished up a program using stacks. I am getting some funky errors when I attempt to rebuild&compile, so I am certain something in the code is not right. [B]Program Objective[/B]: Just to brief, I am using main and a .h file with classes. I am supposed …

Member Avatar for danielle23
0
1K
Member Avatar for soulreaver20500

Hi everyone, i am very very new to c++... i have just finished a c++ in 21 days course but still rather in awe of the expanse of how it works. I was wondering if anyone on here had any spare time to help me get used to using the …

Member Avatar for Narue
0
148
Member Avatar for sid78669

I am trying to use the rand function to generate numbers from an array containing 3 ranges. This is unfortunately not working. I know I am doing something wrong, either with rand() or with my array declaration. Can someone please correct me: [CODE=perl] my @numbers = [48..57, 97..112, 65..90]; $num …

Member Avatar for KevinADC
0
97
Member Avatar for cheapterp

Here's the problem: One of my scripts allows users to upload MS-Excel files. When uploading the file, users are also required to enter details related to the file - details like start date, stop date, a description of what the file contains, and the file ID#. This Excel file contains …

0
114
Member Avatar for Ψmon

Hello all - I need homework help. This part of the assignment is to create a struct, called StudentRecord, the first attribute of which needs to be size 20. My implementation of this is at (1). After instantiating a StudentRecord named MyStudent, I'm to assign some value to it. I …

Member Avatar for Ψmon
0
168
Member Avatar for super zach

Hi, [code] A= [1,3,5] B=[12,24,36,48,60,72] [/code] Here list A is a list of the elements in list B i want to remove. How can I do this so that I would get list B to then look like: [code] B=[12,36,60] [/code] Thanks in advance, Zach

Member Avatar for Max721
0
323
Member Avatar for Max721

Hi all. Is there any way to extend maximum timer count value above 0x7fffffff i.e. 24.8 days? [code] #include<windows.h> #include<stdio.h> VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime ); void main() { UINT time MSG msg; ::SetTimer(NULL,0,time,TimerProc); GetMessage(&msg,NULL,0,0); } VOID CALLBACK TimerProc( HWND hwnd, UINT uMsg, UINT_PTR …

Member Avatar for nucleon
0
103
Member Avatar for Karas87

Hi everybody, I have the following URL to grab: [url]http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic[/url] I need the 2 ids. But it doesn't seem to work. [CODE=JSP] var url = "http://www.mysite.com/profile.php5?id=43534&mode=photo&pic_id=3453432#pic"; var exp = new RegExp("^http:\/\/w?w?w?\.?mysite\.com\/profile\.php.?\?id=(\d+)&mode=photo&pic_id=(\d+).*?$"); if (exp.test(url)) { var found = exp.exec(url); alert("found0: "+found[0]+" found1: "+found[1]); } [/CODE] What am I doing wrong ? …

Member Avatar for Karas87
0
146
Member Avatar for dev_kc

This is the code i m using for updating table,which the user is entering through textbox in vb form Con.Execute "update Details set NAME='" & txtName.Text & "' and DT_OF_BTH='" & txtDOB.Text & "' and DT_OF_JOING='" & txtDOJ.Text & "' and SALARY_ACC='" & txtAccountNo.Text & "' and REMBSMNT_ACC='" & txtRmbr.Text …

Member Avatar for vb5prgrmr
0
109
Member Avatar for AlSal

I have the following C++ code: [code=syntax] void f(int* x) {...} void f(char* x) {...} int main() { ... f(0); ... } [/code] I understand that this has a problem interpreting which function to call. I also think I can get rid of this problem by giving it two different …

Member Avatar for Narue
0
103
Member Avatar for ctrl-alt-del

Hi all! ...jup.. I'm back again.. This time I seem to have troubles with my array, I want it it to do a fairly easy job, but I can't figure out the syntax of how to do this. I have a form with several sorted TextBoxes, named accordingly: tb_dec[1-6] tb_bin[1-6] …

Member Avatar for ctrl-alt-del
0
115
Member Avatar for mahela007

The readlines() method for file objects return the lines as a list (or is it a tuple?) however each element contains the \n character which prevents the element from being used in another function. How do I remove the \n character from the elements? I have made some code which …

Member Avatar for Gribouillis
0
118
Member Avatar for vuyiswamb

Good Morning Friends, I have a SP that is Supposed to Restore a Database from a Backup. In some Clients this works well but in those particular client its a Problem. The version is SQL 2005. Here is the Code that fails [CODE] set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go …

Member Avatar for vuyiswamb
0
640
Member Avatar for bcm

I am creating a project in which I have to show all the columns of database table named LMTS_compatibility in a datagrid. How can I do it in [COLOR="Red"]VB.NET[/COLOR] I am able to connect but cannot enter the values in datagrid and display it. Please Help!!!!!!!!! :icon_cry:

Member Avatar for selvakumar789
0
89
Member Avatar for PinoyDev

Good day! Im so confused of auto incrementing a receipt number format. example i have a starting receipt no. (00000) in a mysql field called or no. when the paymentfrm load, the textbox that contains the receipt no will be added by one so that it will become 00001. I …

Member Avatar for PinoyDev
0
83
Member Avatar for claritydigital

Hi all, Im learning PHP & SQL very quickly, but still have issues with counting this, and incrementing that.... so if someone could help, you'd be(proverbially) teaching a man(woman in my case..lol) to fish.... Im constructing a form which in part, allows user to input instructions. I would like the …

Member Avatar for somedude3488
0
157
Member Avatar for stickboy

Hello I know I may receive some grief for not inserting code correctly it is my first post... My question is this: I am reading a huge list of values from a file and I need to store these elevations into an array so they can be used to calculate …

Member Avatar for stickboy
0
263

The End.