43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Mirfath

hi! i have a form to enter data i want to put validations in the text boxes and prompt the user if he/she enters the wrong data i want to put validations for phone number Date of birth email i tried using regex but it says that i am missing …

Software Development regex
Member Avatar for Mirfath
0
138
Member Avatar for libathos

Is there a way i can modify the Bresenham circle algorythm in a way so that it actually draws arcs with specified start and end angle instead of complete circles? the algorythm in c is like this [CODE]void DrawCircle(int xM,int yM,int radius) { int f = 1 - radius; int …

Software Development algorithm c
Member Avatar for Adak
0
194
Member Avatar for lxXTaCoXxl

I've noticed that while programming sometimes a tool tip window pops up beside the selected class in the drop down window while typing. This tool tip often contains a description of the class or variable that is highlighted or selected. I was wondering how to do this for my own …

Software Development
Member Avatar for lxXTaCoXxl
0
94
Member Avatar for alarifth

Hi everyone! When i compile my small piece of code it gives me the error [COLOR="Red"]C2512 : No appropriate default constructor available[/COLOR] this is my definition of class person: [CODE] // Person.h // A class defining a person #pragma once #include <iostream> #include <string> #include <functional> using std::cout; using std::endl; …

Software Development c++ oop
Member Avatar for mzimmers
0
10K
Member Avatar for Tortura

Hey guys, I created a main GUI for a measurement program. Beside all existing controls, there are two important buttons. START and ABORT. By pressing the START button, a method for measuring is run. Now I can not press any control on the form. That's okay, but I need the …

Software Development gui
Member Avatar for Tortura
0
223
Member Avatar for a.oprea

Hello. I want to ask you all how to remove an element from an arraylist? Let's say the arraylist is made of the Integer elements: 23, 43, 40, 10; I want to remove the number 43. How do I do that? And don't tell me arraylist.remove(1); because this removes the …

Software Development java
Member Avatar for JamesCherrill
0
214
Member Avatar for nsyncpilu

Hy , Is there any way to remove the windows borders (the upper with the name and (space) close , minimize , maximize ,the right one , left , down) from an java app? I develop the app in NetBeans , so here is my code for opening the "main" …

Software Development java java-netbeans java-swing
Member Avatar for nsyncpilu
0
906
Member Avatar for Dakot

hello , i made a election program , here it is [CODE]#include <iostream> #include <cstdlib> #include <string> #include <conio.h> #include <iomanip> #include <fstream> using std::ofstream; using namespace std; string users[4]; char choice2; int votes[100] = {0}; int choice; int totalVotes=0; void votes1() { cout<<"Voting! : "<<endl; cout<<setw(21)<<left<<"(1) To vote " …

Software Development c c# c++
Member Avatar for StuXYZ
0
183
Member Avatar for javaAddict

This is not much of a question, but a discussion and searching for opinions. I have seen that many use the Scanner class for getting input from the keyboard. Some, like myself, use the BufferedReader. Why will someone use one over the other? Or they both do the same thing …

Software Development java
Member Avatar for StephNicolaou
0
553
Member Avatar for Shodow

help me update my database.. when i click edit it will add a new record.. i want to update a record.. to edit a new record it will be base on the cutsomer's nameu [CODE]Dim conn As ADODB.Connection Dim RS As New ADODB.Recordset Set conn = New ADODB.Connection conn.ConnectionString = …

Software Development mysql sql visual-basic
Member Avatar for Shodow
0
2K
Member Avatar for Basteon

So, I need to make a program that draws a [URL="http://en.wikipedia.org/wiki/Automata_theory"]finite automata[/URL] from the input data. I had some experience with the [I]graphics.h[/I] header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw …

Software Development c++ image opengl
Member Avatar for sathishraji
0
1K
Member Avatar for ChaseRLewis

The below code gives an output of: [CODE] Allocated! Allocated! Deleted! Allocated! Allocated! Deleted! Size: 3 Capacity: 4 vector[0]: isAligned! 20 30 40 Deleted! Deleted! [/CODE] Can someone explain the first allocation and why there are 4 allocations instead of 2 (one for each reserve?). I figure the first is …

Software Development c++
Member Avatar for vijayan121
0
151
Member Avatar for collinskawere

how can i create something of this sort: * *** ***** ******* ********* ******* ***** *** * this is my source code: #include <stdio.h> int main() { int i; i = 1; while(i <= 5) { printf("*\n"); i++; } getchar(); }

Software Development c
Member Avatar for collinskawere
0
171
Member Avatar for ariffin246

Hi Everyone. I am totally new here and this is my first post.. I have tried many place, since i could get any solution. I have no choice then posting here. basically, i have one delete form, where i will load the firstname from a table in access(hardcode) to listbox. …

Member Avatar for jhade
2
124
Member Avatar for avgvstvs

[CODE] cout<<"\n\n Please Input The Drive Letter Of Your Input Device \n"; cin>>DRL; string str(DRL); string str2(":"); string src; string hi; src=str.find_last_of(DRL); cout<<src; if(src!=str2) { hi=string(DRL)+string(str2); cout<<hi; } else*/ cout<<hi; [/CODE] [What am i dong wrong.i am trying to enure a colon input in the drive letter regardless of user …

Software Development c++
Member Avatar for avgvstvs
0
1K
Member Avatar for zachattack05

Does anyone have a link to a good article or guide on creating help files that work with Windows XP, Vista and 7? I've used a program in the past to create help files, but it was a demo product and quite costly (and if I recall poorly supported). I …

Software Development windows-vista
Member Avatar for Mirfath
0
126
Member Avatar for reemhatim

I'm writing a program as a beginner in assembly my program is about summing up all integers in array and then getting their average . I'm stuck with the average is that i need to divide the sum of numbers by my array size and i don't know according to …

Software Development assembly
Member Avatar for reemhatim
0
141
Member Avatar for triumphost

Hi guys. I have a php script that reads some values off a website and prints to a file every second.. The thing is, the script is always ran in my browser and I don't like that. I want to write a c++ program that can run that script within …

Software Development c c# c++ php
Member Avatar for thines01
0
361
Member Avatar for noobprogrammerr

public List<EventEntity> GetCurrentUpComingEventsByEstate(string EstName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.eventDate >= DateTime.Now _estatename(?) select e; return res.ToList(); } Hi experts, How do i declare the estatename part so that when i test the program in web browser, i will only get …

Software Development web-browser
Member Avatar for thines01
0
96
Member Avatar for DK58

Ok so i am writing a program to determine a users hat,jacket, and waist size. I have most of it done but i am still getting an error. Any help would be appreciated! [CODE]import java.util.*; public class Sizes1 { public static void main(String[] args) { int answer = 0; int …

Software Development java
Member Avatar for hfx642
0
158
Member Avatar for v_janssens

I am using _getcwd() to get the full path of the current working directory but I am having a strange problem with this: When I run the program from within Visual Studio _getcwd returns "F:\...\ProgramName\bin" to which I append "\Debug\config.txt" to give the path of a text file. However, when …

Software Development c++ file-system visual-studio
Member Avatar for Tumlee
0
409
Member Avatar for sofia85

Hi, I want to create a matrix containing 20 rows and 2 cols. I know how to do this, but I have these two files; number and amount (each file contains 1 col and 20 rows) and I don't know how to add these files into this matrix that I'm …

Software Development python
Member Avatar for Gribouillis
0
156
Member Avatar for Estella

Hi Masters... I want to hide folder or drive with vb6, but i don't have idea how to do this. any one know how to solved this? Please Help. Any suggestion will appreciated much.

Software Development visual-basic
Member Avatar for Lesbassnett
1
945
Member Avatar for SamarthWiz

hi i'm having some trouble with web2py models: [CODE]# -*- coding: utf-8 -*- db = DAL("sqlite://storage.sqlite") from gluon.tools import Crud crud = Crud(db) db.define_table("shout", Field("author", "string"), Field("shout","text")) db.shout.shout.requires = IS_NOT_EMPTY [/CODE] (there is more but it is for the admin interface) It is all correct but I get this error: …

Member Avatar for SamarthWiz
0
248
Member Avatar for ram619

This is a piece of code from some book. According to book, this code must not have worked and should have given a error message saying "cannot convert parameter 1 from 'const char[15]' to 'char*'" but this code is running on turbo C giving just a error message of const …

Software Development c
Member Avatar for ram619
0
197
Member Avatar for v_janssens

I am trying to call a C++ program for a Windows Forms App and to subsequently wait until the exe finishes. So far here is what I have: [CODE] Dim ProcessID As Integer Dim ProcessHandle As Integer ProcessID = Shell(filepath_exe, AppWinStyle.NormalFocus) ' Check the Shell command worked If ProcessID <> …

Software Development c++ gui visual-basic visual-studio
Member Avatar for BitBlt
0
291
Member Avatar for daneaum

[B]I have created a static Main class called ProductButtonTestDriver, that will run my class ProductButton.java- the prof wants a picture of each coffee shop item, with the name and price to appear in a button, then a check box if the customer selects that item- I am only on the …

Software Development java java-swing
Member Avatar for daneaum
0
1K
Member Avatar for kanyonb38

I am making a invoice program and I tried multiplying the number of times clicked which is in a text box and the price of the item which is is my resources. I already have the code to count how many times the button is clicked. Please Help!! Thank you …

Software Development visual-basic
Member Avatar for BitBlt
0
100
Member Avatar for caribedude

Hi, I'm very new to Python and programing in general and wanted to learn how to use the py2exe module. I think I've done the setup alright but I get an error message. Everything runs along smoothly until it start to make the dist folder. When it begins to make …

Software Development python
Member Avatar for patratacus
0
2K
Member Avatar for lele07060

Can someone tell me how to fix this please? [CODE]public class NestedNumber { public static void main(String[] args) { for (int i=1; i<=5; i++) { System.out.println(); for (int j=1; j<=i; j++) { System.out.print(j); } } System.out.println(); } } [/CODE]

Software Development java
Member Avatar for Ezzaral
0
188
Member Avatar for megatron21

I am having hard time understanding what the problem is with my code here. Basically I have a map that contains Key objects as the key, and Block* as the value. The point of this for loop is to print out the values that the key contains on to the …

Software Development c++ programming-construct
Member Avatar for megatron21
0
256
Member Avatar for Pravinrasal

[B]can anyone help me to draw clock cycle in java using swing when i give 5 clock then it will show me 5 clock cycles[/B]

Software Development java java-swing
Member Avatar for JamesCherrill
0
217
Member Avatar for vinod_javas

Hi guys... Is it possible to stop opening multiple instance of a jar file... I just want to open my application only one (only one instance) at a time.

Software Development java
Member Avatar for peter_budo
0
6K
Member Avatar for ntrncx

i try to understand how it works. its supposed to work but isnt. the following code shouldnt be working?what i do wrong? i receive the constructor values. [CODE]#include "Person.h" #include <iostream> #include "fstream" #include "cstdlib" using namespace std; int main() { fstream file("malakia.dat", ios::out | ios::in | ios::binary); Person data; …

Software Development c++ ios
0
114
Member Avatar for bhagawatshinde

Hi Guys, I am developing an windows application in that contain the crystal report which displays the name of the candidate but i have two fields like lastname and firstname i want to concate these fields with space in between is their is any property or method. e.g currently my …

Software Development
Member Avatar for bhagawatshinde
0
118
Member Avatar for wcroome

Hi, I hope you can help. I'm creating a simple C# (VS2010) form which starts with one list box lBModel and upon selection dynamically creates another lBFirmware which is populated with items and then added to a panel. When this is selected I need to use the SelectedItem value to …

Software Development
Member Avatar for wcroome
0
673
Member Avatar for iamcreasy

What does the $ means, EventQueue$1.class(Red marked) Attached picture [URL="http://i39.photobucket.com/albums/e179/iamcreasy/Untitled-6.jpg"]http://i39.photobucket.com/albums/e179/iamcreasy/Untitled-6.jpg[/URL] I am using NetBeans.

Software Development java
Member Avatar for iamcreasy
0
204
Member Avatar for adarshcu

Hi All, I need to have a Regex that will not allow just spaces, but it can allow sentences with spaces. It should allow any special characters that occur as well. Actually, it is for a text area of comments. So i want to restrict him from entering just spaces. …

Software Development java regex
Member Avatar for adarshcu
0
112
Member Avatar for hemant_rajput

Hi, i've both pyhon 2.7 and python 3.2 installed on my windows PC. I downloaded and installed the module BeautifulSoup but it got installed only in python 2.7 how can i installed this also in python 3.2.

Software Development python
Member Avatar for Gribouillis
0
249
Member Avatar for Quick2010

Hello, I'm a bit stuck here... Background: a program that (eventually) will save data synchronised from a MTC. (ive worked out all the mtc stuff) The code I am using uses winmm.dll to receive midi messages. This works fine, I can process incoming packets etc. using vb2010 What I'm stuck …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
829
Member Avatar for Nandomo

I am making a Gui for an inventory. And I want for each time a person presses my next button, the jLabels to display the next item in the arrayList. Right now I'm stuck as it only displays the last element, Any help please? [CODE] // action on the button …

Software Development gui java
Member Avatar for Nandomo
0
150
Member Avatar for tyricec

I'm trying to make it where I can draw an square with the values in the global array. I made it work without vertex array before but now I need to save it in array so I can possibly delete a square with just a mouse click. However I can't …

Software Development c++ display opengl
Member Avatar for tyricec
0
128
Member Avatar for Ruben1123

[CODE]public class Order { private int widgets; private double price; public Order(double undiscountedUnitPrice) { price = undiscountedUnitPrice; widgets = 0; } public void addWidgets(int quantity) { widgets = widgets+quantity; } public double getTotalPrice() { return price*widgets; } public double getUnitDiscount() { if(widgets>10000) { if((widgets-10000)/1000>47.5) double toTakeOff = (((widgets-10000)/1000)*.10); price = …

Software Development java
Member Avatar for Aviras
0
165
Member Avatar for dennysimon

hello all I have one textField and one textArea. How to move the cursor to the end of Text of TextArea when -cursor is in textField,and keyboard [Enter] pressed thank you denny

Software Development java
Member Avatar for dennysimon
0
189
Member Avatar for vegaseat

I am still trying to take a look at the gtk GUI package and reinstalled the following: gtk-win32-devel-2.8.6-rc3.exe and pygtk-2.8.2-1.win32-py2.4.exe (updated version) I have it down to a simpler error message now. Here are my warnings and errors with the sample file base.py [code]Traceback (most recent call last): File "D:/Python24/Atest/Demo/pyGTK/base.py", …

Software Development gui python
Member Avatar for vegaseat
0
300
Member Avatar for Tomie

I started taking a "introduction to programming" class a month ago, and the introductory language we are using is Python. Because I have never programmed before and only have a month's worth of experience with Python, please forgive my mistakes. So basically, here's the prerequisites to the "Piglatin Translator" assignment …

Software Development python
Member Avatar for woooee
0
860
Member Avatar for kurohige

[CODE]If minutes > 1 Then ProcessTerminate (FindWindow(vbNullString, "King Kong V-1.4")) Shell "I:\DISTRIBU\Quality\RIMData\Monkey\KingKong.mdb" End If[/CODE] this will restart the application.. i'm terminating the app but i can't get it to start again.. any suggestions? thanks

Software Development vb.net
0
65
Member Avatar for ram619

Can you please tell me how is the processing of this code taking place. Because its giving a fixed address same as mentioned in the book. The Answer to this question is Address of i=FFE4 value at ptr =10 Address of j=FFE2 value at prt=20 how come addresses are these, …

Software Development c c# c++
Member Avatar for ram619
0
152
Member Avatar for iGuardian

This is the question: Define a function that takse a partially filled array of numbers as its arguments and returns the standard deviation of the numbers in the partially fille array. Since a partially filled array requires two arguments, the function will automatically have two formal parameters: An array parameter …

Software Development c++
Member Avatar for iGuardian
0
368
Member Avatar for wnr78ta

I have a simple doubly linked list for a class I am in and I keep getting a seg fault on my last line of code, no matter what i make it. I can put a bunch of random couts and it will print them all then on the last …

Software Development c++ linked-list
Member Avatar for wnr78ta
0
718

The End.