132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
Where can I find sample client-server program using poll. Or if someone has it can they share it. Software Development c client-server | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
Hi, I was wondering how to get the computer to randomly select between 0, 1, or 2. Software Development c++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
Hi Guys, Can you help on the abovementioned title of this thread. Thank you very much. Software Development visual-basic | |
[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 | |
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 | |
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 | |
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 | |
[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 | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
The End.