132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for minimi

It compiles and run but I'm stuck on the last part - I can't figure out how to iterate through the LinkedList and delete all students whose birthYear is greater than 1995 (print only students whose birthYear is less than 1995). I have to iterate after inserting all records into …

Software Development c linked-list
Member Avatar for Narue
0
181
Member Avatar for BCBTP

I am looking for a replacement for _getch(); Yes I have seen other threads like this, but they do not really satisfy my need(And I do not want to waste my time trying to write one in Assembler, as it isn't my strongpoint). I need something that is exactly like …

Software Development c++
Member Avatar for BCBTP
0
509
Member Avatar for Leaningnew

fscanf returns EOF in case of [U]errors[/U] or if it reaches eof. what does error mean in this context ...which type of errors are encountered???

Software Development c
Member Avatar for nezachem
0
77
Member Avatar for atramposch

I'm writing an indexOf method for a class called BasicArrayList. i have two private instance variables an Object[] called list, and an int called size. [CODE]public int indexOf(Object element) 67 { 68 for(int i = 0; i < size; i++) 69 { 70 if(list[i].equals(element)) 71 { 72 return i; 73 …

Software Development java
Member Avatar for atramposch
0
138
Member Avatar for darkelflemurian

Hello everyone I have the following issue and i tried google but no success. I'm tired of this silverlight thing but i have no choice. here is the problem: I have a datagrid which populates itself from a database doing this [CODE] void svr1_getInformationCompleted(object sender, getInformationCompletedEventArgs e) { dgv.ItemsSource = …

Software Development
Member Avatar for darkelflemurian
0
167
Member Avatar for kylelendo

Hello everyone I am making a simple registration page and i want to store values in database here is my code [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Configuration; namespace PatientSystem { public partial class Registration : System.Web.UI.Page { protected void …

Software Development
Member Avatar for kylelendo
0
290
Member Avatar for niamul

I am a new programmer in Java and while programming I faced the following problem. I am trying to use switch statement on String but it gives compilation error. If any one suggest me how to use String in switch-case statement , it will be helpful to me.

Software Development java
Member Avatar for jon.kiparsky
0
2K
Member Avatar for thetraeller94

I don't know how to run my application with system level privilleges, so that it does not encounter any [B]UNAUTHORISED ACCESS[/B] in any case and when in seen in TASK MANAGER the user shown will be SYSTEM. I've no idea how to do it,PLZZZZZ HELP

Software Development vb.net visual-basic
Member Avatar for NetJunkie
0
2K
Member Avatar for MattD00

I have set-up a tab control and have buttons set up to add and remove the tabs. I want to place a text box into all the tabs, so when a new tab is added a text box is already placed inside the tab. I am not sure on how …

Software Development vb.net
Member Avatar for NetJunkie
0
417
Member Avatar for Pavan Upadhyay

Hi..! In My application I need to retrieve/Read data from USB port. Is it possible to Read data from USB cable? or is it possible with COM port? Please Help me if any one of you have knowledge about this. Waiting...........your replies....

Software Development vb.net
Member Avatar for NetJunkie
0
877
Member Avatar for zifina

how to search if a file is present in the computer in c sharp?i need to find out if pdf reader is installed or not in a pc...please help..thank you

Software Development adobe pdf
Member Avatar for zifina
0
1K
Member Avatar for zachattack05

How do you personally organize your methods, event handlers (kinda the same), properties etc... in your classes? I've been grouping things by type using regions and then alphabetizing them within the regions, but I was just wondering what other people do if there is a standard?

Software Development
Member Avatar for zachattack05
0
138
Member Avatar for RenanLazarotto

Hello guys! I've followed this: [url]http://www.codeproject.com/KB/miscctrl/cutebutton.aspx#[/url] for creating my first custom control. But, I want something more visual. I want to use images as my button, with normal, hover and clicked states. But I don't know how to do it. can someone help me? Also I want to do it …

Software Development
Member Avatar for RenanLazarotto
0
120
Member Avatar for sunn shine

iv taken a list of bakery items from user in doubly linked list.. but remove func isnt working................ :(

Software Development c++ linked-list
Member Avatar for Taywin
0
297
Member Avatar for ayeshashahid

[CODE]//SOME BODY PLEASE WRITE THIS IN C++ LANGUAGE// //THANK YOU// # include<stdio.h> # include<conio.h> /*program to evaluate the given postfix expression*/ typedef struct { int a[100]; int top; } STACK; void push(STACK *s,int x) { if(s->top==99) printf("STACK OVERFLOW\n"); else s->a[++s->top]=x; } int pop(STACK *s) { int x; if(s->top<0) printf("STACK UNDERFLOW\n"); …

Software Development c c++
Member Avatar for ayeshashahid
0
196
Member Avatar for MrHG24

Hey everyone, I am having difficulty parsing digits in java. By that I mean that I am trying to make a program print out the number of bills the user recieves when he/she recieves change after there payment, (Cash register). Here is the code i've created to do this for …

Software Development java
Member Avatar for Taywin
0
210
Member Avatar for lbgladson

I have an assignment for school...Write a program CurrencyCOnverter that asks the user to enter today's price of one dollar in euro. THen the program reads U.S. dollar values and converts each to euro values. I have the following code. It works great until I start putting the loops and …

Software Development java
Member Avatar for lbgladson
0
727
Member Avatar for TheComputerGuy

I'm having issues with the abstract class idea...I've attempted to use Eclipse, but this time the IDE is just messing it up. I've got the files uploaded. They should be attempted to be compiled as this 1. Container 2. Base Container 3. Height, and color exception 4. Round and square …

Software Development ide java
Member Avatar for TheComputerGuy
0
136
Member Avatar for Simon180

like the title says how to calculate 10 days from a date with delphi, am after simple way to get 10 days trial from current date of usage can anyone help thanks :)

Software Development delphi pascal
Member Avatar for Simon180
0
147
Member Avatar for saintrenz

i made a code to program a clock but there's a problem #1, its a bit messy when i view it in command prompt, the words i typed doesn't disappear so that i view the clock neatly.. also it blinks.. #2, how can i have it on marquee up and …

Software Development assembly
Member Avatar for saintrenz
0
123
Member Avatar for irock_4you

...Hello! Can Some One Please Help Me... I need help for my programming project...really need ASAP.,.tnx.,. [B]A. Control Structures (15 pts each) 2. Create a program that accepts a whole number which will dictate the layers of your Pascal’s triangle and displays the corresponding Pascal’s triangle. For example the user …

Software Development java
Member Avatar for IceFox16
0
297
Member Avatar for tapandesai007

I want to have one windows form with one progress bar on it to appear with the progress bar getting filled upto maximum to give some visual loading application type of effect. I have written some code to do this task, and it worked fine in one of my previous …

Software Development
Member Avatar for tapandesai007
0
1K
Member Avatar for stereomatching

At first, I wrote something like this [code] template<typename T, size_t size> inline size_t const sizeof_array(T const [size]){return size;} [/code] but if failed, then I find a solution form the other place, like this. [code] template<typename T, size_t size> inline size_t const sizeof_array(T const (&)[size]){return size;} [/code] what is the …

Software Development c++
Member Avatar for vijayan121
0
182
Member Avatar for techlawsam

Getting some errors at least this time I know why..seems like I am not declaring the methods inside my classes I tried rearranging the method and then inserting all my code into a class but Im still getting all those errors in the bottom. If you guys can tell me …

Software Development oop
Member Avatar for arunkumars
0
559
Member Avatar for sathya88

how to free memory of byte array... code[CODE]for(int j=0;j<count;j++){ buffer=null; //[COLOR="Red"]free the memory by set as a null but not working????? shows array index out of bound exception for the second time[/COLOR] buffer= new byte[size]; //byte mem alloc temp2=di.read(buffer,total,size);// read buffer total=total+temp2; fo=null; ds=null; fo= new FileOutputStream(flist[j]); ds= new DataOutputStream(fo); …

Software Development java motherboards-cpu-ram
Member Avatar for masijade
0
8K
Member Avatar for inthespotlite82

Hey guys- I'm trying to create a BASH script that will connect to a remote server, via SSH that requires a password, and then search a log file for the word error, store the output in a file, and then return the file to the local machine. I would like …

Software Development shell-scripting
Member Avatar for masijade
0
756
Member Avatar for vasim jada

How to find index in vb.net when connected with ms-access2007:) Th'x in advance.

Software Development vb.net
Member Avatar for vasim jada
0
98
Member Avatar for gahhon

i just met up a problem with array. [CODE] int[] num = new int[10]; [/CODE] this is everytime we declare and intialization one, how about to declare and intializate with unkown size?

Software Development java
Member Avatar for cwarn23
0
122
Member Avatar for johnhuge

hello, i have tired to sort my link list but unfortunately i can't seem to get it working. The problem i having with the sort function is that it will sort the function when i enter a member to the list at the end except for the head. Also when …

Software Development c linked-list
Member Avatar for johnhuge
0
125
Member Avatar for Vermouth

I need to write a poker game that simulates a penalty kick in a soccer match. Three cards are drawn randomly. [CODE] void DrawCard(int& numberOne, int& numberTwo, int& numberThree) { RandNoGen(); //init random number generator numberOne = rand() % 13 + 1; //random number in [1, 13] do { numberTwo …

Software Development c++
Member Avatar for WaltP
0
394
Member Avatar for plasticfood

i'm trying to write a game that show a background and a player on screen simultaneously using 2 different classes. here are the relevant parts of the program, or at least i think [code]public WorkingTitle2(){ super("Working Title"); setSize(550,429); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); loadPictures(); loadSounds(); pp = new PaintP(); pb = new PaintB(); add(pb); …

Software Development image java
Member Avatar for plasticfood
0
144
Member Avatar for plang007

First of all, this is not schoolwork but rather me trying to read about c++ and through program examples and see if I can write my own. So help is much appreciated if you could as I am a new learner. This program that I am writing is supposed to …

Software Development c c# c++
Member Avatar for plang007
0
537
Member Avatar for vijaykvr

Hi friends i want to need load the images from the imageres.dll in windows..in vb.net 2008 please help me.. i waiting for your reply....

Software Development vb.net
Member Avatar for NetJunkie
0
71
Member Avatar for VB 2012

Hi guys sory for being ooff grade 9 was a little ruf and yet gr 10 its still the same anyway>For my question I ve got a picture box and in some size modes we all know you cant see everything so aamm then i fought about scrolling and i …

Software Development vb.net
Member Avatar for NetJunkie
0
170
Member Avatar for NICEGUY123

Okay here is my question, I have an text file file which looks like this BASKETBALL John Jacob 58% 15points FOOTBALL Jason Smith 24% 1touchdown BASKETBALL Mark Ramos 23% 25points BASEBALL Isaac David 10% 2 homeruns FOOTBALL David Sarlo 10% 0 touchdowns I am attempting to take a list like …

Software Development file-system java
Member Avatar for Taywin
0
193
Member Avatar for Ryden

Hello, I was asked to write a program that;s

Software Development java
Member Avatar for Ryden
0
96
Member Avatar for sirlink99

I have an array of cards. It looks like this [CODE] String cards[][] = {{"Spade", "Heart", "Club", "Diamond"}, {"1","2","3","4","5","6","7","8","9","10","J","Q","K"}}; [/CODE] how would I get the suit and the "rank" of the card. I have tried [CODE] System.out.println (cards[1][5] + " of " + cards [1]); [/CODE] but that gave me …

Software Development java
Member Avatar for Taywin
0
224
Member Avatar for lollqt

Im currently trying to make a deal or no deal with 26 unique amounts. Here ive added the loopings to try and make all the values unique, but when i debug the program, it seems to be stuck on the first loop but doesnt return any errors... any help please? …

Software Development vb.net
Member Avatar for Reverend Jim
0
392
Member Avatar for askylitcity

[CODE]import java.io.*; import java.net.MalformedURLException; import java.net.URL; import java.util.logging.Level; import java.util.logging.Logger; public class WebHelper { public static String getWebContents(String url) { BufferedReader br = null; String result = null; try { URL toFetch = new URL(url); br = new BufferedReader(new InputStreamReader(toFetch.openStream())); StringBuilder ret = new StringBuilder(); String line = br.readLine(); while …

Software Development java web-browser
Member Avatar for Taywin
0
146
Member Avatar for davehe

Hi, I am a beginner for Python. There is one problem I encounter with a coin flip program which there are "None" involved with the print out. Any help will be appreciated. [CODE] import random def flip(): cflip = random.randrange(2) if cflip == 0: print("Heads") else: print("Tails") def main (): …

Software Development python
Member Avatar for davehe
0
95
Member Avatar for rcmango

Hello, I've created something, its quite large, however I decided to write it without using oop, now I believe I see why I should just use oop. Okay, so the problem is with my bool values specifically: [CODE]button_pickup2 = false; button_pickup1 = true;[/CODE] For some reason when the ReflexAgent function …

Software Development c c# c++ ios oop unix
Member Avatar for gerard4143
0
318
Member Avatar for monty486

Hi there i have a txt file containing these variables anil just_go_with_it 5 betty the_dark_knight 3 anil source_code 3 carrie just_go_with_it -3 anil paranormal_activity -5 doug the_dark_knight 5 betty shawshank_redemption 5 carrie source_code 1 betty paranormal_activity 5 carrie shawshank_redemption 5 doug shawshank_redemption 3 what im trying to do is to …

Software Development c
Member Avatar for monty486
0
88
Member Avatar for trantran

[CODE] class C{ friend class F; private: fct1(){} fct2(){} fct3(){} public: fct_for_everyone(){} }; class F{ }; [/CODE] F is a friend of C, so it has access to fct1,fct2,fct3. But in real life, friendship has limits! You don't want to reveal everything! So is there a way in C++ to …

Software Development c++
Member Avatar for mike_2000_17
0
161
Member Avatar for Thomas Tong

}[CODE]#include <stdio.h> #include <string.h> struct cd_detail { char group[20]; char name[50]; int year; double price, playtime,costTotal; } cd[7]={{"Alan","Tibet sing",2008,51,600}, {"Thubasa","Fly away",2007,52,700}, {"Alan","I love China",2010,53,500}, {"pitbull","Jump to jump",2005,54,720}, {"pitbull","crazy mix",2009,48,630}, {"pitbull","Let we ROCK",2010,49,608}, {"Alan","Sakura mansume",2010,56,909}}; void main() { char group[20]; int k; printf("Enter group>"); gets (group); printf("Name \tYear \tPrice \tPlaytime\n"); printf("========\t=======\t======\t=============\n"); …

Software Development c++
Member Avatar for vidit_X
0
237
Member Avatar for guccimane

Hi All. I am trying to learn linked lists, and I am a little bit confused what the next pointer as well as the head pointer does. I was reading a tutorial online, and they gave this example. [CODE]#include <iostream> #include <string> using namespace std; struct Family { string nameOfFamilyMember; …

Software Development c++ linked-list
Member Avatar for vidit_X
0
104
Member Avatar for krishnisilva

hi there, how can i validate a data grid view column to enter only the date in the data grid view column. i am doing this in a 2008 VS C# standard edition software. how can i do this. thankx

Software Development c# vb.net
Member Avatar for FijiXzone.com
0
2K
Member Avatar for Sunshine2011

Within this code I would like to save the data which was input through a function "SavePlayer", but it doesn't work. The compiler "says" that object "a" ist not known. Probably the bold line [CODE][B][I]a.SavePlayer(manyPlayer,Player a); [/I][/B][/CODE]is wrong, but I have no idea how to solve the problem. Maybe someone …

Software Development c++ queue
Member Avatar for dluz
0
101
Member Avatar for SyncMaster170

So heres my code: using (SqlDataReader reader = cmd.ExecuteReader()) if (reader.Read()) SearchingDate = (DateTime)reader[0]; The third line of code is where im stuck. In my app, im trying to compare the current datetime against the value of a members date column value. Unfortunately, the third line of code sets the …

Software Development
Member Avatar for Mitja Bonca
0
105
Member Avatar for getmet

I cant see to figure out what im diong wrong here... many errors [CODE]public class Card { private String suit; private int face; public static void main(String[] args) { Card allSuit[] = new Card[4]; for (int i = 0; i<allSuit.length; i++) { allSuit[i] = new Card(); } allSuit[0] = new …

Software Development java
Member Avatar for Ezzaral
0
203
Member Avatar for Tcll

does anyone have any note on rewriting C/C++ programs in Python?? google and bing give me the exact opposite, and I've got a headache from searching... please note that I can't read C++ if you need the program I'm rewriting, please let me know

Software Development c++ python
Member Avatar for JoshuaBurleson
0
2K

The End.