132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Geowil

[code] //Address Book Part 1 //IT 215 //George Williams import java.util.Scanner; class menuOperations { //Initilize Arrays to store information String[] fNames = new String[5]; String[] lNames = new String[5]; String[] dAddress = new String[5]; String[] dCity = new String[5]; String[] dState = new String[5]; int[] dZip = new int[5]; int[] …

Software Development java
Member Avatar for masijade
0
479
Member Avatar for zetologos

What is the difference between makin an ArrayList these two difference ways? i know the method will be the same and both will essentially do the same thing. but why two ways to initializing arraylist? [CODE] ArrayList<String> list = new ArrayList<String>(); List<String> myList = new ArrayList<String>(); [/CODE]

Software Development java
Member Avatar for masijade
0
104
Member Avatar for Katana24

Hello - quick question, I have created a method which prints a chosen symbol multiple times: - User enters 5 - Print this: ***** **** *** ** * I'm aware of recursion and know how to use it, my method uses it to do the above but I also use …

Software Development java
Member Avatar for masijade
0
167
Member Avatar for enakta13

I am struck with some floating-point precision. Please help me to get through this. [CODE]main() { int fact,i=5,div=8; float dec=0.427,temp,sum=0; while(i) { temp=dec*10; printf("%f\t",temp); fact=(int)temp; sum=sum+(fact/(float)div); printf("%f\n",sum); dec=temp-fact; div=div*8; i--; } printf("\n The Decimal part= %f",sum); getch(); } [/CODE] [ICODE]Output 4.270000 0.500000 2.700000 0.531250 6.999998 0.542969 9.999981 0.545166 9.999809 0.545441 …

Software Development c
Member Avatar for WaltP
0
238
Member Avatar for hahanottelling

If you want your program to startup automatically when the user logs in, just paste this code into it. To add as a HKLM (For all users) startup item instead of HKCU (Current User), change HKEY_CURRENT_USER to HKEY_LOCAL_MACHINE. I'm posting this because I had a hard time figuring this out …

Software Development c++
Member Avatar for WaltP
0
3K
Member Avatar for pxd1055

I'm looking for help with an assignment in C++ in which change must made for an entered item cost, and the number of each monetary denomination from $20 bills down to one cent coins is to be shown (ie: Twenties - 2, tens - 0, fives - 1, ones - …

Software Development c++
Member Avatar for jonsca
0
339
Member Avatar for amberclaw

Hi, i´m quite new in pascal programing. Can someone explain me please why [CODE] function kolik(pocet:integer; retez: string):integer; var p: array[1..pocet] of integer; pomocna,j,i,k,l,od,nep:integer;[/CODE] is compiler telling me p: array[1..pocet] of integer; cannot evaluate this expression? Thank you in advance

Software Development pascal
Member Avatar for Wolfgan
0
154
Member Avatar for virusisfound

Is It Possible to show date if user specify the start date and then in text box user specify the number of month. then the date should be print like : ex : user give date 1/1/2011 In text box he enter 10 month then output will be like 1/1/2011 …

Software Development
Member Avatar for virusisfound
0
78
Member Avatar for pandaEater

I'm new to C# and I'm having some trouble getting input from a file and using it properly. I need to get input from a file and insert the values given into a function but the problem is I need to give the functions parameters that aren't strings. TimePiece is …

Software Development file-stream file-system
Member Avatar for kvprajapati
0
139
Member Avatar for alonewolf23

[CODE] #include <cstdio> #include <cstdlib> #include <iostream> using namespace std; int odd(int nValue) { nValue= nValue -1; return nValue; } int main() { int nValue; cout << "Enter a Positive Number: "; cin >> nValue; while ((nValue>2) && (nValue % 2 == 0)) { nValue = nValue -2; cout << …

Software Development c++
Member Avatar for Red Goose
0
139
Member Avatar for -ordi-

[CODE]from copy import deepcopy sis = file("teedtest.01.sis", "r") val = file("rp.val", "wt") N, K = map(int, sis.readline().strip().split()) alist = [] for i in range(0, K): t = [] for i in range(0, K): t.append(0) alist.append(t) for i in range(K): a, b, c = map(int, sis.readline().strip().split()) alist[a][b] = alist[b][a] = c …

