43,549 Solved Topics
Remove Filter ![]() | |
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++ | |
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); … | |
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 << … | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 | |
//**************************************************************************************************** // 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 | |
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 | |
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() … | |
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 … | |
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 … | |
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 | |
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) … | |
#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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
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 | |
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, … | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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.... … | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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: … | |
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 | |
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 | |
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 | |
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 | |
**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++ |
The End.