132,726 Archived Topics

Remove Filter
Member Avatar for
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 phfilly

Hi guys! So I need help with a small problem. I'm using a char pointer array which contains a mathematical expression. For example: "sqrt 25" Now I want to use the inbuild c++ function `sqrt(int))`. I'm first searching in the array for the letters 'sqrt' so that my custom function …

Software Development c++ mathematics
Member Avatar for WaltP
0
392
Member Avatar for cruze098

Hi, This is my code: def update_cost(self,newcost): if self.view.curselection() == (): tkMessageBox.showerror(None,'No Item Selected') else: for key, value in self.products.mydict.iteritems(): check1=self.products.mydict[self.select_id()].get_depend() if check1==[]: v=self.products.get_item(self.select_id()) v.set_cost(int(newcost)) self.write() else: tkMessageBox.showerror(None,'Cannot Update Cost Of Compound Item') def select_id(self): index = int(self.view.curselection()[0]) item = self.view.get(index) return item.split()[0] view is just a class which inherits …

Software Development python
Member Avatar for vegaseat
0
385
Member Avatar for revelator

Hi friends, i am doing a basic menu based Car rental system in C. i have a doubt regarding switch... do C permit us to use multiple switch case? or a Case within a Case??

Software Development c
Member Avatar for revelator
0
205
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 sundog1

Hi Guys... I've had some great help from the members in Dani Web so thanks for all the support so far. Now My first ever credible application is working I would like to try and setup some type of Licencing for it. I've come across many tutorials in regards to …

Software Development
Member Avatar for sundog1
0
175
Member Avatar for owenransen

I've had a sudden surge of interest in an old (2007) program which is an MFC Dialog based app. So I'd like to spruce it up a bit, and one of the annoying errors is that its proper icon does not appear in the bar at the bottom of Windows. …

Software Development c++
Member Avatar for ktsangop
0
475
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 veeeeebeeeee

1) Could anybody tell me why I am getting a NullReferenceException when I hit exit? 2) Also, how would I display my txtPrice in currency form ($0.00) 3) How would I disable my navigation buttons at the same time once they reach the end of the datagrid? Option Strict On …

Software Development vb.net
Member Avatar for Begginnerdev
0
218
Member Avatar for shalshal

hi, is it possible to collaborate matlab and c#? if yes..how do you do it? and will the application be able to run on windows phone 7?

Software Development c#
Member Avatar for nikita singh
0
118
Member Avatar for paoi00

i want to save my picture in database i have these codes but then there is an error . " command text was not set for the command object " how to solve this problem? thank you.! Try If imgName <> "" Then Dim fs As FileStream fs = New …

Software Development open-source vb.net
Member Avatar for salma sally
0
737
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 Waldek

I have a problem that hopefully someone can shed light on. My OleDBdataadapters and OledbTableadapters have gone on strike!! In a simple vb.net 2005 pro project I have an Access 2003 .mdb with 2 tables each with 1 primary key and all other fields allowing zero length and not required. …

Software Development dataset microsoft-access vb.net
Member Avatar for yand
0
606
Member Avatar for semicolon

Please help me to unrar a file in C# or any free 3rd party dll

Software Development c c# c++
Member Avatar for nmaillet
0
231
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 dpsh

Hi, pls try to observe the size(i.e. total) of object for below program and in different cases as commented out. #include<iostream> using namespace std; class B { int x; // try by commenting either data member and observe the object size int *p; public: virtual void show(){} }; int main() …

Software Development c++
Member Avatar for dpsh
0
94
Member Avatar for nitin1

#include<stdio.h> #define num 10000000 int a[10000009]={0}; void sieve() { int i,j; for(i=2;i<=3164;i++) //loop till sqrt of largest number 10^7 { if(a[i]==0) // all primes are marked 0 { for(j=i*i;j<=num;j+=i) { if(a[j]==0) a[j]=i; // if i is prime then all it's multiples pos have value of i } } } return; …

Software Development c
Member Avatar for TrustyTony
0
219
Member Avatar for cheekangteh

i face a problem in checking file condition. I wish to create a program that can check the condition file continuously while the program is running. For code below that I wrote: [CODE]Private Sub StartTracking_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim FILE_NAME As String = "\Program …

Software Development file-system smartphone vb.net
Member Avatar for lebo.bytes
0
1K
Member Avatar for nitin1

here is a DP problem which i am solving from 2 days now. and i am finding a damn difficult. can you please tell what is overlaaping subproblem and what is optimal substructure in this problem. then i will try it again. any help will be appreciated. thanks http://www.spoj.pl/problems/GNYR09F/ thanks

Software Development c
Member Avatar for Gonbe
0
176
Member Avatar for szejna