Software Development python
Member Avatar for TrustyTony
0
182
Member Avatar for exekiel101

how can i return cases 1,2,3 and default in to the main function? when i press 1 as key to return to the main function.. the prompt will appear "press any key to continue" how can i return it to the main menu? [CODE]#include <iostream> #include <cstdlib> using namespace std; …

Software Development c c# c++
Member Avatar for Clinton Portis
0
185
Member Avatar for cosmos22

Hi. I was wondering about how you might go about executing a file as you log in to your account. For instance, I want to run a file that prompts the user of the date, and any other information as you log-in. Might I need a registry entry or such? …

Software Development c++
Member Avatar for WaltP
0
330
Member Avatar for Geowil

Here is my code at the moment: [code] import java.util.Scanner; class menuOperations { String[] fNames = new String[50]; String[] lNames = new String[50]; String fName = " "; String lName = " "; String sFName = " "; String sLName = " "; int dAmount,dTimes,i; Scanner in = new Scanner(System.in); …

Software Development java
Member Avatar for Geowil
0
101
Member Avatar for Don_k

Hi, I would like to using POSIX API system calls in C, and via command line arguments know how to go about extracting from an archive file.(in Linux). I have done the archiving process it archives the files I enter into the command line , and the last but one …

Software Development api c c# c++ file-system
0
123
Member Avatar for ezbaiby

Hey I have a program that has a webBrowser navigate through a few pages, and when it gets to the last page I set it to navigate to, checks if there is a certain string on that page. I just switched my code around to use multithreading and now the …

Software Development multithreading vb.net web-browser
Member Avatar for ezbaiby
0
827
Member Avatar for jackmaverick1

How do I comunicate with an API? I'd like to create a thing that would comunicate with other people through another server (say Gmail) Thanx, JT

Software Development api c++
Member Avatar for jonsca
0
98
Member Avatar for alonewolf23

My original question stated: 1. Write a function named "digits" that takes an integer argument in the range from 1 to 9 , inclusive, and prints the English name for that integer on the computer screen.[B][U] No newline character should be sent to the screen following the digit name.[/U][/B] The …

Software Development c c# c++
Member Avatar for alonewolf23
0
922
Member Avatar for james6754

If I have [CODE] class Class1 { string message { get; set; } int age { get; set; } public Class1(string msg, int ageof) { message = msg; age = ageof; } [/CODE] and am passing the parameters from another class in to the constructor... [CODE] class Program { static …

Software Development
Member Avatar for ddanbe
0
103
Member Avatar for LevyDee

for removing the last element from a chain in my linked list? [code] Action *temp = head; //Action is my node while(temp != 0) { if(temp->link == tail) //tail is my last node { delete last; tail = temp; tail->link = 0; return; } temp = temp->link; } [/code] I …

Software Development c++ linked-list
Member Avatar for LevyDee
0
110
Member Avatar for inamabilis

Hi All, Been coding Python on and off for a year now, but only just started looking at wx. Got a problem in a larger project I'm working on, trying to remove all items from a GridSizer - I've created the following test code to demonstrate the problem, but to …

Software Development gui python
Member Avatar for inamabilis
0
2K
Member Avatar for stefilina

hy, i'm new in .net -c# and I have a problem.I have a database with a field where is a long text, for example a description for a product.Well, i want to create a form where where i select something from a listbox, for example the name of product, i …

Software Development display
Member Avatar for stefilina
0
162
Member Avatar for destruct0

Hi !!! I have a table with two columns. The first column is called 'Login', the second column is called 'Password'. I wish with help of some query to extract how many rеcords I have in this columns. I use 'SELECT COUNT(*) FROM TableName WHERE Login = @login AND Password …

Software Development sql
Member Avatar for destruct0
0
144
Member Avatar for FAITH2011

Posted by mistake..............Sorry

Software Development python
0
73
Member Avatar for LianaN

Hi! I'm trying to zoom in/out ImageIcon in JLabel. The problem is that after 2-3 zooming actions, the image quality becomes horrible. How could I solve this problem? Thanks! [CODE] private void doZoom(int scaleFactor) { Component[] c = SelectablePanel.getMainPanel().getComponents(); for(int i = 0; i < c.length; i++) { if(c[i] instanceof …

Software Development image java
Member Avatar for LianaN
0
196
Member Avatar for james6754

Hi everyone... [CODE] Class1 myobject = new Class1(); [/CODE] Am I right in saying that "myobject" holds a copy of all the members in class1? Also say for instance I have.. [CODE] Class1 myobject = new Program(); //using the common names of classes... [/CODE] Can anyone explain or point me …

Software Development
Member Avatar for Mitja Bonca
0
80
Member Avatar for horserider

How to put this tool in vb.net 2010 plz check this image.. i hav rounded tat tool in red colour. [url]http://img192.imageshack.us/img192/6697/24961035.png[/url]

Software Development vb.net
Member Avatar for codeorder
0
128
Member Avatar for remo25

[CODE]#include <iostream> #include<cstdlib> #include<iomanip> using namespace std; int* userInput(int mat); void multiply(int mat, int* array); void print(int **mult, int **divides, int mat, int row, int col); //Main method, calls IO and handles the case for only 1 matrix. int main() { int mat = 0,i,j; int arrayA[mat][mat]; cout << "Enter …

Software Development c c# c++ matrix-multiplication
Member Avatar for ravenous
0
594
Member Avatar for emreozpalamutcu

I want to extract .cab files using C++ when extraction finishes i want the extract .exe to run how can i do this?

Software Development c++
Member Avatar for emreozpalamutcu
0
788
Member Avatar for neutralfox

Hello friends, You have been of great help to me till now. I got a new problem , I am unable to run the JAR file. When i click on the Jar file, I got the following error : "Could not find the main class: socketprog.Main. Program will exit." Thanks …

Software Development java
Member Avatar for Marin88
0
2K
Member Avatar for Ancient Dragon

I'm trying to set up NetBeans IDE on my Vista Home, and have a choice between those two compilers. Which one would you choose? I also want to have Code::Blocks.

Software Development c++ ide
Member Avatar for marantis
0
212
Member Avatar for ziggystarman

RE: Using C++ MD5 hash for software verification & licence files Hi The last few days I've been searching the net for ideas about building in some sort of software protection/security schema within a development for educational but perhaps more importantly to understand good & bad security coding/practises do's & …

Software Development algorithm c++ data-protection
Member Avatar for ziggystarman
0
314
Member Avatar for Coyboss

Hi there everyone, I need some help getting started creating a Java program for a class I am taking. Here is what I need to do: Create A program written in Java (without a graphical user interface) that will calculate and display the monthly payment amount to fully amortize a …

Software Development java user-interface
Member Avatar for Coyboss
0
232
Member Avatar for leedsfanatic

I'v written the program below, but I'v been told its too "intense" Any ideas on how I can get the same results but with a simpler program? [CODE]#define MAX_SIZE 10000 char buf[MAX_SIZE], name[1000]; int min(int a, int b) { return a<b?a:b; } int main(int argc, char** argv) { FILE *out, …

Software Development c
Member Avatar for peter_budo
0
118
Member Avatar for SoftwareAbuser

Hello,i m trying to make a program that uses 2 .dat files for student managment..here's my code and the problem main: [code=c] #include <stdlib.h> #include <stdio.h> #include "tei.h" /*orismos domwn*/ struct address{ char odos[16]; int noumero; }; struct foititis{ char am[7]; char onoma[11]; char epitheto[16]; struct address dieuthinsi; float mo; …

Software Development c++
Member Avatar for thelamb
0
3K
Member Avatar for vedro-compota

Hi there)) I cann't deal with the file opening operation - [CODE]char* fpath = "D:\TC\myprog\readit.txt"; FILE* fp; fp = fopen (fpath, "r"); if (fp != NULL) printf ("\n(!) File opennig error\n"); else printf ("\n(+) File have been opened successfully!\n"); for( i=0;i<=n-1;i++) { a = getc(fp); putchar(a-48); putchar('\n'); }[/CODE] For some …

Software Development c file-system
Member Avatar for vedro-compota
0
122
Member Avatar for mrectek

HI all, Im trying to create a simple MP3 player. I hope that by amalgamating a series of strings, example 1, that they can collectively contain the full play and filename/path instruction instead of the self-contained method in example 2. When I try to compile the solution in example 1 …

Software Development c++
Member Avatar for mrectek
0
756
Member Avatar for MasterGberry

[CODE]allPatches = patchFiles.Select(patchFile => Patcher.TryReadPatch(patchFile, true)).ToArray();[/CODE] I don't understand what this line of code does....allPatches is a class, and patchFile is a string. What is this doing? And is there a way to do the same thing in C++? Ty

Software Development
Member Avatar for MasterGberry
0
90
Member Avatar for reemhatim

I'm doing a second year student in computer and information sciences and it is the first time for me to do a project so I need help . My problem is how to enter a branch information and update the branch information,update holder information .Ijust need a hint to start. …

Software Development c++
Member Avatar for reemhatim
0
200
Member Avatar for MARKAND911

I have a number 2879068. I want to display it in currency format as like [B]28,79,068[/B] in C# Can any one help me

Software Development c#
Member Avatar for MARKAND911
0
130
Member Avatar for bobscrazy

I need to link an access database to my visual vasic express 2008 class i have made (as been set an object orientated project) but am struggling to link the database and get it to show the information from the database through the class to the product form. I'll attach …

Software Development microsoft-access vb.net visual-basic
Member Avatar for bobscrazy
0
136
Member Avatar for davetheant

Hello everyone. I am getting a [CODE]java.lang.NoClassDefFoundError: gnu/regexp/REException'[/CODE] when I run my code. Is there any way around this? I understand it has something to do with a class not being in the write path. I'm using BlueJ as my IDE and I'm trying to use the methods in someone's …

Software Development ide java
Member Avatar for ~s.o.s~
0
406
Member Avatar for kureiki

I am trying to use my textboxes and checkedlistboxes to insert data to a ms access database that is local just as a preliminary step to get my app running to show what it can do. I have connected to the database through the datasource connection in Visual studio 2008 …

Member Avatar for jugosoft
0
807
Member Avatar for electrox73

Ok, I have no idea how to make this becuase I need to be able to update the Name & Password database for the Web or somewhere else. Regards

Software Development c++
Member Avatar for jackmaverick1
0
2K
Member Avatar for vedro-compota

hi everyone)) Please tell me - where is the mistake here - [CODE]struct address {char* city ; char* street; int housenumb ;}; struct addinf {int age; struct address* address;}; struct student {int number; int kurs; char* name ; struct addinf* addinf;} stud; stud.number=1; stud.addinf.address.housenumb =123;[/CODE] thanks in advance)

