132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sternone

Hi, I only know C++ as a medium level programmer, not a real beginner but absolutely no veteran, I need to learn so much more C++ stuff. I can fairly program small programs in C++ and i really like C++. I also started using some of the new cool C++11 …

Software Development c++ client-server web-server
Member Avatar for sternone
0
248
Member Avatar for Valiantangel

Hey after all the fuss about Composition and inheritance and drilling in the fact that Composition is superior,I dont understand why the need to know ploymorphism?Since it is gotten through inheritance.Is this a joke? Whats the industry practice?Are they use **widely**?

Software Development java
Member Avatar for stultuske
0
98
Member Avatar for belenos46

So, I'm automating a payment import system, writing the whole thing from scratch. It has to pull data from excel files (including extraneous data that we need to discard), process it, and insert it into a database. Oddly, those aspects are going quite well. However, I'm running into a problem …

Software Development vb.net
Member Avatar for belenos46
0
193
Member Avatar for marcin19962

https://dl.dropbox.com/u/21125662/compilation/OsuModTool.txt It doesn't really work - text didn't change - why it doesn't work? It doesn't give me any error (but print prints what it should) https://dl.dropbox.com/u/21125662/compilation/post_adder_win.txt I call function through keyboard event

Software Development python
Member Avatar for marcin19962
0
400
Member Avatar for Fazura

Here's my code in which i am getting SIGABRT for 7 test cases :- #include<cstdio> #include <queue> #include <vector> using namespace std; int main() { //variable declarations int i,j,steps=1,n,m,s,t,tmp,tmp1,visited[1000001]; vector<vector<int> > buildings ( 3501, vector<int> ( 3501 ) ); queue<int> tovisit; //take inputs scanf("%d %d",&n,&m); for (i=1;i<=m;i++) { scanf("%d %d",&tmp,&tmp1); …

Software Development c++ queue
0
113
Member Avatar for SHaseeb

How can i update data from data grid view into SQL database using C#. Actually i m working on windows form app and i have to write update code in click event of the button.I am trying to update single row of data grid view into database. I have tried …

Software Development c#
Member Avatar for SHaseeb
0
464
Member Avatar for Serpterion

I would like to first thank those who originally replied to my first article. I have the script modified so it's pulling all the needed data and I finished my work very fast! There was a lot of new syntaxes that I didn't know and took tutorials on each to …

Software Development perl
Member Avatar for d5e5
0
136
Member Avatar for zaphoenix

Hello, I am new to python and i am having problems in the output format of "for" "in" loop example the code below # A word count programme # Author why jay def main(): import string word=0 line=0 letters=0 asd=raw_input("Enter file here : ") f_name=open(asd,'r') for why in f_name: see=why.split() …

Software Development python
Member Avatar for HiHe
0
154
Member Avatar for km2011

Hello everyone, i want to do the summation below: x1= a0*x0 x2= x1+ a1*x1 x3= x1 + x2 + a2*x2 and so on............ supose we know x0 = 2; a0=1 ; a1 = 3; a2 = 2; how do i use for loop to do this? should i keep it …

Software Development java
Member Avatar for km2011
0
193
Member Avatar for Nikita Sachdev

i'm using Dev-cpp. i tried my best to find out the reason but could not so please help me out

Software Development c++
Member Avatar for jaskij
0
193
Member Avatar for new_developer

Hello everyone ! I want to get output in C++ in same line. The following code gives me output in separate line. for(int i=0; i<=10; i++) { cout << i <<" " <<endl; }

Software Development c++
Member Avatar for new_developer
0
1K
Member Avatar for syd919

Hello guys I have an xslt file I want to extract data from. I am new to xslt but at the moment I can perform basic operations like looping through the nodes and creating element and attributes. My problem is that I want to select a particular value from a …

Software Development xml
Member Avatar for Mike Askew
0
135
Member Avatar for syd919

Hello guys, I have a problem convrting to an int in xslt. My xslt is: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tem="http://tempuri.org/"> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <xsl:call-template name="ConnectConsumer"/> </xsl:template> <xsl:template name="ConnectConsumer"> <tem:callRule> <xsl:for-each select="/"> <xsl:for-each select="ConsumerDetails"> <xsl:for-each select="Score"> <xsl:element name="tem:arg0"> <xsl:value-of select='format-number(Score,"#" )'/> </xsl:element> </xsl:for-each> </xsl:for-each> </xsl:for-each> </tem:callRule> </xsl:template> </xsl:stylesheet> …

