43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for sandman64

[CODE] #include <iostream> #include <string> using namespace std; int getNumAccidents(string); void findLowest(int, int, int, int, int); int main() { int counter, num, crash1, crash2, crash3, crash4, crash5; string n = "North", s = "South", w = "West", e = "East", c = "Central"; for (counter = 0; counter < 5; …

Software Development c++
Member Avatar for sandman64
0
154
Member Avatar for dnyansagar

Hi all, I have a data which looks like this, Input: man1 car man1 wallet man1 shirt man1 shirt man2 truck man2 house man2 jacket man2 jacket man2 jacjet man2 computer I want to collect the data, but while collecting I want to count them as well So the the …

Software Development python
Member Avatar for TrustyTony
0
402
Member Avatar for patel28rajendra

hi I have one form in which there are different combobox.I want to fill these combo boxes from one tables one column name valve_type and other column is Id. I hve to fill valve type in different combobox as per id. suppose if id=1 then fill in combobox 1

Software Development
0
74
Member Avatar for ppzm78

Hi I want to load data from a flat file into a SQL table. The file has a header row and detail rows, all of which need to be loaded. I've tried various suggestions I came across in forums and EndOfStream is the one that loaded all the rows. The …

Software Development file-system open-source sql
Member Avatar for ppzm78
0
184
Member Avatar for mangal123

how can i do work with menustrip please give me code

Software Development
Member Avatar for Panathinaikos22
-1
170
Member Avatar for khentz

hi, Please help me with my listview. The listview did'nt show any list items. here's my code: [CODE] Private Sub txtSearch_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtSearch.TextChanged Dim strSearch As String strSearch = "SELECT * FROM tblMobileTracking WHERE accountNumber LIKE '" & txtSearch.Text & "%'" myConnection.Open() Dim …

Software Development listview vb.net
Member Avatar for khentz
0
182
Member Avatar for ericko10kip

i am stuckin the printing the listview items.i have already displayed in the listview.i would like to printpreview and also print it. please help people.

Software Development listview vb.net
Member Avatar for lolafuertes
0
209
Member Avatar for Nareshp_123

Hi all, can anybody please tell me whether is it possible that through windows service we can able to move file from one machine to another....??? what i made is first i checked with normal windows application ,by creating a mapped drive to my machine. ex:- Y:\ and i was …

Software Development file-system
Member Avatar for JerryShaw
0
2K
Member Avatar for raaif

I have created a contextmenu (cnt_hys) and am adding items to it as program runs based on the user input in textbox1. when the user clicks button1 the contextmenu shows up and when the user clicks an item on the contextmenu strip i want to get the text of the …

Software Development cms vb.net
Member Avatar for raaif
0
7K
Member Avatar for TIP.Synergy

i have a list of record that already populated but my problems is How to find out if there are any duplicates? VB.NET

Software Development listview vb.net
Member Avatar for TIP.Synergy
0
2K
Member Avatar for JoshuaBurleson

Hello mates, I was wondering if in that vast amount of knowledge floating around here if any of you knew how I could save an image using Python 3.x. I know that PIL is a great, and easy option for Python 2, but I assume there must be some way …

Software Development image python tkinter
Member Avatar for JoshuaBurleson
0
588
Member Avatar for techlawsam

ok so I am practicing with a basic carpet calculator , but when I came midway into it I noticed the " (double) " data types , I know its used to shift a value's decimal places two places but in this case it is acting the same way how …

Software Development
Member Avatar for techlawsam
0
180
Member Avatar for XodoX

Hi, how do I exactly do this? [quote]1) Read an integer from the input. (Reading will automatically stop after the first non-digit character, accounting for possible sign characters.) 2) DO read the next character WHILE the read character is whitespace, then validate it as an operator and store it. 3) …

Software Development c++
0
76
Member Avatar for Ravic85

[CODE] Rectangle::Rectangle() {length = width = 1.0;} Rectangle::Rectangle(double len) {setLength(len);} {setWidth(1.0);} Rectangle::Rectangle(double len, double wid) {setLength(len);} {setWidth(wid);} [/CODE] I get this error: Error 1 error C2447: '{' : missing function header (old-style formal list?) H:\C++\Programming assignment one\Programming assignment one\programming assignment 1 member functions.cpp 19 on line 5 and 9 and …

