43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for daino

I'm not sure how to ask this but here it goes. I am building a C++ application, in this case I'm building it in Code::Blocks with a MingW compiler. I want to incorporate/utilize/whatever, SQLite into my applicaiton by **including** (#include) the sqlite C code header file sqlite3.h in my project …

Software Development c++ sqlite
Member Avatar for daino
0
1K
Member Avatar for Viped

Hi, how is it possible to handle multiple keys at same time. I am making platformer game. Now if I push forward it goes forward until I release button or hit some else button example jump. What should I do to achieve that it wouldnt stop going forward but jumps …

Software Development java java-swing
Member Avatar for Viped
0
179
Member Avatar for sapure

public class BufferedReader { public static void main(String[] args) throws IOException { char c; BufferedReader sen = new BufferedReader (new InputStreamReader(System.in)); **// ERROR** System.out.println("Enter characters, 'q' to quit"); // read characters from the console while(c != 'q') { c = (char) sen.read(); **// ERROR** System.out.print(c); } } } I don't …

Software Development java
Member Avatar for NormR1
0
204
Member Avatar for TeaYou

Hello everyone! I'm working on a school project where I need to make a GPA calculator. I have a user control for classes and another for the type of program you are in. I'm having trouble getting an array of user controls to work mostly probably because I don't think …

Software Development vb.net
Member Avatar for Begginnerdev
0
222
Member Avatar for MiniApocalypse

Hiya! Im not new to programming but sometimes i can be really noobie so im sure this is probably really silly. I have an undecleared indentifier that only shows up in the main but is fine in the header and cpp files. I thought it might be an include loop …

Software Development c++ gaming
Member Avatar for MiniApocalypse
0
330
Member Avatar for KellieD

Hi! Im doing an introduction to programming course in college and I have only been studying computer programming for the past six weeks. Our lecturer has given us an assignment to do by thursday which is to write a program that converts all of the uppercase letters to lowercase letters …

Software Development c++
Member Avatar for Ancient Dragon
0
3K
Member Avatar for Wolxhound90

Hi guys, I currently have a VB application which begins by calling an external C# application to download an eBay report. When it has downloaded the process ends, but the focus doesn't switch back to the VB program. Will I need to run the VB program at the end of …

Software Development vb.net
Member Avatar for Wolxhound90
0
93
Member Avatar for summey

I am trying to figure out how to distiguish if the user input was a string or a int. The out put i am looking for is please enter a string: cat please enter a string: dog please enter a string: hamster please enter a string: 1234 please enter a …

Software Development java
Member Avatar for summey
0
1K
Member Avatar for Koji01

String Compare and File Handling mixing together... I am practicing my self to combine functions together like this. so get this, is it possible to search record from the File using File Handling(fscanf) and compare it from the User's input and display it...check out my program. content of **2003.txt** 1234 …

Software Development c++ file-system
Member Avatar for Koji01
0
634
Member Avatar for ponnu

vb6 code to check if record doesnt exist,then insert new record.server is ms access 2010.So when i used the Dlookup function If IsNull(DLookup("[empid]", "[employee]", "[empid]= & txtemplid.text")) Then I got error like "function or subfunction not defined .is it due to issues with referencs .how can i fix this error …

Software Development visual-basic
Member Avatar for ponnu
0
2K
Member Avatar for Mike Askew

This will sound like a homework assignment, it sort of is, but isn't. Anyway! I have created a simple address book application with a CSV backend. This utilises a Person class to store the contacts details and an AddressBook class storing the list of Person. Within the code we have …

Software Development
Member Avatar for Mike Askew
0
107
Member Avatar for RonKevin

Error: Declaration Syntax error on function input Note: using turbo c++ 4.5 compiler #include "iostream.h" #include "conio.h" #include "stdlib.h" #include "cstring.h" #include "fstream.h" #include "time.h" #include "stdio.h" time_t now=time(0);char*dt=ctime(&now); int ch,dn=0; struct BuyerInfo { char id[5]; string fn; string mn; string ln; string ad; } info[100]; struct grocery { char …

Software Development c++
Member Avatar for RonKevin
0
156
Member Avatar for chao.lee.927

To display system clock time in LCD format I just want to display system clock time in LCD format, also want the time to be displayed with the format of hh:mm:ss ,my code is as following ,but when I run it ,it is out of my expectaions ,so anyone can …

Software Development display python
Member Avatar for chao.lee.927
0
394
Member Avatar for lianpiau

my record got OrderFormNo and CashBillNo.(one to one insert) if 1st record OrderFormNo is 123 and CashBillNo is ABC, if 2nd record also same OrderFormNo, the CashBill must be same. As a result, I want detect if got same OrderFormNo in database but different CashBillNo, will not insert to database.

Software Development visual-basic
Member Avatar for debasisdas
0
225
Member Avatar for smith32

Hi, I'm working on a quick sort for double linked list. All work except the first item. I don't know what is wrong. Can u plz help me find the error? Here is my code. dlist_t* quick_sort(dlist_t* list) { dlnode_t *tnode = NULL, *first = NULL, *last = NULL; first …

Software Development c linked-list seo
Member Avatar for smith32
0
246
Member Avatar for RonKevin

here...theres something wrong it doesnt read all of the file and displays some annoying numbers..i think my code now is right but it isnt when i run the program..whats wrong with it? #include<iostream.h> #include<cstring.h> #include<fstream.h> struct grocery { int barcode; string prodname; string category; float price; } ; int main() …

Software Development c++
Member Avatar for WaltP
0
158
Member Avatar for Ubunterooster

"Line 53: error: too few arguments to function 'void printResult(int, double, double, double)'" I have an "error" with my code (or so my compiler informs me) at line 53: "void printResult" I don't see how it's possible to need more aguments in that function. Any clue on how I should …

Software Development c++
Member Avatar for Ubunterooster
0
315
Member Avatar for noahjonesnoah

Hi all, I have a question about comparing the contents of characters in arrays to see if they are the same. When I try and do something like this: char output_1[5]; char output_2[5]; int i; for (i = 0; i < 5; i++) { if (table_1[i][0] == table_x1[i]) { output_1[i] …

Software Development c
Member Avatar for noahjonesnoah
0
135
Member Avatar for zvjezdan.veselinovic

I am making a mock financial aid account for a project and I wanted to know why my program is not working. Can anyone help me out?? After creating my class, I am trying to access my getName(student_name) function in my main(). It says: "error C2065: 'student_name' : undeclared identifier". …

Software Development algorithm c++
Member Avatar for zvjezdan.veselinovic
0
222
Member Avatar for rubai

I have installed jdk and eclipse. but I can't start progamming. When I start from menu> New> class, it shows at the top "Source folder name is empty." Can anyone help me? My operating system is win7 64bit

Software Development ide java operating-system
Member Avatar for rubai
0
140
Member Avatar for crownedzero

Working with polymorphism collections, list, arraylists etc. I have a sorted collection that I would like to split based on one of the objects properties. All records > 0 to one; all less than to another. I'm trying to think of the best way to implement this. I'm thinking Comparable/Comparator …

Software Development java
Member Avatar for Taywin
0
220
Member Avatar for Thermalnuke

Hey guys Just learning about List Boxes, I have a quick Question Im Creating the Program where I have 3 text boxes and when I hit the add button it adds them to the list box off to the right if they already Exist in the list box then it …

Software Development vb.net
Member Avatar for Thermalnuke
0
958
Member Avatar for //Gonz

Hello all I am writing a solicitor allocation application that will be used by multiple users at one time. Because of this, the database needs to be updated with every change. This is my code when a solicitor is chosen for allocation: private void FindSolicitor(int type, bool stype) { table …

Software Development multithreading
Member Avatar for //Gonz
0
287
Member Avatar for amitash

Hi, I want to store today value in a string in VBA Word, e.g. today is Oct 04 2012, the string will be = "04102012". Any simple code can achieve that? Thanks!

Software Development visual-basic
Member Avatar for AndreRet
0
296
Member Avatar for Dendei

Hey i would like to know how i can use a combobox to show alternatives which i will choose from but with more information when i choose like if a combobox has theese options Klas Maria Mat i choose Mat and the selected index is Mat now i want it …

Software Development listview
Member Avatar for Dendei
0
379
Member Avatar for jontennyeah

hello. how i put a real time clock in my form ? thank you

Software Development vb.net
Member Avatar for Dili1234
0
1K
Member Avatar for silvercats

IronPython (Python running on .NET) Jython (Python running on the Java Virtual Machine) PyPy (A fast python implementation with a JIT compiler) Stackless Python (Branch of CPython supporting microthreads) Do we have to write different codes for those different python implementations (aka compilers ,right?) http://python.org/download/ << If I download windows …

Software Development python
Member Avatar for Gribouillis
0
158
Member Avatar for silvercats
Member Avatar for silvercats
0
76
Member Avatar for squizzel

Ok so for extra credit in my software/hardware design class I have to locate duplicate entries in a defined string matrix. I am really close but having trouble. Case 3 is where I am trying to acomplish the goal. Any tips? My problem is that while it will print duplicates, …

Software Development c hardware-swap
Member Avatar for squizzel
0
171
Member Avatar for markjoe.online

Write a program in C++ to print a student grade based on; 0 to 40 = E 50 to 59 = D 60 to 69 = C 70 to 79 = B 80 to 100 = A

Software Development c++
Member Avatar for WaltP
-1
107
Member Avatar for bigredaltoid

Hi all - this is the code: package sodukupackage; import java.util.Scanner; import java.io.File; import java.io.FileNotFoundException; public class ReadSudokuValuesIntoArray { public static void main(String[] args){ int[][] sudoku = new int[9][9]; Scanner sc = null; try{ int i = 0, j = 0, count = 1; sc = new Scanner(new File("validsudoku.txt")); while …

Software Development java puzzle
Member Avatar for Taywin
0
379
Member Avatar for hotblink

Hi, newbie to python here, I just wanted to ask how I can compute the after tax price and displaying only up to 2 decimal places. Like 4.1895030939393 will display only 4.18 without it rounding. Here's what I've done so far Original_Price = float(input('Please input the before-tax price : ')) …

Software Development python
Member Avatar for TrustyTony
0
201
Member Avatar for Bubbles26

Problem: Write a program that prompts the user to enter some number of 1, 2, 5, 10, 20, 50 and 100 dollar bills. Query the user separately for the number of each size dollar. I think I've completed the code pretty well but the last part of the question states: …

Software Development c++ visual-studio
Member Avatar for Bubbles26
0
196
Member Avatar for paoi00

how can i upload an image with the same size of the picturebox? can someone help me ? :)

Software Development image vb.net
Member Avatar for nmaillet
0
137
Member Avatar for on93

As a student of computing you have been talking to the owner of your local corner shop. Having found out you are a student of computing, the owner of the shop has been talking to you about how she manages the stock / inventory control in the shop. She believes …

Software Development
Member Avatar for happygeek
0
120
Member Avatar for Geowil

I decided that before I would actually write the code for my planned inventory system in a game I am writing I would test it out in a small project first to make sure I know what needs to be done and if I needed to change anything. So I …

Software Development c++ matrix-multiplication
0
110
Member Avatar for agentc0re

I am currently in an introductory c++ class and am working assignment that sorts data. We recently covered structs and I decided to use structs to approach the problem rather than create 3 arrays to hold the information from our data file. The trouble i'm having is when i'm trying …

Software Development c c++
Member Avatar for agentc0re
0
278
Member Avatar for binaryjc

Given 3 arrays,one accepting Strings the rest integers,lets say:A1[ ],A2[ ],A3[ ]. We get the difference of each element of A2[ ] and A3[ ] to a previously define values. take for example this code: //preference.c #include<stdio.h> #include<string.h> typedef char * string; //for STRINGS char name; int test; // number …

Software Development c
Member Avatar for WaltP
0
262
Member Avatar for silvercats

I mean,let's say we write a console (windows) application to display a text. it woruld be console.write("whatever"); 1. do we have to use different compilers for both windows and linux?what are the names of them 2.is console.write a windows only code? even if we compiled for Linux, will it run …

Software Development c++ operating-system
Member Avatar for Ancient Dragon
0
279
Member Avatar for k22mac

I am taking an intro level java programming class and i am a little stuck at the moment. I'm trying to use a the replace method. My objecti with this program is to gather a phrase from the user and then have it print the same phrase with some characters …

Software Development java
Member Avatar for dimasalang
0
116
Member Avatar for HelloJarvis

Hey guys, I'm working with `strchr` and, for some reason, am getting a segfault. My program takes a string, iterates through the characters of that string, and adds a score to the "game" based on what letter the current character is. That sounds complicated, but my code will explain it: …

Software Development c
Member Avatar for HelloJarvis
0
1K
Member Avatar for Dman01

Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); …

Software Development c++
Member Avatar for Dman01
0
199
Member Avatar for Poojaaa

I am working in sql2000 database as backend and Vb6 as frontend. Its for bank scenario I am trying to display the balance corresponding to particular account number. Do try to help. Following is my code. ************************************* Private Sub Command1_Click() Dim con1 As New ADODB.Connection Dim cmd1 As New ADODB.Command …

Software Development open-source visual-basic
Member Avatar for AndreRet
0
106
Member Avatar for angel06

Hello! I'm currently working with my monitoring system now, is there a code to append records from table 1 to table 2? Please help me guys! Thanks.

Software Development visual-basic
Member Avatar for BitBlt
0
237
Member Avatar for Dili1234

Dim bill As integer=textbox14.text Module1.billno = bill Form18.txtbillno = Module1.billno Value of Type 'Integer' cannot be converted to System.Windows.Forms.Textbox

Software Development vb.net
Member Avatar for Dili1234
0
193
Member Avatar for jemz

Hi,i have a program and i created into a jar file,but the problem is when i am going to remove the jar file into the directory where my java classes and pictures resides,when i click the jar file the picture of my buttons are gone.can you help me please how …

Software Development java
Member Avatar for jemz
0
415
Member Avatar for rhowell

I'm working with some old code and the users tell me that the original program's output was a single binary file containing multiple stuct data. The output I get is a binary file containing a single structure. The comment also indicates that this what is happening but I need to …

Software Development c data-structure file-system linked-list
Member Avatar for poornamoksha
0
254
Member Avatar for abders

The GUIFlowLayout is giving me some trouble, the GUIFrame works fine. I have copied this from the Java programming book which I am using (Introduction to JAVA, eight edition, by Y. Daniel Liang). I get red error lines under 'setLayout', all of the 'add' words, and all the 'setTitle, setSize' …

Software Development java java-swing
Member Avatar for abders
1
291
Member Avatar for guru_iyer

I've a DataGrid Control in my application and a button. When i click a button it should display the contents of the Logins table in the DataGrid. For this I've coded the following, but its giving me an error "Rowset is not bookmarkable.". I've searched a lot, many suggestions include …

Software Development open-source vb.net visual-basic
Member Avatar for AndreRet
0
1K
Member Avatar for sundog1

Hi Guys, I'm quickl writing a little application which sends an email via SMTP and has the option to add a attachment. This is working fine however, When I went to send a email without attaching a file the Error Message I get is the following **"The Parameter 'fileName' cannot …

Software Development email pdf
Member Avatar for sundog1
0
199

The End.