132,726 Archived Topics
Remove Filter ![]() | |
hi everyone i need help how to -creates an array for 5 integers and store it in array -use the highest & lowest integer and cube it i stuck in array, i confuse how to input integers to array with JOptionPane so far for the input [CODE] import javax.swing.*; import … Software Development java java-swing | |
[CODE]#include <iostream.h> #include <conio.h> main() { int spm, mph; double spmRemainder, minInHour = 60, secInHour = 3600; cout << "Please enter the speed in miles per hour: "; cin >> mph; spm = secInHour / mph; spmRemainder = secInHour / mph; cout << "The speed of in minutes and seconds … Software Development c++ | |
Right now i am having difficulty skipping the blank lines in the txt file i read in. I read in all the material i need, but the blank lines come in too and messes up my array. this is my txt file #### #M## #..# ##.# #..# #### 0 S … Software Development c++ | |
Hi Guys, I'm really interested in C++ and am currently making a basic Text based poker game. on a sideline to this does anyone know any simple encryption code or where to start when doing this? For instance taking a text file (.txt or even .doc?) and creating your own … Software Development c++ encryption | |
Hi , i have read that new line character gets converted to \r\n when writing characters to a file and converted to new line again when reading. but i observed one thing here. i have written contents hello followed by return key . and i have written a program to … | |
Basically I am trying to learn multithreading in C++. Platform: Windows XP. So far so good but I want to make sure I'm using mutex correctly. It compiles and runs as expected, but just wanted to make sure I use the CreateMutex() function in the correct place. Thanks! Here's my … Software Development c++ microsoft multithreading | |
Im mid way through writting my own c shell and having trouble with my redirecting, i use strtok to spilt the input into 2 parts, argv0 being command and argv1 being cmd i have this for redirecting so far [code] if(strcmp(cmd,">")==0) { strcpy(filename, command); filein = open(filename, O_RDONLY); dup2(filein,0); close(filein); … Software Development c | |
I am in my first java class and I am writing an amortization program. I have gotten every thing to work correctly thus far except when I try to put in an outer loop I get the following error: 1 error found: \gnixon00Lab3Test.java:116: cannot find symbol symbol : variable restart … Software Development java java-swing | |
I am very new to programming and am really struggling with Java. I'm currently working on the below code, but when I compile the program, I'm getting several messages referring to multiple lines in my code, all stating things like the following: C:\Users\Heather\Documents\HACH5_8.java:111: cannot find symbol symbol : variable showFeet … Software Development java java-swing | |
Hi, I want to check whether a system exists in LAN or not and also the database residing in that system is up or not.So, for this I'm trying to use telnet command as follows, Runtime rt=Runtime.getRuntime(); Process p=rt.exec("telnet 192.168.1.15"); No error nothing ,It is executing .But by using the … Software Development java | |
Hi, I'm trying to create a vector array that contains pointers, and these pointers point to objects(particles) that have been created while the program is running. How do I use the appropriate de-reference operator to use functions of the class particle? ex. particle.move(); Here is what I have and my … Software Development c++ | |
Hi All, Apologies for my naivity in advance, but I am very new to the Python programming world - with experience mainly in Basic and Matlab. I am studying my PhD and am currently trying to program using Python in the Vizard environment to create stimuli for experiments. The purpose … Software Development python | |
Hi, I'm current working on a project that allows the user to store customer and job details. At the min, I have a form to view and add customer records, but also edit/delete etc. customer records. I also have a form to add a particular job type. I'm working on … | |
hello i'm newbie here. i'm finish to develop a registration system using vb 2008 exp edition. so, i want to connect my standalone system with LAN network. i want to access database from other computer and be use in my system. i'm use crosscable to connect with 2 computer. before … Software Development vb.net | |
Hi guys, I am doing an exercise we got in school and I am stucked at the point when I think everything is correct, but obviously is not :-). Target: Make a very simple pascal program, which opens a text file with three variables(name, sex, salary) and returns the highest … Software Development pascal | |
Hey guys, I have two JPanels for my game, one jpanel shows my character, informational text and the other shows the map which is made up of a tileset. Is there anyway I can show the map behind the character and information without merging the two java files? the Map … Software Development java | |
I am writing a program for school where the user inputs their age into a String which is then converted to an integer. When a value that cannot be converted to an int is input, an exception is thrown. I have written the code for this, but I am not … Software Development java | |
I am having trouble trying to finish this program, What I am suppose to do is make a loop program that should ask the user for the employees number, gross pay, state tax, federal tax, and FICA withholdings. The loop will terminate when 0 is entered for the employee number. … Software Development c++ | |
Hello, I need to simulate a stream which behaves exactly like a ostringstream, except when handling objects of type color. What is the best way to do this? [code] user.display() << color() << "Name: " << color(color::Red) << setw(10) << left << str_name << endl << color() << "Date: " … Software Development c++ user-interface | |
I am able to have checked menu items show the variables that I need to show, but they don't uncheck themselves unless I go back and click them. I want to have only one checkmark on a country at a time...is there any way? I've tried if...elseif , but that … Software Development vb.net | |
[code]#include <stdio.h> #include <time.h> #include <cstring> #include <iostream> #include <fstream> #include <sstream> using namespace std; int main () { ofstream file; stringstream ss; time_t rawtime; struct tm * timeinfo; time ( &rawtime ); timeinfo = localtime ( &rawtime ); char g[30]; char buffer[10]; itoa(timeinfo->tm_mday,buffer,10); strcat(g,buffer); strcat(g,"-"); itoa(timeinfo->tm_mon+1,buffer,10); strcat(g,buffer); strcat(g,"-"); itoa(timeinfo->tm_year+1900,buffer,10); … Software Development c++ | |
Ok i have a mthod that writes data to a file and throws an exception [CODE] import java.io.*; public void writeBook()throws IOException { String filename = JOptionPane.showInputDialog("Please enter a file name to add the book details in."); FileWriter outputFile = new FileWriter(filename); BufferedWriter outputBuffer = new BufferedWriter(outputFile); PrintWriter printStream = … Software Development java | |
In need a simple code that will check if proccesname is running, and if it does it terminate the c++ exefile, but if it dont it will continue to the code i want to run, can this be done? please somone help me out only thing i need to complete … Software Development c++ | |
Hi, I currently have a dataGridView which is populated with data. However, I now need to be able to add or edit the data in that dataGridView and the changes then update my SQL database. My code for the dataGridView [code] private void main_Load(object sender, EventArgs e) { //create the … Software Development | |
Hello, I'm very new to VB, I have a small problem. I'm simply trying to allow the user to change the ForeColor of some calculated totals that appear in Read-only text boxes using the Color Dialog box. I'm not sure what I'm doing wrong, any help would be appreciated. [CODE]Private … Software Development vb.net | |
Dear All, I am a C code to calculate prices in stock market. I pass a two dimensional array to a function as [CODE] #define DIM 3000 void grid(double tree[][DIM]); int main(){ double tree[DIM][DIM]; grid(tree ); return 0; } void grid(double tree[DIM][DIM]){ /* and do sutff on tree * } … Software Development c motherboards-cpu-ram | |
i'm currently taking c++ courses in my college and have been noticing that i'm having trouble grasping the fundamentals of programming or even understanding the concepts that are being taught. the courses are taught with no textbook whatsoever so going back for references leaves me with my lecture notes and … Software Development c++ | |
why when increase floating number with floating number catch error as [CODE] for(double i=0; i<10;i+=0.1) System.out.println(i); [/CODE] the out put is 0.0 0.1 0.2 0.300004 ....ect but the logicaly output is 0.1 0.2 0.3 ....ect Software Development java | |
Hi, When I call a method(present in external DLL) through [B]reflection [/B]which having [B]no parameters[/B] and [B]void return[/B] ,it get called fine but in same DLL when I call a method which have [B]no parameters[/B] but [B]return type Datatable[/B] then I got the [B]'TargetInvocation'[/B] exception. Can anybody help me ? Software Development | |
hi, i want to solve 3 equations, which has 3 unknowns like this: a x1^2 + bx1 + c = y1 a x2^2 + bx2 + c = y2 a x3^2 + bx3 + c = y3 can anybody suggest mw how can i do it in C? i tried … Software Development c++ | |
Hi, I would like to perform a validation check on a field (Employee/Staff Number) there should not be duplicate entries in this field so i would like for a check to be performed when the next field is clicked then a msg displayed saying "Staff Number already exists" Any sample … Software Development visual-basic | |
hey im in the middle of creating a little program that allows a user to search and if in admin mode can delete and add a new record to the database i have my search part working fine i have made the query using the dataset.xsd query builder i used … | |
dear all I am trying to send a mail using Web.Mail in vb.net. It is working fine but when I try to attach the file using Upload File Control of asp.net, event is not getting fired on which the function is getting called to send mail.. sending the code too. … | |
Hello, I'm writing a c++ code that reads a wav file and stores read values to a 1D array of integers. After doing some manipulation, I am able to write the values of the array to a new output wav. I use libsndfile library to do the reading and writing … | |
Hi, I need to make application that will act as server and have clients. computers with client will get permission to go to internet or not via server. Only permission to go but they will connect directly on net (not a firewall). Its some sort of internet cafe management depending … Software Development c++ client-server | |
Hi, Hope the stated 2 snippets are logically same. But I am getting error for the second code snippet. Generally the ternary operator statement is similar to a if else statement. regarding the second code snippet, where by the continue keyword is used in the ternary opertor statement. It throws … Software Development c++ | |
Dear Sir/Madam I have a program where I have used a small form as Input / Message Box in place of VB’s InputBox / MsgBox in a click event procedure i.e CmdSave_Click(). Though the code lines are executing in that procedure at a time, the global variable GblBox is not … Software Development visual-basic | |
I am trying to consume a web service using VS2008. The code below works in VS2005 but not VS2008 I, suspecting it's to do with WCF. Please can someone help me to solve the puzzle? 'Old code that works [CODE] Dim o As New MyWebService.Name Dim pr As New System.Net.WebProxy("100.0.1.1", … Software Development dataset puzzle router-proxy-firewall vb.net | |
hi everyone, is there any way that I can programatically tell the user weather he/she is successfully connected to the database(SQL Server 2005). or connection failed. Code is written in C#. [code] string Connectionstring = "...."; sqlConnection con = new sqlConnection(Conncetionstring); con.Open(); [/code] how I can check programatically weather con.Open() … Software Development | |
Hi I have two python lists. list1 is a \n delimited web proxy log file. list2 is a list of domain names. I want to cycle through the list of domain names and for every log file entry check if the domain name exists anywhere in the log entry. If … Software Development python | |
Hiz.... Can anyone help me in getting a code for reading a file in C language and counting different characters in it and then make a histogram based on the obtained results....................................plz help :) Software Development c | |
hi all, plz explain me. in following code[code] int main() { int arr[5] = {1,2,3,4,5}; printf("\n *arr = %d", *arr); printf("\n *arr = %d", *(++arr)); return 0; } [/code] why printf("\n *arr = %d", *(++arr)); this line giving error: '++ needs l-value' Software Development c | |
Hello/Hi, I m new to this pool of C. I wass just reading a book named "C TUTOR" this book is gr8.. but i cannot understand the subscripts of 2D arrays... I find them pretty hard.. Plz tell me wat exactly the below programme mean of suggest me some simple … Software Development c | |
Hi, I am trying to compare 2 vectors to remove any kind of overlap. I have written a simple program but it gives a segmentation fault once I increase / decrease number of vector elements in both. Is there a better way of doing this. Especially suppose one of the … Software Development c++ | |
Rational fractions are of the form a/b, where a and b are integers and b≠0. Suppose a / b and c / d are fractions. Arithmetic operations on fractions are defined by the following rules: a/b + c/d = (ad + bc) / bd a/b – c/d = (ad – … | |
i want that when i click NewToolstripbutton it run active child form newbutton procedure Note: newbutton is a userdefine Procedure. Help if any body known Ammad Iqbal Software Development c# | |
hi, i have created a program but don't know what to do. The condition is when text1.text = empty or it has no value then there would be a msgbox popping out. and for the else, there would be no msgbox popping out. i really don't know what's the code, … Software Development visual-basic | |
Hello All, I seem to be having a relatively small problem with a Maze program I'm working on. Basically, I read a txt file containing a maze into a 12 x 12 2D array, but the problem is when I try to display it, none of the white spaces that … Software Development c++ file-system | |
plz send a solution for this [code=text] "update login SET password=@password,username=@username where username=@user" [/code] while executing i got the error"syntax error in update statement " plz reply me how can i solve the error Software Development vb.net |
The End.