Software Development c++
0
82
Member Avatar for DarkMonarch

where does eclipse get installed, i know ive choose the folder for the workspace, but not the IDE in its whole. why? im on win32 and i need to drag a shortcut on my desktop thx Fund it, nevermind, it's the uncompress folder and it doesn't install itself. DarkMonarch

Software Development ide java
0
79
Member Avatar for CoolPrizes

So I need help on how to calculate how much change to give back to a customer. I need the program to give change in the least bills and coins as possible. Ex. Customer's item costs $13.37. He/She pays $20. Program gives back: One $5 Bill One $1 Bill Two …

Software Development finance java mathematics
Member Avatar for CoolPrizes
1
7K
Member Avatar for Gerhardt1

is it possible to make a button click event open a window? if so how should i do this? i mean a window that has already been created and marked up, im using wpf and am a staring programmer with not so very much knowledge of the language

Software Development
Member Avatar for Mitja Bonca
0
224
Member Avatar for newbie26

how can i print specified number of records in using data report?? example, i enter number 5 in a text field. then, when i click a button, the first five records will be generated into a data report with their corresponding data and has it's templte per record. meaning, the …

Software Development visual-basic
Member Avatar for mb01a
0
128
Member Avatar for bluehangook629

hey guys, I have this simple set a codes that opens a form as a child in MDI container. [CODE] Private Sub BarButtonItem1_ItemClick(sender As System.Object, e As DevExpress.XtraBars.ItemClickEventArgs) Handles BarButtonItem1.ItemClick frmConfirmShipment.MdiParent = Me frmConfirmShipment.Show() ''Dim NewMDIChild As New frmConfirmShipment() With {.MdiParent = Me} ''For Each ChildForm As Form In Me.MdiChildren …

Software Development vb.net
Member Avatar for bluehangook629
0
206
Member Avatar for SasseMan

Hello! I have a swing app with lots of components and stuff. I want to place a Container/Jpanel on top of everyting else that is invisible that contains other component which are visible. I can make the panel invisible or not opaque and still show its child component but I …

Software Development java java-swing
Member Avatar for mKorbel
0
955
Member Avatar for Ruchi224

This is the syntax i have written in vb.net to compare the text entered in textbox with the database. If existing, the value will be entered in databse, if not, it will give a msgbox displaying to add a new contact. I am new in vb.net. The database is Ms …

Software Development microsoft-access open-source vb.net
Member Avatar for Netcode
0
124
Member Avatar for NetJunkie

I am using a DLL file as my license file for a VB.NET project and was wondering if there was a way to make it locked so notepad can't open it and edit the data stored in there. Thanks in advanced!

Software Development encryption vb.net
Member Avatar for adam_k
0
423
Member Avatar for Jessurider

i 've got a steganography project in java.......in that we can hide text within pictures and videos......but the major disadvantage is that the hidden data is been destroyed when the image or the video is further modifies with the hidden data............is it possible to do a steganography project in java …

Software Development java
Member Avatar for Taywin
0
272
Member Avatar for Cainer

Hi, I'm not sure if this is right forum to ask, please don't kill me if it isn't. I'm using Visual Studio C++ Express 2010. I found that different setting in project properties can lead to big difference in performance of application. My app was running at 140 FPS, I …

Software Development c++ visual-studio
Member Avatar for mike_2000_17
0
148
Member Avatar for Jsplinter

