132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gelmi

here is the error. .exe'does not contain a static 'Main' method suitable for an entry point. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ObjectOriented { class Greet { public void Hello() { Console.WriteLine("Hello World!"); Console.ReadKey(); } } } --------------------------- using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace …

Software Development
Member Avatar for Momerath
0
151
Member Avatar for jamesperkins0

Hi guys, i dont think im using the boolean and break correctly i need it to see the tutormin>=240 and then throw the error and stop without exiting the program. can someone take a look and help me edit it import java.awt.*; //imports all Java.awt import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import …

Software Development gui java java-swing
Member Avatar for jamesperkins0
0
208
Member Avatar for a9602

hey im new to c++.ive done basic programs but got to do a project with graphics in it,..........ive no idea what graphics is......so pls suggest some basic stuff like how to enter some txt in a box and how to change background colour of a page.......... with sincere regards

Software Development c++
Member Avatar for a9602
0
88
Member Avatar for john540

for all tools in toolbox in visual c++ 2010 express my regard john450

Software Development c++
Member Avatar for Ancient Dragon
0
92
Member Avatar for STVG

Hi! i'm new in c++, i have some problems with files... -first of all i want to know that how i can save a file with the name that program gives it? for example i run the program and type"file1" then save the file with name "file1.txt". whatever i give …

Software Development c++
Member Avatar for Ancient Dragon
0
163
Member Avatar for cyberdaemon

Good day, I want to search something from my database. my queries are working DataRow dr = PatientInformationBL.GetPatientSearch(new PatientInformation { firstName = txtFname.Text }); actually the GetPatientSearch is a method that is connected to my DAL. the codes returns no error but it displays in datarow.the result should be put …

Software Development
Member Avatar for cyberdaemon
0
111
Member Avatar for spowel4

Using java, I need to parse a json text file that will contain data according to the layout shown below. The number of email addresses per store will vary. The point is to get a list of stores & corresponding email addresses, then send emails to the addresses. I have …

Software Development java json
Member Avatar for boobalan006
0
274
Member Avatar for arishy

The string is about 3k long. It contains a substring several times with the following specification: 1. First part is FIXED number of characters. The same for all the substrings. 2. Second part is the one to be extracted and stored in an array.It is of variable length 3. Third …

Software Development perl regex
Member Avatar for arishy
0
327
Member Avatar for semicolon

Hi can i apply this in a windows form C#? ![BubbleImage](/attachments/large/3/BubbleImage.png "BubbleImage") this is an html5 is there any in C# windows form

Software Development c#
Member Avatar for gtsiga
0
826
Member Avatar for bhutchison

