43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for k2k

it is strange that my code was working before I modified some variable name/ type. i didn't make any major changes except for changing from double to int, and from double to String. the change was involved a bit sql code change as well though. i got (does anyone have …

Software Development java java-swing sql
Member Avatar for k2k
0
153
Member Avatar for fillit

program p; var a,b:integer; c:real; forward p2; {for procedure p1 to call procedure p2} procedure p1 (x:integer; var y:integer); var c:integer; pt:^integer; {pointer declaration} begin { (1) } writeln(a,b,x,y); new (pt); if (x<2) and (y<2) then if x>y then begin y:=x; writeln(a,b,x,y); p2(x,b) end; dispose(pt); end; procedure p2 (x:integer; var …

Software Development pascal
Member Avatar for fillit
0
242
Member Avatar for chetanbasuray

My problem is related to printing.I have a database table named billing from which I need to print the bill for a particular client. Now each client has a fixed auto generated client id but a multiple number of entries are present for each client. I am using crystal reporting …

Software Development
Member Avatar for chetanbasuray
0
92
Member Avatar for akaban

hello i am trying to make a program for prime numbers but facing some problem can any one can help me in making this program

Software Development visual-basic
Member Avatar for akaban
0
247
Member Avatar for stricklypni

fatal error C1075: end of file found before the left brace '{' ANY IDEA WHAT MAY BE MY PROBLEM??

Software Development c c# c++
Member Avatar for stricklypni
0
108
Member Avatar for ubi_ct83

Hi all, i want to ask u guys what else i need to do to run this code? i have JDK. i have these file in my c:/program files/java/jdk1.6.0_16 c:/program files/java/jdk1.6.0_18 c:/program files/java/jre6. if i want to run this code,what do i need to do? [CODE] import java.awt.graphics; class HelloWorldApplet …

Software Development java
Member Avatar for jwenting
0
96
Member Avatar for Nerathas

Hello, In the following code below i have 1 method that fills a array with 11 random value's.(wich works as intended). My question is how do i take each generated random value created in the array, and perform a calculation with each of those values? (preffered in a new method). …

Software Development c c# c++
Member Avatar for ddanbe
0
182
Member Avatar for Ap0ca1ypse

Hello, Firstly, i am not at my computer atm so i will not be able to show you my code (i will post it later). I am creating a program for my dad which is sort of like a stock control program. I have a form with two comboboxes and …

Software Development listview
Member Avatar for Ap0ca1ypse
0
9K
Member Avatar for dirnthelord

I'm trying to display a report in my src/iReport/report1.jasper directory. but every time i try to display it i get java.lang.NullPointerException. I can't find where the problem is. Please someone just take a look and help me. I have imported all necessary libraries. im using Netbeans. [CODE] package Windows; import …

Software Development file-stream java java-netbeans java-swing
Member Avatar for dirnthelord
0
678
Member Avatar for johnnyd1986

I absolutely can't figure this problem out, can anyone please help? Write a program that asks for a phrase and then calculates and displays the number of vowels in the phrase, twice. The first time, your program should calculate the number of vowels in the phrase using a for loop. …

Software Development python
Member Avatar for Mouche
0
149
Member Avatar for sid78669

I am writing a utility in which time is being displayed. The problem is, the time being displayed is for the timezone +1. I want to add functinallity so that the user can not only display this time, but also choose which timezone they would like it to be displayed …

Software Development
Member Avatar for tristian2
0
115
Member Avatar for zimmy130

Hey there guys, First time poster here, so I apologize for being a rookie. This is my first VB class and im having a hard time with For-Next loops. The question assigned is as follows: Request and odd number, and display a triangle similar to this: [code] ***** **** *** …

Software Development vb.net
Member Avatar for zimmy130
0
303
Member Avatar for jeffery12109

please help... here's the code [CODE]import java.awt.FlowLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import javax.swing.JPasswordField; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JOptionPane; import javax.swing.JButton; import javax.swing.Icon; import javax.swing.ImageIcon; public class Button extends JFrame{ private JButton reg; private JButton custom; public Button(){ super("BUTTON"); setLayout(new FlowLayout()); reg = new JButton("reg BUTTON"); add(reg); Icon …

Software Development java java-swing
Member Avatar for jeffery12109
0
305
Member Avatar for 9w43

I have 2 classes inside bluej, member class and trip class so when I make a member object with student ID, name and course, how can I make an ArrayList or HashSet on trip class which needs to store those students. If you have used bluej you know what I …

Software Development java
Member Avatar for 9w43
0
482
Member Avatar for Fenlevi

Hi people,in the assignment I was give the main function and was told to write a class, and the output is supposed to be like this: BLANK(0,0) Destination (6.2,16,7) BLANK (45,0) Destination (6.2,33.4) The x coordinate of source is:45 The y coordinate of source is :33.4 The label of point …

Software Development c++
Member Avatar for jonsca
0
137
Member Avatar for bornwith

I am trying to teach myself C#. I spent about ten hours trying to find a solution and could not come up with a working one. So I am trying this from a different approach. I got the answer and I am going to work my way back to the …

Software Development
Member Avatar for bornwith
0
91
Member Avatar for aot

I've realized that it would be very helpful to me to SET the mouse cursor to a particular location. Having done the usual internet searches, I can't seem to find anything on how to do it. Any ideas? (So I'm still set on converting to wx, but the project I've …

Software Development python tkinter
Member Avatar for Gribouillis
0
4K
Member Avatar for rtllz

Im using xcode to write my program. Every time I build and run the program it will do everything fine, until the end. It keeps giving me an answer of 0 no matter what i put. Need help to figure out what im doing wrong thanks in advance. [CODE]//price_converter #include …

Software Development c++
Member Avatar for rtllz
0
147
Member Avatar for pinsickle

Which would be considering a better coding style, this is for a merge sort in case you are wondering what I am doing with this line of code [CODE] int j = 0; // used to track for the temp array earlier in my code // reset it to be …

Software Development c++
Member Avatar for Ancient Dragon
0
103
Member Avatar for YeMiller

Hi, I've had a quick look through this forum and can't really see anything to help. I've got a basic but fair knowldge of C++ but I'm unfortunately not very good at putting my knowledge into raw code :D. I'm currently doing an assignment to read data from one of …

Software Development c++ file-system
Member Avatar for WaltP
0
145
Member Avatar for NitaB

Hey guys! I must have some sort of logic problem that I'm just not seeing. I just want to read a file into a 2D array. The dimensions of the array are given by the very first line of the input file. Everything works hunky dorey except that when I …

Software Development c++
Member Avatar for NitaB
0
111
Member Avatar for Miss Confused

Hi Can anyone have a look at my code and tell me where im going wrong??? What im trying to do is display my details in a listbox then the one that is selected frm the listbox is displayed in the textboxes and when delete button is clicked it is …

Software Development microsoft-access open-source vb.net
Member Avatar for Oxiegen
0
151
Member Avatar for ajsavoca

The assignment was to write a program that generated a random sequence of six non-repeating numbers between 1 and 53 until it matched a user inputted sequence (lotto). Here is the entire program. [CODE=c] #include <stdio.h> #include <stdlib.h> #include <math.h> #include <cctype> #include <iostream> #include <windows.h> #include <time.h> using namespace …

Software Development c++
Member Avatar for ajsavoca
0
125
Member Avatar for stryker4526

Okay, so I have a main form which has a button for the user to add a new record. I have everything working except making sure the user enters appropriate values. I have it so a message box pops up the value is not valid, but it goes into an …

Software Development
Member Avatar for stryker4526
0
100
Member Avatar for mitch9654

I read somewhere else and found some code that had something like this in it: [CODE]char buf[] = {0};[/CODE] what does this do? thanks mitch9654

Software Development c++
Member Avatar for mitch9654
0
64
Member Avatar for pinsickle

Hello, I am working on a merge sort but I keep getting the following error : ds07(6443) malloc: *** error for object 0x100100098: incorrect checksum for freed object - object was probably modified after being freed. I don't see what my error is with the creation and deletion of my …

Software Development c++
Member Avatar for mitrmkar
0
83
Member Avatar for SgtMe

Hi again. I want to have a file for one of my python programs, that looks something like this: [CODE]<WINDOW> #Window size 640 480 <WINDOW TITLE> App Platform Test <ICON> icon.png[/CODE] I have a function that reads each line of, and uses the data to make a window. What happens …

Software Development python
Member Avatar for snippsat
0
16K
Member Avatar for jozz3

I have created a number guessing game that writes and reads scores from a text file. When a section of code was added to sort and right-align the scores from lowest to highest, a problem was encountered. This is my code: [CODE] import random print "Welcome to the Great CP1200 …

Software Development python
Member Avatar for jozz3
0
113
Member Avatar for pinknblu

It provides the average grade of an student. Assignment: How many students are in the class ? 3 Enter five test scores for student number 1 80 90 70 90 80 The average for student number 1 is 85 Enter five test scores for student number 2 100 60 60 …

Software Development c++
Member Avatar for pinknblu
0
186
Member Avatar for ndz-niels

hey all, im a dutch student and for a project I am responsible for the pc application. we are making a paint application, the picture that are drawed are saved in a bitmap so I can use the getpixel() function to get the collors form the image. the size of …

Software Development
Member Avatar for chetanbasuray
0
141
Member Avatar for pyprog

[CODE]list1 = [[],[],[]] list2 = [[1,2,3],[4,5,6],[7,8,9]] i = 0 j = 0 k = 0 while i < len(list1): list1[i].append(list2[j][k]) i += 1 k += 1[/CODE] I want my output for list1 to be [[1,4,7],[2,5,8],[3,6,9]]. The problem is I don't know how to advance through the lists in list2. Can …

Software Development python
Member Avatar for arunbg
0
163
Member Avatar for toastghost

Hi. I'm fairly new to VB. I've made a handful of small programs and followed a few tutorials, but this is really the most complex program I've made so far. (Just a heads up that I may be missing something fairly obvious :$) I'm working on a VB program which …

Software Development vb.net
Member Avatar for toastghost
0
130
Member Avatar for greedydeepak
0
37
Member Avatar for Rohith Reddy

Hi, I have a problem regarding displaying the files. Actually, my code displays both pdf's and images. I am thinking to have a script to check whether the file is image or pdf before it gets displayed. Can anyone help in this regard. Thanks, Rohith

Software Development pdf
Member Avatar for Geekitygeek
0
101
Member Avatar for Dimansu

Hi, I have a textbox named fullnameTextbox. I want the user to only type letters in that textbox.I have a code for it but when there is a spacebar between 2 correctly typed words my error message pops up.How can i fix this? [CODE] Match matchMyRegex = Regex.Match(fullNameTextBox.Text, "^[a-zA-z]*$"); if …

Software Development regex
Member Avatar for Geekitygeek
0
109
Member Avatar for jozz3

Hello In my program I have a text file that I read from and write to. However, I would like to display the contents of the text file in an alligned and sorted manner. The contents currently read- name, score name, score Would I have to convert this information into …

Software Development python
Member Avatar for jozz3
0
2K
Member Avatar for saulocpp

Hi all. First post on the forum. I'm writing a generic funtion to open files along my program, but am worried if the pointers are being closed correctly. The function definition: [code=c] FILE* openfile(char *FileName, char *Mode) { FILE *TempFile; if((TempFile = fopen(FileName, Modo)) == NULL) { fprintf(stderr, "Couldn't open …

Software Development c file-system
Member Avatar for jephthah
0
192
Member Avatar for LevyDee

So I finally decided to take on some Windows Programming, and everything is going fine, except this: Edit: using this tutorial [url]http://bobobobo.wordpress.com/2008/01/31/how-to-create-a-basic-window-in-c/[/url] [code] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASS myWindow; myWindow.cbClsExtra = 0; myWindow.cbWndExtra = 0; myWindow.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); myWindow.hCursor = LoadCursor(NULL, …

Software Development api c++ wordpress
Member Avatar for nithy.sweety
0
521
Member Avatar for prasadk14

Hi, I'm trying to receive broadcast messages using C# code in an ISDN network with BRI interface at my end. I see the packets sent to the broadcast ip address (239.255.255.255) on some ports using Comm View tool. But when I try to listen to this IP address, it says …

Software Development
Member Avatar for prasadk14
0
2K
Member Avatar for fyp

so far I could manage to create OpenFileDialog and select the txt file. after that ,How could I display the contect of selected txt file into TextBox? [CODE] ************************************************************* private: virtual System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { System::Windows::Forms::DialogResult OK = openFileDialog1->ShowDialog(); } private: System::Void openFileDialog1_FileOk(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) { ???????????????????????????????? …

Software Development c++ display
Member Avatar for fyp
0
653
Member Avatar for tinkeydo

The following is an excerpt from a complete program that runs without any errors. It has 2 file dependencies which it uses to access and store information. The program, in its entirety, displays a menu with 4 options the user can choose from. [LIST=1] [*]View Characters [*]View Items [*]Add Character …

Software Development app-store c++ ios
Member Avatar for tinkeydo
0
183
Member Avatar for PRINCE01

I need instance method(s) within the class am writing that convert from any base to base 10 & vice versa WIThOUT USING ANY LIBRARY ROUTINE. //this is what i have so far private int DecimalToBinary(int Decimal, int BaseNumber) { int Reminder; do { Reminder = Decimal % BaseNumber; } while …

Software Development mathematics
Member Avatar for PRINCE01
0
318
Member Avatar for Bobon

Hey guys, my second java problem in 24 hours :) I'm trying to call a method from another class. So basically what i'm trying to do is put the date from the main class through the method "tomorrow" so it adds 1 to the int day and returns the date …

Software Development java
Member Avatar for Bobon
0
110
Member Avatar for johmolan

I have a Form1 with a method called OrdreUpdate2 I try to run thad method from another form by using the command Form1.Ordreupdate2 in a buttonclick. But nothing happens..What am I missing here?

Software Development vb.net
Member Avatar for johmolan
0
98
Member Avatar for yapkm01

I know that this book is for C++ Primer 3rd Edition (Stanley Lippmann) but can this be used for C++ Primer 4th Edition. There is no C++ Primer answer book for the 4th Edition. Still comtemplating if i should get it. :?:

Software Development c c# c++
Member Avatar for Spartan-S63
0
146
Member Avatar for dondajr

Well, here i am one more time. In previos post I asked here about read files. All of those problem were fixed, but now, i really have a problem that I don't know why is happing. In the first , i need to explain what my system will do: My …

Software Development c client-server file-stream
Member Avatar for dondajr
0
90
Member Avatar for Simes

[CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random def isint(x): try: int(x) return True except: return False print "Invalid guess. " def getGuessValidator(): while …

Software Development file-system python
Member Avatar for Simes
0
410
Member Avatar for Colin Mac

I have this C program with multiple files and I want to introduce a new file called enemy.c. and I'm wondering if I'm going about this right. game.h [code] #ifndef GAME_ #define GAME_ extern void game (void); extern void enemyFunc (void); extern int enemyPosX; #endif [/code] main.c [code]int main (void) …

Software Development c
Member Avatar for virgoptrex
0
184
Member Avatar for kayba

[code]import java.util.Calendar; import java.util.Scanner; public class Main { public static void main(String[] args) { int userBirthDay = 0; int userBirthMonth =0; int userBirthYear=0; Scanner input = new Scanner(System.in); System.out.println("Enter The day of your birth"); userBirthDay = input.nextInt(); System.out.println("Enter The month of your birth"); userBirthMonth = input.nextInt(); System.out.println("Enter The year of …

Software Development java
Member Avatar for kayba
0
125
Member Avatar for valter

Hi, This has been driving me crazy so I hope someone can assist. I have a project with several custom dlls being referenced. I have found that although I add changes to my dll and rebuild etc, the program uses the old version. When I look at add reference there …

Software Development
Member Avatar for jcao219
0
96

The End.