132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JavaPrograms

My task is to: Pick 10 of my favourite NBA or NHL players from 2 top teams and display the player name, team name, points, rebounds, and assists for each of them. I then have to store this information as a table in a .txt file (This part is completed). …

Software Development file-system java
Member Avatar for David Kroukamp
0
427
Member Avatar for Zvjezdan23

I am making a program for my week 1 programming II class. The assignment is... Create a structure for a classroom. Make sure it includes the following: Room Number, Lecture Name, List of Students, Number of chairs, Window (Yes/No), Projector (Yes/No), Available(Yes/No). Instructions: • Create functions that allow you to …

Software Development algorithm c++ data-structure
Member Avatar for Schol-R-LEA
0
104
Member Avatar for aashishsatya

Hi, I'm a student and I've been using Turbo C++ (v4.5) for over a year now (that's what they teach us at school). I just attempted to try writing a simple code in Microsoft Visual C++ 2010 Express. I've even had a few successful runs, but when I look into …

Software Development c++
Member Avatar for thines01
0
194
Member Avatar for WolfShield

Python was my first programming language and I have been programming for about 5 years now. I LOVE Python, but there is one thing I haven't got myself to believe yet. In the Zen of Python one of the entries is: "There should be one, and preferably only one, obvious …

Software Development python
Member Avatar for WolfShield
0
245
Member Avatar for kkevinnnn

'Creating A Shared Assembly in .NET public class SharedObject Public Function Greeting(ByVal name as String) As String Return ("SharedObject says Hi : " & name ) End Function End Class

Software Development assembly c++
Member Avatar for thines01
0
111
Member Avatar for xanawa

Hi i am trying to connect with the data base with the following code but it is giving me an error. [B]CODE:[/B] [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package dbaccess; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import …

Software Development java java-swing
Member Avatar for stephen84s
0
232
Member Avatar for Hawkpath

Hello DaniWeb, its been a long time! Anyway, I'm trying to put classes and functions inside .h files and define them in respective .cpp files. Whenever I try this, I get a weird error that I think has something to do with my constructor: obj\Debug\main.o||In function `_static_initialization_and_destruction_0': | main.cpp|33|undefined reference …

Software Development c++ ide
Member Avatar for Hawkpath
0
8K
Member Avatar for ChrisMackle

I found a tutorial on lazyfoo.net and when i downloaded the source it just opens and closes, why is this? im using code blocks. [CODE]/*This source code copyrighted by Lazy Foo' Productions (2004-2012) and may not be redestributed without written permission.*/ //The headers #include <SDL.h> #include <SDL_image.h> #include <string> //Screen …

Software Development c++
Member Avatar for m4ster_r0shi
0
316
Member Avatar for mncoc

Hi guys. I'm beginner in programing. I must write C++ program, but after 5 days reading in Google now I'm very confused(my hеad will explode). The problem is: Write a program to find the roots of quadratic equation(MFC AppWizard -> dialog based). Requirements: 1.use windows form(at least one button and …

Software Development c++
Member Avatar for mncoc
0
164
Member Avatar for surferxo3

I have the following problem: I have sample form with reportViewer on it & report type is rdlc report on c#. I added a new dataset then selected tableadpater on it then selected the database from mysql and I selected the Filldata method & provided a query to retrieve data …

Software Development c# dataset mysql
Member Avatar for surferxo3
0
188
Member Avatar for KingAudio

Well, I just started programming in C++, this is my 3rd day and I finally built my first basic program. Just a basic calculator that takes two numbers and either multiplies, divides, adds, or subtract them. I do not know how to make a menu in C++ and I'm just …

Software Development c++
Member Avatar for eckoro
0
145
Member Avatar for Chuckleluck

Hello, I'm using SFML to make a game, and, as it has no built-in collision detection function, I made up my own algorithm. Here it is: [CODE] // Collision.cpp #include "Collision.h" Side CollisionBoxTest(sf::Sprite Hitter, sf::Sprite Hittee) { sf::Rect<int> HitterBox; sf::Rect<int> HitteeBox; // Initialize parameters for Hitterbox int BoxHeight = Hitter.GetHeight(); …

Software Development c++ gaming mathematics
Member Avatar for Eagletalon
0
215
Member Avatar for crbsathy

Hi Friends, I have a doubt in accessing the memory address . In java there is no pointers like c . then how can we access the address of the memory variable.

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for tashee2007

Hi ALL, Can anyone tell me how to validate the text box value? I have one class with function for validating the duplicate value of sql table. Function: [code] Imports System.Data Imports System.Data.OleDb Imports System.Windows.Forms Public Class vDesignationSetup Dim oFunc As New hrSQLConn.SQLConnection Dim strINIPath As String = Application.StartupPath + …

Software Development vb.net
Member Avatar for tashee2007
0
222
Member Avatar for gourav1

please tell me what exactly buffer is ? i have searched google.com a lot but not find what exactly it means ? what it means if i say "flushing the buffer"..? please tell me..what exactly is it ??

Software Development java
Member Avatar for gourav1
0
144
Member Avatar for akshatha.ullur

i have an excel sheet with me. i want 2 retrieve the data in c++ .. the retrieval should be in such a way that if a content of a cell is given it should tel me the content of the parallel cell .. i'm trying out alot for this …

Software Development c c# c++
Member Avatar for DJSAN10
0
144
Member Avatar for tcl76

hi, i would like to parse an input file (input.txt) into output file (output.txt) which i'll into excel. appreciate any advice on how to parse the input.txt into output.txt. thanks johnny

Software Development file-system python
Member Avatar for tcl76
0
224
Member Avatar for gourav1

[CODE]PrintWriter file= new PrintWriter(new FileWriter("league1.txt",true)); file.print(value1); file.print(','); file.print(value2); file.print(','); file.print(value3); file.print(','); file.close();[/CODE] i m using this code to write in a file.. i m using this in servlet.value1, value2,value3 are Strings. and i wana to write it in file named "league1.txt". i have made this file in WEBPAGES folder in …

Software Development file-system java
Member Avatar for gourav1
0
270
Member Avatar for saneeha.nust

plz guide me how can I view the content of a memory stream in visual studio output window....? I know the encoding is utf-8.. plz help...

Software Development visual-studio
Member Avatar for saneeha.nust
0
121
Member Avatar for anand01

[CODE] Set<Integer> set = new HashSet<Integer>(); Integer i1 = 45; Integer i2 = 46; set.add(i1); set.add(i1); set.add(i2); System.out.print(set.size() + " "); set.remove(i2); System.out.print(set.size() + " "); i1 = 47; System.out.print(set.toString()); set.remove(i1); System.out.print(set.size() + " "); [/CODE] The result of this code is 2,1,1 but my expectation is 2,1,0 Could any …

Software Development java
Member Avatar for anand01
0
117
Member Avatar for lolwaht

How do they help with coding? They don't seem like it makes the code shorter so I'm confused... maybe I'm doing it wrong but... could anyone explain to me about enums and structures please? It'd be greatly appreciated, Merry Christmas!

Software Development c++
Member Avatar for mrnutty
0
97
Member Avatar for scheppy

I have a extremely small problem, I think its my own fault, but i just cant seem to find what it is. I'm making a program with a gui, and in the gui there is a main menu with 2 JButtons. When I click on a JButton the JPanel/JFrame is …

Software Development gui java java-swing
Member Avatar for scheppy
0
167
Member Avatar for Mike Bishop

can anyone please help me with my update statement, i am trying to update a row within a access 2007 database here is my code. [CODE] Dim con As New OleDb.OleDbConnection Dim cmd As New OleDb.OleDbCommand Try con.ConnectionString = "Provider=Microsoft.Ace.OLEDB.12.0;Data Source=" & Database & ";Persist Security Info=False" con.Open() cmd.Connection = …

Software Development microsoft-access mssql vb.net
Member Avatar for hericles
0
486
Member Avatar for KillerOfDN

Hey guys/girls... I am looking to constantly check to see if a variables value has changed. An example below might be simular ' If the value of this variable ever changes - perform some action Dim str As String = "" However, using a timer seems inefficient as I have …

Software Development vb.net
Member Avatar for elbakai
0
11K
Member Avatar for complete

Help me Convert this WPF to Silverlight I am interested in a Charles Petzold C# example that shows how to do a fisheye effect ( [url]http://www.charlespetzold.com/blog/2009/05/Realizing-a-Fisheye-Effect-in-Silverlight.html[/url] ). The XAML code samples are in WPF but I want to try this in Silverlight. When I try to create the XAML code …

Software Development assembly
Member Avatar for complete
0
183
Member Avatar for fredfletcher

Hello, I've searched far and wide for an answer to a question that I have, but did not find anything that could help me achieve what I would like to do. I have a delimited text file (CSV) with fields that resemble these below that repeats/resemble 18 times (I only …

Software Development perl
Member Avatar for fredfletcher
0
129
Member Avatar for galhajaj

Hi :) i am having a hard time understanding the concept of event & delegate. i think i understand that one object start an event and some other objects can react while the event start. but why is that different from the observer design pattern? or how is it different …

Software Development
Member Avatar for thines01
0
146
Member Avatar for dennysimon

hello all my part of code give me message to recompile with -Xlint:unchecked How to fix this code so the message gone thank you denny [CODE] if(file.exists()) { FileRead fr=new FileRead(); String astring=fr.Read(filePath); System.out.println(astring); /* delimiter */ String delimiter = ","; /* given string will be split by the argument …

Software Development java
Member Avatar for dennysimon
0
2K
Member Avatar for Andy90

I have been trying to display form as taskbar but don't know how to! Is there any form property available to do so? The form will be permanently located either at top or at bottom of desktop. for eg: In (image) at the top the form is located and the …

Software Development display
Member Avatar for shandoosheri
0
585
Member Avatar for baby_c

hi friends.! need little help. I couldn't find the way to check a stack is empty before pop up a element. when my program is running its give a error. please help me guys.. thank you in advance....

Software Development c#
Member Avatar for thines01
0
4K
Member Avatar for glut

Hello. I have a severe problem with open(). Here is my actual code. [ICODE] #!/usr/bin/perl $file = '/testerpage.php'; # Name the file open(INFO, $file); # Open the file @lines = <INFO>; # Read it into an array close(INFO); # Close the file print @lines; # Print the array <>; [/ICODE] …

Software Development perl
Member Avatar for glut
0
167
Member Avatar for bangor_boy

Please help before i go mad, i need to use the update in the main class to access the list in the footballadmin and then display each in a list box but i cant get it to work. [CODE]Imports Football Public Class FootballAdmin Private fTeam As List(Of FootballTeams) Public Sub …

Software Development vb.net
Member Avatar for bangor_boy
0
195
Member Avatar for Kanoisa

Hi all, This is quite a specific question with a relatively large amount of explaining so ill try to make it really short to try save peoples time. In a nutshell what i have is a large csv file and im trying to search a particular entry (line in the …

Software Development c++ file-system
Member Avatar for Kanoisa
0
1K
Member Avatar for shandoosheri

Hi all and happy new year I need to detect whe the mouse leftclick is being held while moving the mouse upward so how can i do that Thank you

Software Development pc-peripheral
Member Avatar for shandoosheri
0
140
Member Avatar for unreal04

Hey all, Ok, I am new here, and my skill with c# is terrible. I have completed few tutorial courses that I found on internet, but still I dont have the knowledge to complete the given task. I learned how to draw basic geometry shapes but this is confusing me. …

Software Development
Member Avatar for unreal04
0
98
Member Avatar for Tipples

Okay I am pretty knew to c# and I am struggling to learn it. However back to my question how do I record a trace table for example this is the code I have:- [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication4 { class Program { static void …

Software Development
Member Avatar for skatamatic
0
217
Member Avatar for tungnk1993

Hi, I want to get the network utilization percentage which appears in task manager . Is there any libraries that provide that info ?

Software Development
Member Avatar for skatamatic
0
136
Member Avatar for kothaisaravan

Hi, Can anyone help me about hiding gridlines in excel sheet using VB.NET. I need to hide gridlines while exporting to excel from VB.NET. Thanks.

Software Development vb.net
Member Avatar for adam_k
0
242
Member Avatar for Jenna1994

this is the program i have to write you have to write a program using java language which will realize the following scenario project scenario:when you run your program it will display a welcome messege (you choose ur welcome messege). then program will ask to input a number beetween 1-9999, …

Software Development java java-swing
Member Avatar for Philippe.Lahaie
0
196
Member Avatar for ultrAslan

I need to write a code to be able to interpret the input date to calendar system. First input is the date and second input is the first day of the year. I dont know how to start. I hope someone could help me. Thanks 12/10/2011 S Output: October, 2011 …

Software Development c++
Member Avatar for bbman
0
177
Member Avatar for thejoker011

hello everyone... i need some good open source Graphs and Charts gui(2d and 3d) for java. Please suggest me some.

Software Development gui java open-source
Member Avatar for peter_budo
0
303
Member Avatar for akingcool

I am trying to design a file reader with some sort of GUI so I decided to use JOptionPane. I am a complete noob trying to learn java. So far, I have managed to make my program produce a pop up for the file location, and also an error message …

Software Development gui java user-interface
Member Avatar for mKorbel
0
3K
Member Avatar for Vasthor

Ok, here I come with a some sort of big analysis with pointer, array, vector, iterator and address of memory... using this input: [CODE] // hakim makan nasi // ayam yang basi // sambil tengok // hafiz yang tergelak // gelak [/CODE] with this code: [CODE] #include <cstring> #include <iostream> …

Software Development c++
Member Avatar for Narue
0
223
Member Avatar for gcclinux

Hello, I was wondering if you can help me, I am tryin gto achieve a specif output and I am stuck, any help would be greatly appreciated. [CODE]# cat file 1,2,3,4,5,6 1,,3,4,5,6 1,2,,,,6 # cat file | awk -F, '{print $1,$2,$3,$4,$5,$6}' | awk '{printf("%-1s %2s %2s %2s %2s %2s\n", $1, …

Software Development shell-scripting
Member Avatar for Fest3er
0
164
Member Avatar for Sophiron

I have a VB.net application that gets data off our server with ODBC and populates and saves a Word Document. When I try to deploy it to another computer it will get the data just fine and populate the first document, but it will crash before saving it. I've installed …

Software Development microsoft-access vb.net
Member Avatar for Sophiron
0
129
Member Avatar for permutations

Hi! I am trying to figure out a way to store all tokens of a sentence into an array except the token 'done' which is the last word of the sentence, but not part of the sentence itself (it is purely there to signify the end of the sentence). After …

Software Development c
Member Avatar for x_bharg
0
3K
Member Avatar for Riteman

Am deciding to create a Personal Banking software that manages some 3-4 bank accounts. I know to interlink the Access database. According to Personal Banking, the concept is that one person may have accounts in 2 or 3 banks. So Personal Banking software helps one to manage all 2/3 accounts. …

Software Development vb.net
Member Avatar for Riteman
0
309
Member Avatar for violette

Hi guys. here's my problem. When there is Null values in the excel file, the macro will give me an error 'type mismatch'. Please have a look at my code. This code only works when there every field has value. it gives error if there is null value. [CODE] sqlStr …

Software Development visual-basic
Member Avatar for dspnhn
0
895
Member Avatar for doma18

C++ emergency need this word doc to be done and i can't do it my self cause it bit to hard for me plz help Write a program to survey people, that will generate statistics about their age profile. It will firstly ask for the sample size. Then it will …

Software Development c++
Member Avatar for pseudorandom21
0
243
Member Avatar for srm2010

I have an Mdiform which with help of menustrip opens Form1. From this form(Form1) I open another form i.e Form2.which I want also to be a part of my mdiform I created property of mdiform and mapped it in my form2 when it loads.but still it does not become a …

Software Development vb.net
Member Avatar for Pgmer
0
203

The End.