132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for MyRedz

well here i am just starting to do some coding about handphone to smartphone object..it's an inheritance project but not mine..;) so i would like to share here about the errors and others. any help is appreciated... now my uml diagram i want to transfer to handwritten coding.so.. [QUOTE] Handphone …

Software Development c++ smartphone
Member Avatar for foze_skate
0
132
Member Avatar for ankur_

How can we get the last error occured in linux. suppose there is a connect() func error in that case how to get the error that occured.

Software Development c
Member Avatar for dkalita
0
121
Member Avatar for redlyfs

import java.util.Scanner; public class BookRentalSystem { public static void main(String args[]) { //Declaration of variable and instances String bTitle, bType, bAuthor, bISBN, bStatus, search; int choice = 1; int bCount = 0; boolean found; Scanner input = new Scanner(System.in); Book[] books = new Book[5]; //Executing user's selection from menu. Exit …

Software Development java user-interface
Member Avatar for redlyfs
0
222
Member Avatar for flyballonfly

Hey Guys, I'm trying to read individual characters from a file, store them in two arrays then print out the arrays. The input file looks something like this 7 1 5 0 1 2 4 3 7 0 2 5 9 0 3 With the first number being the length …

Software Development c
Member Avatar for dkalita
0
86
Member Avatar for hmortensen

Hi all, Im trying to read an int from a binary file.. (As I have done many times before) [CODE] int chunkLength=0; fileRead.read (reinterpret_cast<char*>(&chunkLength),sizeof(chunkLength)); [/CODE] I know (and can see) that the file contains the bytes 00 00 00 0D, so to the best of my knowledge the int should …

Software Development c++
Member Avatar for hmortensen
0
148
Member Avatar for I_Empire

i am writing a function to convert fractions to intgers for example: .636 -> 636 or .45 -> 45 [CODE] int ret_int(double input) { while(true) { // this line is for debugging only cout << input << " " << floor(input) << endl; if(input == floor(input)) return input; input = …

Software Development c++
Member Avatar for I_Empire
0
154
Member Avatar for simpatar

Here is my program: [I]#avg2.py # A simple program to average two exam scores # Illustrates use of multiple input def main(): print('This is a program to average two exam scores') score1, score2 = float(input('Enter two scores separated by a comma: ')) average = (score1 + score2) / 2.0 print('The …

Software Development python
Member Avatar for The_Kernel
0
167
Member Avatar for duliprb

Hello , There is a problem with compiling the project of outcall. I want to test it. because i am very interested about project but Before do customisation I wanted to compile it. [url]http://outcall.sourceforge.net/[/url] If there is a good C++ person please help me. Thank you very much. early response …

Software Development c++
Member Avatar for duliprb
0
328
Member Avatar for Hiroshe

Can anyone help me with doing problem 12 on project euler? The question is asking which triangle number has more than 500 factors. The first few triangle numbers are: 1, 3, 6, 10, 15, 21, 28 ... Hope you understand the pattern, cause a can't explain it in words vary …

Software Development c
Member Avatar for SVR
0
185
Member Avatar for riahc3

Hey I have a text file (1.txt) with the lines: This is line 1 This is line 2 This is line 3 This is line 4 This is line 5 and Im trying to read all the pair lines from that file and write them to another text file called …

Software Development c file-system
Member Avatar for Gaiety
0
202
Member Avatar for PriusDriver07

Hello, I am wondering if I am chasing my tail, but is it possible to convert the numbers 1-26 to their respective letter of the alphaber by using the call char(1) where it will return the letter a, char(2) will return b, char(c) will return c, etc... Thanks,

Software Development c++
Member Avatar for PriusDriver07
0
45
Member Avatar for ankur_

Where can I find sample client-server program using poll. Or if someone has it can they share it.

Software Development c client-server
Member Avatar for ankur_
0
157
Member Avatar for edwar

Anyone knows how to open a text file and write the content of it to a text file with command line or arguments, i mean using the argc and argv. thanx for answer!

Software Development c++
Member Avatar for Ancient Dragon
0
273
Member Avatar for OldQBasicer

I want tu use more than one form in my project and be able to code a button or something that will do that. I tried this on Form1 and it worked. [CODE]Public Class Form1 Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click 'Goes from this …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
124
Member Avatar for mimi8469

hello every1, am doin my final yr dissertation on cd database ( audio cd and mp3 cd). I'm to develop something similar to media player. My software should be able to copy cds and save on computer. user should b able to search 4 a specific song and play it. …

Software Development audio visual-basic
Member Avatar for vb5prgrmr
0
242
Member Avatar for srk619

ive got a sample game from college and i would like to open it a see how the game is but when i open it a blank window appears like ms dos and then closes i wonder if anyone could help out. ive installed python 2.5 and pygame. the code …

Software Development python
Member Avatar for snippsat
0
96
Member Avatar for tomafik

I want to write a program that mainly use voice commands but I don't know how can I get vb6 voice commands. would you help me?

Software Development visual-basic
Member Avatar for vb5prgrmr
0
382
Member Avatar for abu taher

after complete all process when I press finish then show a msg: "unexpected error number 70 has occured: permission dinied." what I need to do.

Software Development visual-basic
Member Avatar for vb5prgrmr
0
91
Member Avatar for why1991

I must be overlooking something simple here, but I have no clue why it says that it is going out of bounds. Here is my entire program... [CODE]import java.util.Scanner; import java.util.Random; public class MadLib { static Scanner input = new Scanner(System.in); static Random rng = new Random(); static String t[] …

Software Development java
Member Avatar for BestJewSinceJC
0
195
Member Avatar for lovelyfire322

Hi, I was wondering how to get the computer to randomly select between 0, 1, or 2.

Software Development c++
Member Avatar for noodlecode
0
97
Member Avatar for dhanh90

I have this code: [CODE]/* package lab; public class Main { public static void main(String[] args) { int t=0; int h=0; int w=0; String Name="http://hcmiu.edu.vn/mail/cuem"; char[] ch=new char[Name.length()]; for(int i=0;i<Name.length();i++){ ch[i]=Name.charAt(i); for(int j=0;j<Name.length();j++){ if((ch[j]=='/')&&(ch[j+1]=='/')&&(Character.isLetter(ch[j+2]))){ t=j+2; System.out.println(t); h=Name.indexOf('/', j+3); } } } System.out.println(Name.subSequence(t, h)); } } [/CODE] This code run correctly.But …

Software Development java
Member Avatar for dhanh90
0
166
Member Avatar for OldQBasicer

New to VB and using Visual Studio 2008. Trying to declare variables and arrays that can be used outside a specific procedure. I want to make the variable universally available within the program. I think I know how to do the declaration, I just can't find where in the code …

Software Development visual-basic visual-studio
Member Avatar for SCBWV
0
91
Member Avatar for gibson.nathan

this is my first program using more than one method. while i like it because of its modularity and cleanness, i despise it for its multiple new problems it introduces into my world where i was just getting the hang of the old style. i am supposed to be doing …

Software Development java
Member Avatar for ieshoes
0
192
Member Avatar for NT.

Hi, I am new to developing an application like peer to peer chat. I have no clear ideas how to start developing that and till now I didn't found any tutorial that are really helpful in understanding the basic concept behind peer to peer communication, Like how the peers communicate,h …

Software Development client-server peer-to-peer
Member Avatar for mikiurban
0
2K
Member Avatar for s_mostafa_h

Hi All I Importing a Excel File to a DataGrid . I want to filter some rows have the code of "91" and "90" for i.e. in the [COLOR="red"]Column of "A"[/COLOR] : so , I added manually , A column in the DataGridView , name [COLOR="red"]"Column1"[/COLOR] . now when i …

Software Development
Member Avatar for sknake
0
343
Member Avatar for phpbeginners

Hi Guys, Can you help on the abovementioned title of this thread. Thank you very much.

Software Development visual-basic
Member Avatar for phpbeginners
0
565
Member Avatar for GooeyG

[B]Here is the problem:[/B]There are (at least) two ways in which you can make a 12 hour clock. One possibility is to just store hour values from 1 to 12. On the other hand, you can just leave the clock to work internally as a 24 hour clock, but change …

Software Development java
Member Avatar for darkagn
0
470
Member Avatar for RayvenHawk

I have an assignment due for my Assembly class and I have a quick couple of questions regarding it. The requirement is initialize 3 variables as 16bit words with values (10, -60, 30) add those values as the following equation y = var1 + var2 + var3, use no more …

Software Development assembly
Member Avatar for NotNull
0
143
Member Avatar for jen140

Hello all. I have a small problem, i need to recieve a 8 digit number for example: 12345678 87654321 and so on. After i need to devide the value and use the int as a array, something like int i=123; System.out.println(i[1]); It should return 2 (therocially), but obviously the doesnt …

Software Development java
Member Avatar for jen140
0
406
Member Avatar for Alex_is

write a program which asks the user how many days they will be working. then using your program calculate and print the amount of money they will earn if paid £1 for day 1, £3 for day 2, £9 for day 3 etc.....i have coded the inputing of name and …

Software Development java
Member Avatar for BestJewSinceJC
0
94
Member Avatar for senthil12345

[code] import com.sun.crypto.provider.RSACipher; import java.util.Random; public class RandomRange { static int START = 1; static int END; static Random random = new Random(); private static void showRandomInteger(int aStart, int aEnd, Random aRandom){ if ( aStart > aEnd ) { throw new IllegalArgumentException("Start cannot exceed End."); } //get the range, casting …

Software Development java
Member Avatar for BestJewSinceJC
0
129
Member Avatar for goody11

Hey, I was just wondering how do I make my edit boxes so that when the the tab button is hit the cursor will go on to the next edit box in windows API. I've done some research on functions that deal with the cursor but I can't string them …

Software Development api c++ windows-api
Member Avatar for goody11
0
202
Member Avatar for Reprise

I have a templated class set up like so: [code=CPP] template<typename T> class treeNode { public: bool operator==(const treeNode<T>&) const; bool operator>(const treeNode<T>&) const; void print(); T field; int key; }; [/code] Using the > operator as an example of my problem, I have it overloaded like this: [code=CPP] template<typename …

Software Development c++
Member Avatar for xxjay922xx
0
94
Member Avatar for Free1ancer

hi, Im trying to have a function that would return a pointer and i cant seem to figure out what it is that the compiler complaining about. I got the following error: 80 expected constructor, destructor, or type conversion before '*' token 80 expected `;' before '*' token heres an …

Software Development c++
Member Avatar for Free1ancer
0
124
Member Avatar for kekkaishi

Hi, ive been trying to assign a value to a variable from within the ActionPerformed method, but the value seems to be lost as soon as ActionPerformed method ends. here's the code [CODE] public class Log{ private JTextField user = new JTextField(10); private JPasswordField pass = new JPasswordField(10); private int …

Software Development java
Member Avatar for kekkaishi
0
1K
Member Avatar for AnonSurf

Having trouble getting code to allow the cars to go off screen then come back on the opposite side of the screen! for top to bottom and side to side! -The code i was trying was [CODE]if self.position > rect.top self.position == rect.bottom[/CODE] not sure if this is gonna work …

Software Development python
Member Avatar for AnonSurf
0
164
Member Avatar for ylchen

Hi all, Here's the problem I have. clock() call returns 0 no matter when I call it.... Code: [CODE] #include <time.h> #include <stdio.h> #include <math.h> int main() { volatile double n, i, x; clock_t time1, time2, time3; int j; // while (time1 < 1) time1 = clock(); for (i = …

Software Development c
Member Avatar for ylchen
0
91
Member Avatar for eggmatters

Hello all, I am writing a java application where I have a Jtable with checkboxes next to the data. If the user checks a box, I want to store a specific value from the data table. I can do this inelegantly by setting setCellSelectionEnabled(true) and adding the following to the …

Software Development java java-swing
Member Avatar for eggmatters
0
142
Member Avatar for Kimmelivim

I have an assignment where I need to input a certain value, and the computer will then run through an 'txt' file to see if the value is in there, otherwise it will ask you if you want to create a new value or make a new input. [code] ifstream …

Software Development c++
Member Avatar for Kimmelivim
0
167
Member Avatar for hezfast2

Hello, I've written a knight's tour program and handed in a working version of it already using a bunch of if statements for each possible move. I really wanted to use a couple of arrays for the moves and consolidate my code more, but I ran out of time. I …

Software Development c++
Member Avatar for hezfast2
0
106
Member Avatar for poopynoob

Hello, I am new to c++ and attempting the for command. This is my code #include<iostream> #include<string> int main() { for (int x=1; x<=10; x++) { cout <<"Hello"; } } but the error : undeclared identifier comes up for cout. I have tried other commands such as cin but none …

Software Development c++
Member Avatar for Grn Xtrm
0
180
Member Avatar for Alex_

Hello everybody. I'm trying to get the current directory, save it, changing the current dir, then coming back to the previous one. My code so far [code=asm] TITLE ep1_7 .MODEL SMALL .STACK 10h .DATA msg DB 'Current directory:',0h msg_l equ $-msg buff db 64 dup('$') ;f_handle dw 1 dup(?) .CODE …

Software Development assembly file-system lan-wan
Member Avatar for NotNull
0
252
Member Avatar for neutralfox

Hello everybody, Hope everyone is fine over here. Well .. actually, i am developing a networking application, or a client-server application where many clients on a LAN will connect to the server. Actually I am a bit confused with the database part, one of the features of my application is …

Software Development client-server sql
Member Avatar for DdoubleD
0
128
Member Avatar for Unix*

I reached another part of my program where I have the following statement which prints out these values on screen. printf(" %d %d %d %d %d %d %d(%.1foC) %d %d(%s) %d(%.2f) %d(%s) %d\n", year, month, day, hour, minutes, evtStart, temperature, tempDegC, checksum, basicSelfTest, bstResult, batteryVolt, (float)(batteryVolt*0.0198), powerUpCode, statusCode, timeElapsed); I …

Software Development c++
Member Avatar for William Hemsworth
0
153
Member Avatar for DanyLdon

Hi i will describe my problem. When focus is on TextBox and we press ENTER or ESC then we will hear that sound. I'm trying to disable that. Did any one got that problem before ? I was trying to create my own SilentTextBox which will inherit from TextBox and …

Software Development
Member Avatar for DdoubleD
0
1K
Member Avatar for Gaiety

Hi, if any one has the idea of the internal system calls which gets activated by using high level statements ( like printf ,scanf or malloc and so on) please provide me the links or any related info. i have an idea that the internal system calls depends on the …

Software Development c
Member Avatar for Ancient Dragon
0
198
Member Avatar for TechComm

I need to make a program that reads the program its self and echo prints it to the screen. I appreciate any help. For example if the program was: [CODE] <iostream> using namespace std; int main (){ //This is my program } return 0; [/CODE] My output would be this …

Software Development c++
Member Avatar for TechComm
0
494
Member Avatar for 3pid

hey guys, I`m a beginner in c# and I have a problem in using set/get in classes. actually I didn`t get why do we use them,can anyone please introduce them briefly for me?

Software Development
Member Avatar for ddanbe
0
2K
Member Avatar for NinjaLink

Hi, I am new to stacks and need some help getting started with my first program in stacks. I have all the functions like pop,push etc. in my header file. I have to create a palindrome program with the objectives below. If someone can give me an idea on how …

Software Development c++
Member Avatar for DemonGal711
0
168
Member Avatar for iris88

How to prompt user enter 10 integer then sort it in both ascending and descending order and also ask user either they want to sort it by insertion sort or selection sort or bubble sort??

Software Development c++
Member Avatar for Tom Gunn
0
122

The End.