43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bdl365

If i want to print a grid of letters..for example AAAAA BBBBB AAAAA BBBBB AAAAA this is what I got so far. need some clues as to how I should approach the problem? #include <iostream> using namespace std; int main () { int n; cout << endl << "Enter a …

Software Development c++
Member Avatar for bdl365
0
260
Member Avatar for utchia

Hi i am trying to write a search function and the question i have is this, when i do something like this comix[0] = new Comic("book title", "Author", "isbn", 454.24F); for (int i = 0; i < comix.length; i++) { Scanner console = new Scanner(System.in Scanner console = new Scanner(System.in); …

Software Development java seo
Member Avatar for Taywin
0
236
Member Avatar for hakibam

I modify this .cpp code into .c but it gives error: the original code is:(runs fine) [CODE]#include <string> #include <iostream> #include <stdlib.h> using namespace std; int main() { int c, s[10]; int i, j; string name; cout << "Welcome to Airline Reservations System!\n"; for (j=0; j<10; j++) { cout << …

Software Development c c++
Member Avatar for Abin Jossy
0
2K
Member Avatar for gorgoro

I want to start as junior in Java in a company but they ask me to present them some tasks that ensures that i am more than a junior.they offer me a task to create a Swing Gui with buttons and stuff.I have already a good knowledge of Java from …

Software Development gui java java-jsp java-swing
Member Avatar for gorgoro
0
269
Member Avatar for lj81

Hi all, I'm am very close to finishing my 2 player pool game with only a couple of rules left to add. I am currently trying to assign a ball colour (red or yellow) to the player who pots the first ball. I am at a loss at the minute …

Software Development java
Member Avatar for lj81
0
265
Member Avatar for MissAuditore

Hi, I have a csv-file with Date in first column, pressure in second and temperature in third (a lot of data). Small example below: 08/08/2012 09:26:01,14.334,26.379 08/08/2012 09:26:02,14.329,26.376 08/08/2012 09:26:03,14.337,26.394 08/08/2012 09:26:04,14.324,26.421 I want to extract from t1 to t2 and then calculate the elapsed time (t2>t1). My code so …

Software Development python
Member Avatar for vegaseat
0
860
Member Avatar for tinu28

hey everybody, i am new to vb.net environment pls help me to sort out my problem. let me explain it. in my project i need to clone/copy the content of the two fields from one table to another table in same database.i have tried my level best but got the …

Software Development dataset vb.net
Member Avatar for tinu28
0
1K
Member Avatar for babi.meloo

I need to design an application that determines and prints the number of odd, even, and zero digits in an integer value read from the keyboard. This is what I have so far. public static void main (String[] args) { int odd=0, even=0, zero=0; Scanner scan = new Scanner(System.in); int …

Software Development java
Member Avatar for NormR1
0
3K
Member Avatar for KarimFawaz

Hey guys, im new to programming, just took my first course in university. I'm currently trying to program a calculator that does multiplication, but its giving me this error: C:\Users\Karim\Documents\Karim.java:9: error: package Java.util does not exist import Java.util.Scanner; And ofcourse followed by a few other related errors. Anyone know how …

Software Development java
Member Avatar for stultuske
0
467
Member Avatar for babi.meloo

//**************************************************************************************************** // Project15.java Author: Lewis/Loftus/Cocking // // Write an application that plays the rock-paper-scissors game against the computer. When played // between two people, each person picks one of the three options at the same time and the winner is // determined. The program should randomly choose one of the …

Software Development java
Member Avatar for Taywin
0
4K
Member Avatar for hemalatha.nambisan

I have a text file containing contents like 1 A 0 -1 -2 -3 -4 2 A -1 2 3 -4 -5 So I read the file and used split function as @a=split(/ /,$_) and took each line into array a. But now when I take these into array a …

Software Development perl
Member Avatar for 2teez
0
126
Member Avatar for themaj

Can someone tell me how to add an additional item to a combobox that is bound to a datatable? I have populated the ComboBox with data from table sSQLCbo = "SELECT region.ID, region.name FROM [STORES] ORDER BY store.ID" Dim ds As New DataSet da = New OleDb.OleDbDataAdapter(sSQLCbo, con) da.Fill(dt) con.Close() …

Software Development dataset vb.net
Member Avatar for Pgmer
0
510
Member Avatar for drj08

Hye, can one please explain to me about the code below. I need to know what exactly should be inside Field1 and Field2? I'm new to vb.net. I know that tbltemp should be the name of our table but im confused about the Field1 and Field2. Dim strSQL as String …

Software Development sql vb.net
Member Avatar for dimasalang
0
219
Member Avatar for Petranilla

Hi Everyone, Im' new in C. I was tasked to do a word game. Its a Guess a word game. The user inputs the letter through arrow keys. Then, my program supposed to check if each letter is correct. Then, display it in boxes. The problem is I cannot validate …

Software Development c gaming
Member Avatar for Petranilla
0
246
Member Avatar for Renga

I want to draw a 'stacked column chart' in VB.Net in which a series data is just stacked one above the other in the same column. Let me explain: Suppose I have three series of data each having 5 values like this: Series 1: (a1,b1,c1,d1,e1) Series 2: (a2,b2,c2,d2,e2) Series 3: …

Software Development vb.net
Member Avatar for Renga
0
386
Member Avatar for davecoventry

I'm trying to port opensource C++ code into my own Pascal application. Specifically, I'm using libredwg source to read an AutoCAD drawing file so that I can extract text attributes and populate a database using Lazarus. char* copy_bytes_16(char *dst, char *src) { *(uint64_t*)dst = *(uint64_t*)(src + 8); *(uint64_t*)(dst + 8) …

Software Development c++ pascal
Member Avatar for triumphost
0
219
Member Avatar for wids101

#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { int soda; cout << "Choose a drink or 6 to quit:"; << endl; cout << "1. Coke $1.00"; << endl; cout << "2. Water Free"; << endl; cout << "3. Sprite $1.25"; << endl; cout << "4. Dr. …

Software Development c++
Member Avatar for wids101
0
392
Member Avatar for bintony.ma

I have a test.txt like this: GCOORD 5.98400000E+03 1.19901791E+01 8.29785919E+00 -1.10000002E+00 GCOORD 5.98500000E+03 1.25401793E+01 8.84785938E+00 -6.59999990E+00 GCOORD 5.98600000E+03 1.30901794E+01 9.39785957E+00 -1.21000004E+01 BNBCD 3.66000000E+02 6.00000000E+00 4.00000000E+00 4.00000000E+00 4.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 BNBCD 4.17000000E+02 6.00000000E+00 1.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 BNBCD 5.16000000E+02 6.00000000E+00 1.00000000E+00 1.00000000E+00 1.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 BNBCD 5.58000000E+02 …

Software Development python
Member Avatar for bintony.ma_1
0
468
Member Avatar for WDrago

All, I am using Netbeans 7.2 to build a form. I added a Swing JTextArea to my form and all is well. I'd like to add a titled border to my JtextArea (or the JScrollPane in which it lives) but can't figure out how. I tried Right Click > Properties …

Software Development java java-swing
Member Avatar for WDrago
0
354
Member Avatar for crag0

I am trying to get the md5 hash of a file. It seems the md5 I am getting from the script is different than the actual md5. If anyone could point me in the direction needed it would be great. for dir, dirs, file in os.walk(path) if file == (filename): …

Software Development python
Member Avatar for crag0
0
326
Member Avatar for sundog1

Hi Guys, Currently I have a form that load an XML file and populates Text Boxes with certian Values from that XML. I also have an 'Admin' form which accept new values. What I am wanting to do is the following: When the Admin screen is loaded from a button …

Software Development xml
Member Avatar for sundog1
0
300
Member Avatar for ben.sugden

I am responsible for developing and maintaining a widescale CRM platform written with Visual FoxPro 9.0 (sp2 SEDNA). Alongside a SQL 2008 back end, I make extensive use of the Microsoft Common Control libraries for the purposes of providing TreeViews, ListViews and the like (the kindof theing that VFP does …

Software Development gui listview
Member Avatar for ben.sugden
0
224
Member Avatar for sundog1

Hi Guys, I've been working on a little something where details get put into an XML File and then squirted into another form which has been working fine. I've now added another section to the XML file to hold the Company Name and it gets written to the XML without …

Software Development file-system xml
Member Avatar for sundog1
0
558
Member Avatar for jnewman3

I've been working on this code for 2 days now and i finally think i got the while loop running correctly but now i cant seem to print the child process id's. The code starts with the parent process forking 3 child processes. Then the parent must wait till a …

Software Development c unix
Member Avatar for rubberman
0
276
Member Avatar for Some Dude

So basically I am new to API programming and teaching myself. I've done a bit of console C++ that I got off of.... an internet tutorial. The story is the same here too. I am somewhat aware of what the lines of code do, though I am not yet a …

Software Development api c c++ windows-api
Member Avatar for neithan
0
314
Member Avatar for Chuckleluck

This might be a general math question, so excuse me if it doesn't belong here. I have an airplane that flies around the screen. Pressing the W key will make it counterclockwise, and pressing the S key will make it rotate clockwise. When I press space, it shoots bullets. However, …

Software Development image java
Member Avatar for Chuckleluck
0
156
Member Avatar for mikewyatt

Problems clearing and adding items to Jlist box. I have a set of 12 items stored in each record of a database. These record items are named as follows: LANGUAGE1 LANGUAGE2 . . LANGUAGE12 I have no problems in accessing the database. rs.getString("LANGUAGE1") and so on.... I need to clear …

Software Development java
Member Avatar for mikewyatt
0
211
Member Avatar for Red_Rain

Hey Guys, Im new to learning java and I am writing a few programs for practice. I cant figure out whats wrong with my code. When i try to compile i get an "error . class expected" Any advice is appreciated, thank you. import javax.swing.JOptionPane; public class TuitionCost { public …

Software Development java java-swing
Member Avatar for dimasalang
0
149
Member Avatar for Majestics

I am working on grid view in c#. I want to attach a key press listener with grid view to dectect up and down keys. I tried "Editcontrol" but it didnt worked. Also "Keypressed event" with grid view , it also didnt worked. Before that I used "Mouse Event" and …

Software Development
Member Avatar for TnTinMN
0
173
Member Avatar for ztdep

Dear friends: I check the value range of double and long double with vs2010, but it gives me the same value. could you please tell me how to use the long double format in vs2010. Regards

Software Development c++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for nerdnapster

Hello guys, I have a program created that opens a program and execute it as well. For example: filename = raw_input('Input a valid NAPS filename -> ') execfile(filename) I put my file helloworld.naps (my file extension) And it execute smoothly. Now my question is, how to verify the user input …

Software Development python
Member Avatar for nerdnapster
0
128
Member Avatar for nerdnapster

I'm creating a simple module that have a cin and cout functions. This will accept the user input and display it afterwards. Just like this: text = napster.comein("Enter a number: ") napster.getout(text) I have a problem in the function code because I'm an amateur in python programming. This is my …

Software Development python
Member Avatar for nerdnapster
0
122
Member Avatar for Dili1234

I want enter the telephone no into text box like this 022-1234567 how to set the textbox commands to get like this...........

Software Development vb.net
Member Avatar for Dili1234
-1
134
Member Avatar for daino

Would anyone know what this kind of syntax means. Its in reference to a library I want to include in my c++ applicaiton. It takes this form. Where can I read up about this. I've tried a google search but I'm not sure what to search on. #include <name/name.p> //what …

Software Development c++
Member Avatar for daino
0
146
Member Avatar for nsharif

expandable JPanel while adding items Hi, I have a JFrame and I added JPanel inside it However, I designed in a way, I can add JButton to that panel it is used as a bookshelf for example btn 1 btn2 btn3 so each time i add, it goes three columns …

Software Development java
Member Avatar for nsharif
0
236
Member Avatar for ar123

Hi there! I am new to daniweb.com and C++ CLI. I am trying to make a program that will tell the user the text for the ListItem number they type in. The ListItem information is stored in a text file with my custom file formatting, which is: <~ListItem 1> text.... …

Software Development asp.net c++
Member Avatar for ar123
0
289
Member Avatar for Sevyt

I got a textbox which holds a persons address For example Streetname / house number / box number They are seperated by a space I want them to go into their own textboxes TxtStreet, TxtHousNr, TxtBoxNr I am pretty sure its best done with indexof But i cannot get it …

Software Development vb.net
Member Avatar for Sevyt
0
174
Member Avatar for Krazykado

I am fairly new to Java programming and I am having problems with creating a program with these requirements: 1. Create a program to simulate the roll of 2 – six sided dice. 2. Test to see if the dice are equal. 3a. If they are equal print “You win! …

Software Development java
Member Avatar for matencio
0
801
Member Avatar for savedlema

Hi friends, I'm developing an application for HR. I have two tables so far.One is tblDetails and the other is Academic. I have created a relationship (ID to AcademicID), I have been able to pull data to a form by this SELECT statement: sqlSearch = "SELECT tblDetails.ID, tblDetails.FirstName, tblDetails.Surname, Academic.AcademicID, …

Software Development vb.net visual-basic
Member Avatar for savedlema
0
209
Member Avatar for pooja123

Hi, I am a beginner and new here. I have a question which might be very easy for you all so thought of asking a good solution. I need to read an integer from console into an array in c++ , can any one please help! for example: I want …

Software Development c++
Member Avatar for pooja123
0
177
Member Avatar for honeybee2090

my text box have multi lines i want to count those lines and show it in form caption. spoz i have 12 lines in text1.text i want show it like this Sockz-12

Software Development visual-basic
Member Avatar for honeybee2090
0
536
Member Avatar for mageamida

need some help guys im trying to put a hyphen between a number for the telephone number but i want to use the keypress or textchanged i already done it using the button so im trying to use the textbox rightnow but after the hyphen is been inserted to a …

Software Development vb.net
Member Avatar for mikeybware
0
180
Member Avatar for Ctechnology24

I know that its very simple to save an image source in a MySQL database but my problem is that how can I save an image source and add it to my project's resources so that I can call it easier even if I transfer my Application to other PC, …

Software Development image mysql vb.net visual-studio
Member Avatar for Ctechnology24
0
293
Member Avatar for rahul.ch

import java.util.*; public class GenericDemo4 { public static void main(String r[]) { Set s1 = new HashSet(); s1.add(0); s1.add("1"); dostuff(s1); } static void dostuff(Set<Number> s) { do2(s); Iterator i = s.iterator(); while(i.hasNext()) System.out.println(i.next() + " "); Object [] oa = s.toArray(); for(int x = 0; x<oa.length; x++) System.out.println(oa[x] + " …

Software Development java
Member Avatar for rahul.ch
0
302
Member Avatar for rahul.ch

class Sample1 { Sample1() {System.out.println("Sample1 const"); } void doStuff(){System.out.println("sample1 dostuff"); } } class Sample2 extends Sample1 { Sample2() {System.out.println("Sample2 const"); } } public class Sample3 extends Sample2 { Sample3() {System.out.println("Sample3 const"); } public static void main(String r[]) { new Sample3().go(); } void go() { super.doStuff(); } } The output is: …

Software Development java oop
Member Avatar for rahul.ch
0
198
Member Avatar for Ashenvale

Hi, i want to call frame B from Frame A private void BFrameBActionPerformed(java.awt.event.ActionEvent evt) { Frame B = new Frame B.setVisible(true); } NOTE :calling JframeB is trigerred by a jButton but when I do this FrameA overlays my Frame B. can someone help me with this?

Software Development java
Member Avatar for Ashenvale
0
79
Member Avatar for de Source

hi.. i want to know the the syntax of for loop that can circulate betweent "0" to "63" with step "8" that mean if value of "i" become 60 it will not move to 68 it should be go back to zero after 63 and the value of "i" should …

Software Development
Member Avatar for Momerath
0
87
Member Avatar for techyworld

Hi, I write some data to a file called original.txt in python, then i read the file original.txt ,convert watever in the file to string(str), then write it in another file called copy.txt. Now i want to read the copy.txt and output it in python itself. It does not display …

Software Development file-system python
Member Avatar for techyworld
0
367
Member Avatar for sapure

When choosing the input file, I tried three ways & all of them generated errors ! I created the file.txt in the project's folder. I'm using Netbeans IDE. 1) Passing java ShowFile Input.text as a command-line argument [properties ---> run ---> wrote this command-line in the 'Argument' box] 2) Using …

Software Development file-system ide java java-netbeans
Member Avatar for stultuske
0
207
Member Avatar for Dudearoo

**Dudearoo** *Useing Code::Blocks* Are Programs Dependt on There Library'sI've Wonderd This For Some Time, and I would Love to know this because one of the main reasons i Love C++ is That all its Library's are Basic In the Users Computer, now I want To Download the Boost Librarys but …

Software Development c++
Member Avatar for Dudearoo
0
123

The End.