I am trying to write a class which holds either a pointer to an object of class A(base) or class B(derived) depending on conditions at run time. The base class and derived class: [CODE] class A { protected: int x; }; class B : public A { public: int y, …

Software Development c++
Member Avatar for gerard4143
0
154
Member Avatar for Dmiller071

Hi all, For my java class I need to make the game of life. So far I have 2 main classes that drive the program (ignoring GUI class for now.) My main classes: Cell(x, y) - where x = the x coordinate and y = the y coordinate of the …

Software Development gui java
Member Avatar for Dmiller071
0
113
Member Avatar for alliswim2010

Hello I'm having major issues, please help me with this code; (Generating random characters) Use the methods in RandomCharacter to print one hundred uppercase letters and then one hundred single digits, and print ten per line. Use these methods: public static char getRandomUppercaseLetter(){ return getRandomCharacter('A', 'Z'); } public static char …

Software Development java
Member Avatar for alliswim2010
0
695
Member Avatar for Frederick2

This is my first post! I can’t figure out how to modify/cast the return address obtained from the Windows Api function GetProcAddress() without using a typedef. I’m aware that using a typedef is the standard way to do this, but one should be able to do it without a typedef, …

Software Development api c++ windows-api
Member Avatar for bitluni
0
5K
Member Avatar for SakuraPink

Hi all, I want to run a cpp code a couple of times using a shell. Cpp code needs a text file as an input. I have been trying to pass the file to the cpp code no success. The following is what I have done so far: [CODE]#! /bin/bash …

Software Development shell-scripting
Member Avatar for SakuraPink
0
240
Member Avatar for sumi1234

the aim of this program is to create a record of 20 members inputted by the user st the phone number is stored in 3 different parts e.g. 011-234-7891 where 011 is area code 234 is exchange and 7891 is numbr...every record must have a member id and member name …

Software Development c c# c++ oop
Member Avatar for sumi1234
0
271
Member Avatar for dospy

i've never knew how to use command line arguments since the first source code i used to edit(and from i learned basics of c++) was using a config file to 'read' user input data on program startup and not command line arguments. now my question, what's the difference between using …

Software Development c++
Member Avatar for dospy
0
2K
Member Avatar for Hendo

I'm putting in an admin form that will provide variable information, into my application. How can I Password Protect that child form? Thanks, Hendo

Software Development
Member Avatar for nick.crane
0
156
Member Avatar for shandoosheri

Hi i have a lot of ANSI encoded files in the same folder with different extensions and i want to convert all this files into utf-8 encoded files so how can i do this in c# [I][B]Thank you [/B][/I]

Software Development
Member Avatar for Alexpap
0
508
Member Avatar for arjunpk

Hi, I have a program which has to do a lot of lookup. there are multiple threads running in parallel and all of these threads have to do a lookup on the same list of words. Currently i'm storing the list of words in a dictionary in each of the …

Software Development seo
Member Avatar for Momerath
0
244
Member Avatar for CodeAerial

The output is obtained from a JPasswordField and placed into a text. But whenever I enter a new input on the field, it just shows the recent one I've entered... Ex: I enter "test1" as a password. When I enter a new one, say "test2", it only shows "test2" in …

Software Development java
Member Avatar for CodeAerial
0
146
Member Avatar for Ruchi224

Hello !! I am trying to implement datagridview using b.net and ms access. While I import the data from database, the connection is established and test connection succeeds. But, during the last phase, i get an error saying : Could not load type 'Microsoft.VisualStudio.DataDesign.SyncDesigner.syncFacade.SyncManager' from assembly 'Microsoft.VisualStudio.DataDesign.SyncDesigner.DslPackage, version 9.0.0, Culture=neutral,PblicKey …

Software Development assembly microsoft-access vb.net
Member Avatar for Ruchi224
0
109
Member Avatar for lightdshadows

[CODE]#include <fstream> #include <iomanip> #include <string> using namespace std; const double PI = 3.1416; int main() { ifstream inFile; string fname, lname; int age, beginningBalance; double length, width, radius, interestRate; char ch1; inFile.open("inData.txt"); inFile >> length >> width >> radius >> fname >> lname >> age >> beginningBalance >> interestRate …

Software Development c++
Member Avatar for lightdshadows
0
211
Member Avatar for Bamboozled

I have the following VB6 code [CODE] Dim objdir As Scripting.FileSystemObject cfile="c:\workingdir\france\include" If DirExists(cfile) = False Then objdir.CreateFolder(cfile) End If Public Function DirExists(OrigFile As String) As Boolean Dim fs Set fs = CreateObject("Scripting.FileSystemObject") DirExists = fs.FolderExists(OrigFile) End Function[/CODE] The folder C:\workingdir\france already exists and there should not be any permissions …

Software Development vb.net visual-basic
Member Avatar for Bamboozled
0
364
Member Avatar for cheiL

hi there Below is my code for a webmethod which checks if data is existent in a table and then amends if bool is true or adds new if bool is false For some reason my amend works fine but it seems to jump the else condition altogether. Only passes …

Software Development
Member Avatar for cheiL
0
93
Member Avatar for Macilath

Hello all, As part of a homework assignment, we're to take [URL="http://stroustrup.com/Programming/calculator08buggy.cpp"]a given buggy calculator[/URL] and correct the errors. Once that's done, the assignment is to add the sqrt() and pow() functions to said calculator. This is from Stroustrup's Programming, Principles and Practices using C++. I've been working on the …

Software Development c++
Member Avatar for Zekorov
0
2K
Member Avatar for 918_Nix

I wrote a bit of code at school using a copy of Net Beans that they have installed on the computers in the lab at my school. I saved my file to my thumb drive as Lab2.Java. When I got home I opened my copy of Net Beans 7.0.1 and …

Software Development java java-swing
Member Avatar for 918_Nix
0
274
Member Avatar for sifuhall

I have not done development work for many years now but I decided to download the new (and free!) Visual Studio 2010 Express C#. I'm enjoying this, but for the life of me I cannot figure out how to data bind controls. Here is my setup: I have a SQL …

Software Development c c# c++ gui visual-studio
Member Avatar for sifuhall
0
111
Member Avatar for gowans07

I currently user logon information stored in one file, i wish to be able to delete users from this file currently i am selecting the users from a lstbox which retrieves all the user names from the txtfile. [CODE]Public Sub CmdRetrieveUsers_Click() LstUsr.Clear CmdEditUsr.Enabled = True Open App.Path & "\Logon.Password Info.txt" …

Software Development file-system visual-basic
Member Avatar for gowans07
0
117
Member Avatar for ericko10kip

Please assist in Formatting the input text to upper and lower cases e.g Start with a capital. Thanks.

Software Development vb.net
Member Avatar for ericko10kip
0
126
Member Avatar for FinaL111

I'm having trouble wrapping my brain around this concept. I have taken two java classes before so this is my first C class. My question is about a portion of my assignment. Basically the assignment is it reads in data about a word search in the format like so: [url]http://pastie.org/2582599[/url] …

Software Development c puzzle
Member Avatar for FinaL111
0
280
Member Avatar for darelet

Hi all, I need a setup involving a client or front-end program that sends some tasks to a back-end process for processing and collects results for output. I know this involves socket programming, but one issue here is that the front-end is a windows program and the back-end is a …

Member Avatar for darelet
0
205
Member Avatar for minimi

My program compiles and runs, but does not print any output. It is supposed to read the text file and output lines that contain the pattern (which this in case is Bob - so it should print Bobby, Bobbie, etc if those names are in the text file).. This is …

Software Development c
Member Avatar for minimi
0
247
Member Avatar for aadi_capri

Public Class Form1 Inherits System.Windows.Forms.Form Dim con As New OleDb.OleDbConnection Dim dbprovider As String Dim dbsource As String Dim ds As New DataSet Dim da As OleDb.OleDbDataAdapter Dim run = New OleDb.OleDbCommand Dim sql As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load dbprovider = …

Software Development microsoft microsoft-access vb.net
Member Avatar for aadi_capri
0
194
Member Avatar for Epicurus

I'm trying to create my own linked list for handling bullets in my game. When the bullet has gone too far I want it to be removed but as soon as this is happening (when the bullet has travelled 11 steps) the game crashes. These are the functions used when …

Software Development c++ linked-list
Member Avatar for Epicurus
0
491
Member Avatar for javaNooblet

Hi all, I am having trouble with class communication to reset some textfields through event handling. Any help would be appreciated. Here is a portion of my code. [B]The class that contains the textfields that I wish to use a reset button for:[/B] [CODE]import java.awt.*; import javax.swing.*; import javax.swing.border.*; public …

Software Development gui java oop
Member Avatar for mKorbel
0
216

The End.