Software Development xml
Member Avatar for Mike Askew
0
169
Member Avatar for kuki123

am having a problem in incrementing the number automically into the database every the when save. The initial number i want it to be 001 in a text box and when i save it, it should increment into 002 and so on. And every time i load the web page …

Software Development c++
Member Avatar for Schol-R-LEA
0
186
Member Avatar for javabegginer

Hello, I just needed some help with a code error. When I compile the code below, I keep getting this error: Program2.java:12: error: ';' expected Scanner keyboard = new Scanner(System.in); 1 error Could somebody please let me know what I am doing wrong? Thanks. import java.util.Scanner; // Needed for Scanner …

Software Development java
Member Avatar for poojavb
0
288
Member Avatar for cyberbemon

Note: This is a server that is going to be used on a build farm, So 3rd party libraries are no use here. I've been working on writing a python script that can be used to POST files on to a tomcat server (java), I finished writing the servlet and …

Software Development file-system http-protocol python
Member Avatar for cyberbemon
0
1K
Member Avatar for poojavb

Hello Friends, One help needed.... I have a product database....in which I have productid,prodname,inventoryvalue,reordervalue I have to design a email system that as soon as the product reaches the reorder level it shud generate an email.... but the condition is there will be many products in the database....and on one …

Software Development database-design dataset email vb.net
Member Avatar for poojavb
0
168
Member Avatar for Droidik

Hello there, I just don't know, how to solve this task in assembly - http://oi49.tinypic.com/2qi9q4l.jpg I know what every command does, but don't get the way it's done. Any explanations or advices, please?

Software Development assembly
0
255
Member Avatar for Valiantangel