Software Development c
Member Avatar for vedro-compota
0
302
Member Avatar for moroccanplaya

is it possible to copy specificity from a file for example i want to copy x number of bytes from x position to x position?

Software Development c
Member Avatar for Narue
0
97
Member Avatar for please1234

I'm working on application in c# that will download mp3 files to usb, mp3 ipods etc. but my problem that a sansa clip mp3 does not recognized as one letter(like f:\) so how do i recognize a sansa clip when it's inserted? thanks alot!!!!!!!

Software Development c#
Member Avatar for ddanbe
0
62
Member Avatar for zetologos

this code doesnt work, as in it only asks the user for getchar once and putchar once. i tried putting it in two method and it didnt work either. also whether it be char or int it is the same. that leads me to another question. why is it allowed …

Software Development c
Member Avatar for Narue
0
136
Member Avatar for inilahs

Hello everybody .. This is the first time i post on to daniweb for a favour. Am just proceeding with a math contest. in general say n , need the catalan series with formula 2n!/(n!*(n+1)!) . i am in need of the answer for n=1000. I thought cud try this …

Software Development java
Member Avatar for JamesCherrill
0
118
Member Avatar for marooh

hi, i'm trying to write a program that changes the 23h interrupt with my own handler which is to display "bonjour"32000 time and when ctrl break is pushed a msg"do you want to exit the program? y/n" is displayed.if the user select y the program will exit else the "bonjour" …

Software Development assembly
Member Avatar for marooh
0
138

The End.