In the function for overloading the >> operator I am getting this error: 84`rationalize_number' undeclared (first use this function) this is the function: istream& operator >>(istream& in, Rational& rational1) { char tempChar; int numerator = rational1.numerator; int denominator = rational1.denominator; in >> tempChar; if(tempChar == '(') { in >> rational1.numerator …

Software Development c++
Member Avatar for rajenpandit
0
119
Member Avatar for Blax

Hello, I am currently working on a school project and ran into a little bit of trouble. Every time I compile the program I get 2 errors they are: cirlce.java:23: incompatible types found : java.io.IOException required: char letter = get.ioException(); ^ cirlce.java:37: possible loss of precision found : double required: …

Software Development java
Member Avatar for stultuske
0
287
Member Avatar for oneoderja

Modifty the Cash Register Class to create a file containing a sales receipt. The program should ask the user for the quantity of the items being purchased and then generate a file with contents to similar to the following: SALES RECEIPT UNIT PRICE: 10.00 QUANTITY: 5 SUBTOTAL: 50 SALES TAX: …

Software Development java
Member Avatar for stultuske
0
294
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 sharlynjm

Hi all, i want a simple java code to convert currency to indian rupees...how to proceed?

Software Development java
Member Avatar for stultuske
0
123
Member Avatar for hyung101

hmm..i'm doing something like a simple registration.. the user will input the information being asked, then those info will be stored into an array..are spaces not allowed to be stored in an array..? well, i can't explain the problem that much.. here's my simple code: #include <stdio.h> int i; char …

Software Development c
Member Avatar for WaltP
0
308
Member Avatar for salakgocap

Hi, Just wondering if anyone have a good source to read about getting an input from a file. for example: rather typing on the command prompt, i prefer to store all my command on .txt file. and using a single command to read what inside the .txt file and run …

Software Development c
Member Avatar for WaltP
0
160
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
387
Member Avatar for Marty1963

I wasn't able to get any response from my last post, so I'm rewording my question with hope that my question is easier to understand. I need to get a visitors location and display a custom header graphic based on the *Region* returned. For example: I live in Edmonton, in …

Software Development java
Member Avatar for chrislim2888
0
153
Member Avatar for jontennyeah

why when i save my vb project it save as SLN file? how it can be in a windowsapplication format? thank you

Software Development vb.net
Member Avatar for Reverend Jim
0
108
Member Avatar for wids101

this loop is running more times then i want to and when the user puts in the wrong number how do i print out an error. #include <iostream> #include <iomanip> #include <cmath> using namespace std; int main() { string answer; int soda; do { cout << "Choose a drink or …

Software Development c++
Member Avatar for wids101
0
97
Member Avatar for iamthwee

At the moment I'm using getPixel() to scan the screen and get coord colours, but it's seriously slow. What's the best way to do it? Get a screen grab as a .png or .jpg and then process it. Would this be faster...

Software Development c++
Member Avatar for iamthwee
0
104
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 anisha.silva

hi does anyone know any tool that will getnerage code when the sequence dragram is there? apppreciate a reply, thanks

Software Development
Member Avatar for anisha.silva
0
130
Member Avatar for dustin.short.5

So I am taking C++ at thomas edison state college for a degree. I needed a computer course so I chose C++ instead of PLCs. The reason being is that I used to do some basic coding back in the apple IIe days. I apparently don't have the attention span …

Software Development apple c++
Member Avatar for WaltP
0
340
Member Avatar for crissium

this game is called "pig latin" it spit all the string, put the first consonant to the end and adds "AY" to the end. for example --> "this is test" --->"histAY isAY estAY". it gives me string subscript out of range. thanks #include <iostream> #include "conio.h" #include <string> #include <sstream> …

Software Development c++
Member Avatar for crissium
0
159
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 straylight

I am attempting to reverse a string for a homework assignment and then reverse each word in the string. The trick is we are suppose to code it without using functions. Like "I like cats" should be 1st "stac ekil I" and then "cats like I". Here is what I …

Software Development c
Member Avatar for rithish
0
1K
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 BUGSIE91

I learnt to create a exe file of a project from this link [Click Here](http://www.fordevs.com/2009/07/steps-to-create-setup-and-deployment-project-in-dot-net-vs-2008.html) The app that i am creating requires a database...i.e, it has a login form which verifies the data entered with a ms access database...how do i include that database file in the exe??? to create …

Software Development
Member Avatar for Codefiva
0
324
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 Brigadier

Hi Everyone, I have been stumped by this problem. I need to create a pattern such as: 1 21 221 2221 22221 Using nested for loops. I have something that does (A) 222221 222221 222221 222221 222221 and used to have something that did (B) 1 21 221 2221 22221 …

Software Development c
Member Avatar for Adak
0
117
Member Avatar for oneoderja

I want to modify the Cash Resigter Code below to create a file containing a sales receipt. The program should ask the user for the quantity of items being purchased, and then generate a file with contents below: SALE RECEIPT Unit Price : $10.00 Quantity: 5 Subtotal: $50.00 Sales Tax: …

Software Development java
Member Avatar for stultuske
0
3K
Member Avatar for jdh1231

Hi, I am trying to put random numbers in array, and use the array for other functions. However, I am stuck on inputting and displaying that array with random numbers. Can someone help? Please ignore other cases, and focus on case 0, which is displaying the elements of the array. …

Software Development c++
Member Avatar for np complete
0
326

The End.