132,726 Archived Topics
Remove Filter ![]() | |
Hello Guys, I'm considerably Newbie to any programming whatsoever, and i'm having to take Java for my computer Science requirement. I'm currently working on an homework assignment to write an application that reads the (X,Y) coordinates for two points. I also need to compute the distance between them using the … Software Development java | |
Can someone help me to make a program in java: 1. Generate 2 rows of 50 random numbers (int) from 0 to 99. 2. Search the numbers that appear in the first row, but not in the second, and numbers that appear in the second row but not in the … Software Development java | |
hi sir, i have a textbox and loginbutton in first form and wen i click on a valid id in 1st textbox wch is in the database and click on loginbutton it should show the details of that id in the next form which consists of textboxes and a modify … Software Development | |
I've got code sections which write and read binary files. But when I print data reading from file. It appears unnecessary characters. [code=cplusplus] int WriteFile(const char* file_name) { fstream file(file_name,ios.out|ios.binary); if(file.is_open()) { string data_block="I don't understand!\nAdd one line"; file.write(data_block.c_str(),data_block.length()); file.close(); cout << data_block << "(" << data_block.length() << ")" << … Software Development c++ file-system ios | |
Hey i'm new here and i need help with a slot machine game that i want to make. So far i have three labels that should be generating random numbers but they won't appear. I also have a label which will total the players money. I have taken so ideas … Software Development vb.net | |
Hi I'm working on a program that compares the users response to an answer like a quiz. At first I wasn't sure how to do this using cin because the answer was two words. Someone helped me out and showed me the getline command. The only problem is if i … Software Development c++ | |
For my script, I am trying to open a text file and print out the information in the console window. However, I am having trouble finding the right way to load it. To start, I need to figure out how to load something in the same directory as the script, … Software Development python | |
I'm trying to create a Monopoly - style game in C++ using the Dev-C++ IDE, MinGW compiler. I actually wrote this game in BASIC on a TRS-80 back in the early '80s and it worked fine! I've attached a .txt of the code in question with the error codes given. … | |
I have a whole bunch of files (file0000,file0001....file5000), and want to read them all at once in C. Anybody knows? Thanks!! Software Development c | |
Hi, I have a program, which has some worker threads that are performing tasks. The main thread assigns work to the worker threads. The worker threads wait for a message from the main thread (with data) and start to work. After completion of work, working threads again wait for more … Software Development c++ | |
Hi guys, i am a problem when i doing my coding about format a number for normal number with 4 digit , i have idea which is e.g: Dim a As double a = 1/ 2946.33 ' its return is 0.00033940529 If i use format number function with 4digits, the … Software Development visual-basic | |
I must be getting soft.... How the heck to do I programmatically add new rows to a datagrid / flexgrid or whatever grid using VBA? It's not bound to anything and I'm trying to add data on the fly. Any ideas? Software Development visual-basic | |
Hi, I am very new to Python and computer programming language. I have been working on a text file where I want to find the average length of words in a text file. Well, to start with: Let's say I have only one sentence in my text file (we can … Software Development python | |
anyone know of a free ANSI lisp compiler for download? I want to learn some lisp but I don't want to use REPL in emacs anymore... I want to write source code and compile it haha. Software Development | |
Hi! I am new to Scheme and I need help with this problem. Split and return a list of two lists at a given element; call it (split List Element). The given element should be the head of the second list. (split ‘(2 3 4 6) 4) => ((2 3) … Software Development | |
No errors when compiling and I can comment out most of the main function and it still frezzes. Remove the SDL parts and it won't freeze up but then again the SDL is most of the program. CODE: [code] //Main.cpp #include <SDL.h> #include <iostream> #include "Socket.h" #include <fstream> #include <string> … Software Development c++ | |
Hi all, I'm quite new to C++!! I'm also having a bit of a problem with a for loop Its that I have an if statement inside a for loop [code]if (cuno == customers[i].custno)[/code] when I try to add an else within the for, it repeats the message 3 times … Software Development c++ | |
Hello.. i've this HW.. i did what i can do.. but there were some errors that i couldn't fix.. and one point i dunnu how to do it which is change negative variables to positive ones?? can someone tell me how to code that? here is my code: [CODE]#include <iostream> … Software Development c++ | |
Hi, in my program, I need at one moment to set a window on the top of the others created by my program but not of all the windows (so that it does not popup randomly when I'm doing something else) how can I do it? Software Development python | |
Hi! I would like to print a text file having some records onto the screen while running my program. Can sumone suggest me the easiest way to do it. I know I have to open the file using fopen() then what... Software Development c | |
i am not geting the correct output can anybody help me whats the pmistake i have done [code=c] # include<stdio.h> # include<conio.h> void main() { int color; clrscr(); printf("enter any number"); scanf("%d",&color); if(color ==1) printf("violet"); if(color==2) printf("indigo"); if(color==4) printf("blue"); if(color==8) printf("green"); if(color==16) printf("yellow"); if(color==32) printf("orange"); if(color==64) printf("red"); getch(); } [/code] Software Development c | |
How do you pass a structure array to another class? For example, I want to pass the structure array point[150] to a function in another class/source file. [CODE]#include... struct Points { int xCoordinate; int yCoordinate; int zCoordinate; } point[150]; int main(int argc, char **argv) { ... void DisplayPoints(); [/CODE] The … Software Development c++ | |
Just started working on a project that is using Python to drive C API's. When the C API's take an unhandled event they terminate using a C exit(3). How can I monitor for these exit conditions with in my Python code and handle and process the error code used in … | |
i want to run some .exe in pocket pc using c++. how do i do that? thanks Software Development c++ | |
I want to send a string through a socket. So, i convert string into array of bytes. System::String ^st = "ÿÿÿÿdetails\x00"; array<Byte>^ msg = Encoding::ASCII->GetBytes(st); And when i convert back the array bytes to a string , i get a different string. System::String ^t = Encoding::ASCII->GetString(msg); MessageBox::Show(t,"asd"); The string t … Software Development c++ | |
Hi, I have a question a bout a data bound data grid. The grid has 5 columns, the first of which is read only. I thought that setting the column to read only would prevent the user from being able to alter the cell value. However, it apears that I … Software Development | |
Hi guys, I want to paint multiple layers of images onto one image. I'm going to be using BufferedImage for this. How would I go about painting these multiple images onto one (in essence creating a new image. sort of like a collage)? Would i get the graphics context and … Software Development java | |
I'm trying to get this countdown to work. I'm trying to get it to countdown from 10 down to "Blast off", with Blast off being 0. Each output replaces the one before it. I'm very confused. 10 does not print, but 9 to Blast off do. When when it Blast … Software Development c++ | |
hi... this is code for txt speech in my program private void btcitaj_Click(object sender, EventArgs e) { SpVoice voice = new SpVoice(); voice.Speak(rtb1.Text, SpeechVoiceSpeakFlags.SVSFDefault); } that is one part of the program...the other one is, word that is being spoken at the moment should be underlined...you know...it's like karaoke. i … Software Development | |
So far the move to wxPython has been going fairly smoothly. However, it's crucial that I be able to display items in the center of the screen (images, buttons, and radioboxes). I read about wx.ALIGN_CENTER_VERTICAL and wx.ALIGN_CENTER_HORIZONTAL, but the vertical option just doesn't seem to be working for me. Below … Software Development python | |
I working on part of a code for a much larger project. I understand how to write a program for a password in the simplest form, but I want to have it let the user guess the password up to 5 times and then not let them run a command. … Software Development app-store c++ file-system open-source | |
I am encountering a problem while reading config files. The scenario is like this, I have two programs. Program A reads its configuration from a config file and program B is only used to modify the contents of the config file which A reads. The name of the config file … | |
[code]#include <stdio.h> #include <conio.h> int main(){ printf("*\n**\n***\n**\n*"); getch(); return 0; }[/code] i want help to write this program segment using loop statements to produce the following output * ** *** ** * Software Development c++ | |
i am working on c++ server client example using sockets.... whenever i tried to run server 2nd time on the same port it fails !! ok... i know that port is not free and still opened for my previous program but i have used [icode]SO_REUSEADDR[/icode] but still it's not working … Software Development c++ client-server ![]() | |
Hello, I am currently attempting to write some code in Matlab which will allow me to output information to a USB port (which is changed into a PPM signal however this part is already accomplished by some hardware). I have an example of how to use the PCTx-PC to transmitter … Software Development c++ | |
Hello all, I am having a problem in creating an image by using createImage() method when trying to load large files. FileConnection fc = (FileConnection) Connector.open("file:///" + path + "/",Connector.READ); InputStream fis = (InputStream) fc.openInputStream(); image = Image.createImage(fis); // I got the out of memory exception here. Are there any … Software Development file-stream java | |
What does error Lnk 2001 and LNK 1120 mean? Am a complete noob.. Could anyone please give me a step by step procedure to rectify it? Software Development c++ | |
Hi folks, I'm trying to write an XMLHandler for my epos app. The XML file (which is received by a network stream) will include multiple "operations" which may include updating the product database or opening the cash drawer etc.. My sample XML file looks like this: [CODE]<paypointXML> <op> <command>opendrawer</command> </op> … Software Development file-stream xml | |
Hey everyone, I created a program for one of my clients which uses a back-end MS Access database with a front-end VB.net application that allows the user to enter details into various tables, search through the information already stored there and lastly, generated various reports based on specific criteria. My … Software Development vb.net | |
hi. Does this command (tar cvf /usr/local/bin) create a tape achieve in /usr/local and then copies all the files and directories that are in the /bin directory into the tape archive that is stored in /usr/local? If not then how does it work? I have looked around the internet and … Software Development shell-scripting | |
Hi, im new to c++ and wondered if anyone could help me with this Use a for loop to display 3 times table backwards 12 times 3 = 36 11 times 3 = 33 10 times 3 = 30 9 times 3 = 27 8 times 3 = 24 7 … Software Development c++ | |
Hello everybody... Can anyone help me with this?: I want to check out an array, if there is any number which is 3, or more times in a row. IE: int[] tmp= new int[7]{0,2,1,1,1,4,5}; // yes 3 duplicities starts at index 2 int[] tmp= new int[7]{0,2,2,1,1,1,1}; // yes 4 duplicities … Software Development | |
Hi, this is a program that I'm coding for a project. The code is a bit messy, but I'm having trouble with resetting the variable to the original value. The variable "iBottle" is declared at the start of the program. It then gets subtracted by within the IF...ELSE structure in … Software Development vb.net | |
I am using the following code to show existing C# forms. It works for some and not for others Suggestions would be appreciated! Form frmFDDsearch = new frmFDDsearch(); frmFDDsearch.Show(); Software Development c# | |
Hi there. I'm sor of beginner in c# and want to compare the value of the elements form a XML file with other values wich i declare for example. My XML file looks like this: <alarma> <conditii> <conditie> <semnal>Umiditate</semnal> <operator_semnal>=</operator_semnal> <valoare>90</valoare> </conditie> <operator>&</operator> <conditie> <semnal>Temperatura</semnal> <operator_semnal><</operator_semnal> <valoare>37</valoare> </conditie> </conditii> </alarma> … | |
Hi. I know that Python comes bundled with Cygwin, but can Cygwin work without Python? I believe it can but I'm just checking as there's some non-developers that we wouldn't want to get access to Python when using Cygwin and Xfree86. Software Development python | |
Hello,I need help with the following series (sorry I forgot what its called..) 1/1! - 2/2! + 3/3! -4/4!....upto n terms Here's my program : [CODE]#include<conio.h> #include<stdio.h> #include<float.h> void main() { float com=0,j=0,j1=0,ans=0; //variable decl of float type int tillw,i,no=0,fac1=1,fac=1,f1,f2; //variable decl of int type clrscr(); printf("\n\n\t\t *********************************"); printf("\n\t\t ---------------------------------"); … Software Development c | |
Can someone out there provide me with notes or information on using data reports in Visual Basic 6.0 Software Development visual-basic | |
Hi all, I would like to help me with a program in C. I would like to make a function that saves 10 float numbers from an user. But I would like to to do this with pointers. My function is called float *save_array(int N) and then I have to … Software Development c |
The End.