Hi, I am really struggling with a bufferedReader method i am trying to implement. I have to read text from a file like this : Poland Franciszek,Smuda,63,2009 1,GK,Wojciech,Szczesny,22,11,0 2,DF,Sebastian,Boenisch,25,9,0 3,DF,Grzegorz,Wojtkowiak,28,19,0 4,DF,Marcin,Kaminski,20,3,0 5,MF,Dariusz,Dudka,28,65,2 6,MF,Adam,Matuszczyk,23,20,1 and store it in an array of objects (mine being an array of Player objects which stores …

Software Development java
Member Avatar for JamesCherrill
0
100
Member Avatar for doomsday1216

Hi everyone, I've been trying to turn one of my programs into an executable application, but every time I click the jar file or open it using the command prompt nothing happens. I was wondering if I shouldn't be using "System.out.println" and Scanners to take input/display output. I am using …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
230
Member Avatar for Mike Askew

So after seeing the typing test Dani so kindly made the other day and put on the site I decided to kill some time writing a simple application to practice my typing on. I have a RTB containing the text which I'm highlighting as I go type letters to show …

Software Development
Member Avatar for Mike Askew
0
113
Member Avatar for arishy

Here is part of the html <body> <table> <tr> <td id="ctl00_ContentPlaceHolder1_TD_Unlimited_Usage_PerDay" class="form_label" colspan="2"> <table width='100%' cellspacing='2' cellpadding='0' border='0'> <tbody> <tr> <td align='center' bgcolor='#E1E1E1'>Date</td> <td align='center' bgcolor='#E1E1E1'>Download Usage</td> <td align='center' bgcolor='#E1E1E1'>Upload Usage</td> <td align='center' bgcolor='#E1E1E1'>Total Usage</td> </tr> <tr> <td class='table_item' align='center' bgcolor='#EBEBEB'>2012-11-02</td> <td class='table_item' align='center' bgcolor='#EBEBEB'>1.269 GB</td> <td class='table_item' align='center' bgcolor='#EBEBEB'>0.286 …

Software Development html-css mysql perl
Member Avatar for 2teez
0
2K
Member Avatar for mbarqadle

I keep getting a .class expected error in the if statement. help please. private int[] hand; private int[] play; public PokerHand(){ this.hand = new int[5]; } public boolean haveCard(int card){ if (play[] == card) return true; } public void displayCards(){ System.out.println(hand); } public void dealCards(){

Software Development java
Member Avatar for ~s.o.s~
0
112
Member Avatar for thang.chuotma

I have service, when i make updatepage data bring in database , i take error" sequence contain no element". i can't fix.

Software Development
Member Avatar for Bhuvan Ram
0
78
Member Avatar for night_sky32

Hi there, I'm not too new with C#, but I've had a lot of questions recently (I've learned most of C# through experimentation, so that's probably a reason) that I'd like to help find answers for. Anyway, sorry for the offtopic start! Let me get back on topic... Okay, so …

Software Development
Member Avatar for getnit
0
3K
Member Avatar for EmpK

For a project i have to create a program that is able to write and read a sequential file and list the contents into textboxes. So far i am able to write to the file but the problem is i am not able to retrive/read the information from the file. …

Software Development file-system vb.net
Member Avatar for xerohomicide
0
230
Member Avatar for andrew mendonca

Define a getTopTwoScores() function with the specification and prototype shown below: // Set highest to the score with highest value and secondHighest to the score with the next highest value. // If there are two highest scores with the same value then set both highest and secondHighest to that value. …

Software Development c++
Member Avatar for nullptr
0
200
Member Avatar for riahc3

Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if …

Software Development c#
Member Avatar for BobS0327
0
403
Member Avatar for ObSys

Does a Java applet have to contain a "main" method or does it run from the "init()" method. I have written a small game in java following and example in a book however it does not tell you how to run the damn thing. Code has no erros from what …

Software Development java
Member Avatar for NormR1
0
245
Member Avatar for jonny93

What is the best way to practice C++ coding on Windows 7, and at the very least free? I want to get better at programming, but I don't have a compiler.

Software Development c c# c++ ide
Member Avatar for mike_2000_17
0
904
Member Avatar for sobias

Hi everyone, We all face dificullity in coding recursivly, maybe most of new codders and CS students. However, **my question today is related to How many number of execution been made by the recursive method.** Which I think a bit tidious. I'll be updaing this article with new questions any …

Software Development java
Member Avatar for doomsday1216
0
177
Member Avatar for bhutchison

Hi, I have been asked to create a method to store information on the football players for the polish team. I have stored each player in an array of Players[]. My task is to output any players which match the search string. So the method I have to create is …

Software Development java
Member Avatar for NormR1
0
125
Member Avatar for Some Dude

Alright. I am making some decent progress here. I am trying to add a toolbar to my basic text editor that I am making using an internet tutorial. Anyways the problem is that I can get the bitmaps to display but they appear to be just that... bitmaps. When I …

Software Development api c c++ microsoft
Member Avatar for Some Dude
0
475
Member Avatar for kedxu

I'm probably doing this wrong, because there has to be a way to do this. Here is my current code: import javax.sound.sampled.*; public class soundHandler{ soundHandler() { } public void newSound(String sound) { new soundThread(sound).start(); } } class soundThread extends Thread { String soundName; Clip clip = null; soundThread(String i_soundName) …

Software Development audio java motherboards-cpu-ram
Member Avatar for ~s.o.s~
0
373
Member Avatar for FUTURECompEng

I am trying to create a checker program(for a sudoku puzzle) that will read a completed board and then go to determine if it obeys the constraints. If it does, it just says so, if it doesn't it reports the conflict. Where should I start? Thanks.

Software Development java puzzle
Member Avatar for FUTURECompEng
0
181
Member Avatar for EmpK

How do i make a label display if the textbox value that was entered is invalid? This is my code so far and when i press the button to find the invaild source the label is suppose to appear but nothing is happening when i click the button. Private Sub …

Software Development display vb.net
Member Avatar for Reverend Jim
0
188
Member Avatar for magord86

I'm trying to switch "M" to "Mr." and "F" to "Ms." when the last name is selected in the listbox. When I clicked on the first name it worked, but when I clicked on anyother name, I got this error message: --Additional information: Index was outside the bounds of the …

Member Avatar for magord86
0
287
Member Avatar for KRUX17

Hi, Can anyone tell me what is wrong with this code? It seems to be throwing me some error: **non-static method getName() cannot be referenced from a static context.** public void printOrders() { for(Order filename: Orders) { System.out.println("Name: " + Order.getName()); System.out.println("Quantity: " + Order.getQuantity()); } }

Software Development java
Member Avatar for KRUX17
0
127
Member Avatar for hisan

I am a newbie to py.test , Please let me know how to run the py.test in PyScripter Editor. I have tried in the belwo way but it doesn't work. import pytest def func(x): return x + 1 def test_answer(): assert func(3) == 5 pytest.main()

Software Development python
Member Avatar for hisan
0
85
Member Avatar for rajkumar.it

Hello guys, I am working as a C C++ UNIX software programmer , and looking for freelancer projects. could you please let me know how can i get the project?

Software Development c++ unix
Member Avatar for rajkumar.it
0
114
Member Avatar for vishalonne

Hi all members I'm a learning how to use C/C++ on Netbeans IDE. I got an [tutorial on net](http://dev.mysql.com/tech-resources/articles/mysql-connector-cpp.html#intro) I am trying this tutorial to complete since last 5 days--- I followed the tutorial step by step. My system settings - Window 7 32 bits Netbeans 7.1 JDK 1.7 cygwin …

Software Development c++ ide
Member Avatar for vishalonne
0
651
Member Avatar for MissAuditore

Hi, I have a csv file im reading and this is what I have done so far: import csv filename='C:\Users\temperature.csv' with open(filename, 'rb') as csvf: reader = csv.reader(csvf) for row in reader: print row the result is as following: ['Depth (m);15.08.2012 15:39:09;15.08.2012 16:09:10;15.08.2012 16:39:10;15.08.2012 16:43:36'] ['0;53.218;52.804;52.865;51.202'] ['0.128;53.107;52.709;52.414;52.141;'] ['1.143;52.205;51.88;51.664;51.234'] ['2.159;51.026;50.846;50.842;51.258'] ['3.174;50.061;50.055;50.457;50.19'] …

Software Development python
Member Avatar for HiHe
0
236
Member Avatar for magdy.elbaset

hello guys, i want to write a program to cout the numbers i input (a-z) to (z-a) like input (1,2,3,4,5,6,7,8,9,10) output(10,9,8,7,6,5,4,3,2,1) and i tried this but it's out put the same sorting #include <iostream.h> void main(void) { int Number[11],i,j; cout<<"Enter The Numbers"<<endl; for (i = 1; i<=10; i++) { cout<<"Number"<<i<<": …

Software Development c++
Member Avatar for magdy.elbaset
0
110
Member Avatar for KeesA

Is it possible to remove an Icon or ImageIcon once it is set to a JButton or JLabel? When a specific action in my program has taken place, the picture in no more appropriate and I want to remove it from a JLabel.

Software Development java
Member Avatar for JamesCherrill
0
188
Member Avatar for ivan.lilo.rybansky

Hi, i have to write/as homework/ a script that shows list of all users ,users belong to group (which is main group for every user has been showed) defined as parameter of script. In the case of -c, show count of those users. TIP: /etc/passwd, /etc/group

Software Development shell-scripting
Member Avatar for Watael
0
235
Member Avatar for EmpK

So far i have a code that only allows you to enter numbers but how do i limit the value from 0 - 9999. Also how would i be able to display a message label if the user is doing something illegal. Right now i have the messagebox setup but …

Software Development vb.net
Member Avatar for EmpK
0
748
Member Avatar for 404notfound

I found a tutorial online that so far has been aswesome. I downloaded the access db and so far can read and browse through it. However, when I try to write back to it (btnSubmit_Click), nothing happens. All other buttons work fine, I can still browse, and I get absolutely …

Member Avatar for XEN0
0
181
Member Avatar for IsaiahLay

**This program is supposed to read data in from a file into an array list and everything compiles correctly so far but when i go to run the applet ProcessNovels it shows a blank window saying "Start: applet not initialized? Im not sure where the problem actually is i am …

Software Development java java-swing
Member Avatar for NormR1
0
197
Member Avatar for Fuzzies

Hello! I have an output problem with a program that I'm writing that takes a user inputed sentence and reverses the words within it. Right now the program compiles and runs without problem, but my output is different than what is intended. specifically, there is an extra newline placed after …

Software Development c
Member Avatar for Ancient Dragon
0
225
Member Avatar for whileiforelse

Well this is my assignment for uni. I've done all the main and difficult bits- and now I cannot believe that I'm stuck at the simplest task. Im told to make a menu that gives user three options to choose from. Choosing option 1 will ask to choose from 3 …

Software Development c++ queue
Member Avatar for whileiforelse
0
194
Member Avatar for firras

If someone could help point me in the right direction, it would be much appreciated. My problem is merge sorting a list from a text file and outputting the sort into a different text file that the user chooses. The text file that's inputted is about a 20 item list …

Software Development c++ file-system linked-list
Member Avatar for Ancient Dragon
0
706
Member Avatar for mikeybware

I have the following code which prints my datagrid nicely. The problem is that it only prints the first page and cuts off everything thereafter. I know I need to implement the e.HasMorePages = True in some manner but I am unable to get that working. Here is my code: …

Software Development vb.net
Member Avatar for robtrue
0
320
Member Avatar for crazyjdog

This is a program I am working on for homework and I keep getting this error and I'm not sure what I can do to fix it. Any help would be greatly appreciated. here is the error: Traceback (most recent call last): File "C:\Users\crazyjdog\Desktop\School Stuff\CSET 1100\Programs and Charts\program121.py", line 86, …

Software Development python
Member Avatar for JasonHippy
0
469
Member Avatar for KeesA

Hallo, I have a Java book from before Oracle took over Sun. In the chapter about pictures for buttons etc., the writer suggest to download a free to use icon set from java.sun.com/developer/techDocs/hi/repository Ofcourse this place does not exits anymore and the Oracle site is not clear to me where …

Software Development gui java oracle
Member Avatar for KeesA
0
216
Member Avatar for GoodPie

Hey there, i'm relatively new to pyGame and considering this is like my second attempt at doing it by myself after watching a few tutorials, i'd say im getting the hang of it. However, as i was creating a game i realised i had no clue how to make the …

Software Development python
Member Avatar for GoodPie
0
217
Member Avatar for hwoarang69

String query = "create table emails " + "(ID int, " + "To varchar(20), " + "From varchar(20), " + "Message varchar(50))"; this java statment looks right. but getting a syntax error.

Software Development java sql
Member Avatar for hwoarang69
0
87
Member Avatar for Jenniferting

Credit card numbers follow certain patterns. A credit card number must have between 13 and 16 digits. It must start with: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards In 1954, Hans Luhn of IBM proposed an algorithm for validating credit …

Software Development c
Member Avatar for pritaeas
0
677
Member Avatar for hwoarang69

i already have xammp set up on localhost. and i also added a "mysql-connector-java-5.1.22-bin" file to m exlipse under "JRE SYSTEM LIBRARY" information on xammp: user name: "root" password: "" database: "a_upload" table: "user" in eclipse iam just testing my connection. but i get a error: SQLException: No suitable driver …

Software Development java
Member Avatar for stultuske
0
331
Member Avatar for riahc3

This is a continuation of the last thread. I insert 3 files: Two bins (path and a number) and either a jpg or a bmp This does the following. 1: Connects to FTP and changes to C:/ (/) 2: It checks if a webfolder exists. If it is, goes to …

Software Development java
Member Avatar for riahc3
0
461

The End.