Can anyone correct my mistake. Provided code: public void testSetBaseSalaryNegative() { final double altBaseSalary = -999.99; try { emp.setBaseSalary(altBaseSalary); // Expecting an IllegalArgumentException fail ("Negative base-salary values should be rejected by setBaseSalary and result in an IllegalArgumentException"); } catch (IllegalArgumentException ex) { // This is the nominal case } catch …

Software Development java
Member Avatar for JamesCherrill
0
97
Member Avatar for Sevyt

Never had this problem before, and i am not sure how this happened. I got a Mysql sql database for my project. The id field is set as auto increment, which seems to function correctly. But on the form in my text field and datagrid i see a negative number, …

Software Development mysql vb.net
Member Avatar for peter_budo
0
254
Member Avatar for silvercats

A program written in assembly is machine dependent but a program written in Java ,python etc.. are not. why is that at the end don't they all get converted in to machine language?

Software Development assembly
Member Avatar for MandrewP
0
502
Member Avatar for M.Waqas Aslam

hello ! i am working on a c# project , but i had done all this is vb before , now i have all the code in vb.net and i want to use it in c# project , someone told me that if i make dll of my vb modules …

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
200
Member Avatar for snkar

I have an object hierarchy that can be represented simplistically like: public class ChannelEntity { ... public properties .... public FramesetEntity Frameset { get; set; } } public class FramesetEntity { ... public properties .... public List<FrameEntity> Frames { get; set; } } public class FrameEntity { ... public properties …

Software Development c#
Member Avatar for snkar
0
218
Member Avatar for ganges

hi how to fix org.hibernate.HibernateException i am using eclipse and oracle 10g thanking you

Software Development java oracle
Member Avatar for rubberman
0
243
Member Avatar for daino

This is probably a silly question but i really don't know the answer to it. Can you write a program in C++ and have another part written in C and compile them into a single executable file? I'm thinking a c/c++ compiler like visual c++ would do this.. Is that …

Software Development c++
Member Avatar for rubberman
0
263
Member Avatar for triumphost

Can anyone check my memory class and suggest changes or things I may need? I'm writing it so that I don't have to worry about deleting anything everytime I allocate. #include <iostream> template<typename T> class Memory { private: size_t size; T* data; public: explicit Memory(size_t Size) : size(Size), data(new T[Size]){} …

Software Development c++
Member Avatar for rubberman
0
140
Member Avatar for poloblue

Good Afternoon, This is my first class in C++ and I'm having problems with a program that needs to print a calendar of June, July and August 2008 into the output file "outCalendar.txt" . I should format the result for month well so that it looks like a real calendar …

Software Development c++
Member Avatar for Schol-R-LEA
0
403
Member Avatar for VB 2012

Here's the html i want to understand i want the first div class to let the program no im dealing with only hel(helium) and then still in the hel(helium) section , is span class i want the production value so basicly i want only one at a time not the …

Software Development vb.net
Member Avatar for KingGold171
0
164
Member Avatar for VernonDozier

This program does not crash but behaves badly due to not allocating enough space for vector z in line 21. If I comment out line 21 and instead uncomment line 23, things work well. If I comment out both lines 21 and 23, the program will crash, presumably because I …

Software Development algorithm c++
Member Avatar for VernonDozier
0
384
Member Avatar for satnav_8

So i've found this HTTP downloader in python, and I wanted to modify it. I've been trying to add a ttk progressbar, to no avail, but I have no idea why it isn't working! Here is my code: import urllib2 import Tkinter import ttk url = 'http://kharg.czystybeton.pl/pendulum%20-%20%5B2005%5D%20hold%20your%20colour/05.%20through%20the%20loop.mp3' file_name = url.split('/')[-1] …

Software Development file-system python tkinter
Member Avatar for TrustyTony
0
2K
Member Avatar for markyjj

I have a program where am trying to access a dataset in the main form from a 2nd Winfrom. I have created a form 1 ref but when I use this to access the datatable in the dataset it doesnt seem to work. The following code is for Form 2 …

Software Development c c# c++ dataset
Member Avatar for Mitja Bonca
0
1K
Member Avatar for VB 2012

Here's my code Dim allelementds As HtmlElementCollection = MbFacebookBrowser.Document.GetElementsByTagName("span") For Each DD As HtmlElement In allelementds If DD.OuterHtml.Contains("resource") Then TlsResourceComboBox.Items.Add(DD.GetAttribute("InnerText")) End If Next LblHel.Text = TlsResourceComboBox.Items.Item(0).ToString LblIro.Text = TlsResourceComboBox.Items.Item(1).ToString LblOxy.Text = TlsResourceComboBox.Items.Item(2).ToString LblWat.Text = TlsResourceComboBox.Items.Item(3).ToString As you can see im currently using a combobox as a type of a list …

Software Development vb.net
Member Avatar for Reverend Jim
0
230
Member Avatar for A0110

i have a grid view in whichld store i hav aaded a new column 'status'. i hav my data coming frm database. i hav added delete buttons in grid view in eacj row... i want that when i press the del button in order to del a particular row the …

Software Development
Member Avatar for A0110
0
137
Member Avatar for Valiantangel

How can i implement this constructor? I tried replacing commissionEmployee = new CommissionEmployee with this but the complier asked me to create another constructor. public class BasePlusCommissionEmployeeComposition { private double baseSalary; private CommissionEmployee commissionEmployee; // six-argument constructor public BasePlusCommissionEmployeeComposition( String first, String last, String ssn, double sales, double rate, double …

Software Development java
Member Avatar for JamesCherrill
0
213
Member Avatar for ericstern

Hi, I am learning python coming from a C background and I am trying to understand how python lists work. I took a look at the built in methods, and I am wondering if they are implemented like a linked list. The reason I am wondering this, is because I …

Software Development linked-list python queue
Member Avatar for ericstern
0
248
Member Avatar for kendaop

Hello, I'm following along Riemer's tutorial for terrain generation and I have my program working, but about 15 seconds after running the program, I get a an error that says, "Win32 Exception was unhandled. The operation completed successfully" Here is my code. [code=c#] using System; using System.Collections.Generic; using System.Linq; using …

Software Development audio storage
Member Avatar for Dennijr
0
416
Member Avatar for Despairy

I made a new project that has to open a folder using DIR * `DIR * directory=openDir(...); // openDir is a function returning DIR * after it was opened` than to make a new folder in it, so far so good `mkdir(path,permissions);` and now i have to run through the …

Software Development c
Member Avatar for Ancient Dragon
0
110
Member Avatar for triumphost

What's a fast way to fill a union/struct of integral members with ALL Zeroes? RECORD* UNION = {0}; void ZeroStruct(int X, int Y) { UNION = new RECORD[X * Y]; int K = 0; for (int I = 0; I < X; I++) for (int J = 0; J < …

Software Development c++
Member Avatar for mike_2000_17
0
272
Member Avatar for triumphost

Is it possible to overload one operator more than once? I have a struct that is just my idea of a C++ Box. I'm trying to increase the size of a box using an integer or another box. I'm trying to do: Box X(0, 0, 0, 0); Box Y(1, 1, …

Software Development c++
Member Avatar for triumphost
0
2K
Member Avatar for 47pirates

there are two panel in one panel there is search button and in the another one there is Jtable for displaying search result. In that jtable initially all the records are displayed. But when i try to search, it works but the problem is that i need to click search …

Software Development java java-swing
Member Avatar for 47pirates
0
427
Member Avatar for sirus23

Hello everybody!I want to ask you something. I want to send values from C# windows form application in php webpage.In other words send post values from C# to php. The problem is that php script cannot read this values and preview this results which comes from C# app.Could you help …

Software Development c# first-post php
Member Avatar for sirus23
0
1K
Member Avatar for suneye

hello, I am saving some data in sql of type datetime but the value I am getting is 1900-01-02 00:00:00.000 what must I do?

Software Development sql
Member Avatar for Momerath
0
154
Member Avatar for tgifgemini

Please, I need someone to show me the correct synatx - code to FTP a file (in an Access table) to a server. The access table contains the following information: Open 10.8.44.34 Username Password File path - sourcefile destinationfile Quit. I tried to run the code below and I get: …

Software Development visual-basic
Member Avatar for evry1falls
0
313
Member Avatar for PhoenixInsilico

How to handle characters like ü, Ö etc. I tried using decode_utf8() function. But still when I print the string I get some funny characters instead of ü or Ö

Software Development perl
Member Avatar for 2teez
0
99
Member Avatar for funkey100

Hey, I am trying to make a C++ scrit that decodes and encodes tenis polar (search it on Google if you don't know what it is). After some testing, I found out my application stops after the strcpy. Any help? The code is below. Thanks! #include <iostream> #include <cstring> #include …

Software Development c++ daniweb-bug
Member Avatar for Schol-R-LEA
0
313
Member Avatar for missil9

Hey all, I usuallly don't like asking for help on these sites but I have been kicking myself for a while now implementing boost regex for a program (i have never had any prior issues). I believe the issue is with my regex syntax but i have tried numerous variations …

Software Development c++ regex
Member Avatar for missil9
0
318
Member Avatar for mie.ilani

Dim MaxVal As Integer For a = 0 To DataGridView1.RowCount - 1 If MaxVal < DataGridView1.Item(DataGridView1.ColumnCount - 1, a).Value Then MaxVal = CInt(DataGridView1.Item(DataGridView1.ColumnCount - 1, a).Value) End If Next MsgBox("The Optimum Value is " & MaxVal, 1, "Optimum Choice")

Software Development vb.net
Member Avatar for mie.ilani
0
161
Member Avatar for brandonhorst

Hey Folks. I'm writing a Python app using wx and I'd really like the ability to block the Capslock key at certain times. My current system has some unfortunate toggling of Hotkey Bindings and uses SendKeys, which results in some ugly keyboard light flashing and some seemingly random infinite loops. …

Software Development python
Member Avatar for zaphoenix
0
576
Member Avatar for Valiantangel

Hi, What is for ( : ) in java.i know what a loop is but lately when i am doing excercises these keep coming up Example:** for(Field currentField : emp.getClass().getDeclaredFields())**

Software Development java
Member Avatar for JamesCherrill
0
139
Member Avatar for sanket044

ey i have following code for crystal report 8.5 to vb6... i just want to change database location of report from vb code... Private Sub Form_Load() Dim Reportapp As New CRAXDDRT.Application Dim Report As CRAXDDRT.Report Set Report = Reportapp.OpenReport(App.Path & "\orders.rpt") Report.Database.SetDataSource App.Path & "\RatanDB.mdb" CRViewer2.ReportSource = Report CRViewer2.ViewReport CRViewer2.Zoom …

Software Development visual-basic
Member Avatar for jhai_salvador
0
492

The End.