132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mahela007

If I do this [CODE]mylist = [1,2,3,4] a = mylist a[0] = 'hello' >>>mylist output : 'hello',2,3,4 [/CODE] I find that the value of mylist has changed to 'hello',2,3,4 So my question is.. If I assign one variable as a value of another (like saying a is mylist), then is …

Software Development python
Member Avatar for jice
0
332
Member Avatar for Muneeb49

Help me out , This code only print First part till white Space For example if i give Input "Jhon Kane" the it only prints "jhon" kindly help me with some code which print the whole Name[code]#include<iostream.h> #include<stdlib.h> #include<conio.h> main() { char *c; c=new char[20]; cout<<"please Enetr the string :"; …

Software Development c++
Member Avatar for mrnutty
0
102
Member Avatar for OSiRiSsk

Hello, i have trouble with creating funkction that will remove white spaces if they are more than 1 in a row i have created this function so far [CODE=c]void VymazBiele() { int c; while ( (c = getchar() ) != EOF ) { if (isspace(c)) { putchar(' '); while ( …

Software Development c
Member Avatar for OSiRiSsk
0
542
Member Avatar for darangho

Hi all, I am trying to write a code that determines the path of the currently running java file. I know that in python, you do os.path.join(sys.path[0], sys.argv[0]) in order to figure this out, but is there any equivalent code like this in java? Thanks!

Software Development java
Member Avatar for moutanna
0
181
Member Avatar for daviddoria

I have written an integration function (of one variable) [code] double integrate(double (*f)(double), const double a, const double b) [/code] However, now I want to integrate a function of one variable, but the c++ function has an additional parameter: [code] double f(double x, bool flag) { if(flag == true) f …

Software Development c++
Member Avatar for mrnutty
0
280
Member Avatar for gottlieb78

Hi Once again a newbie posting the same homework assignment! I´ve searched alot for this problem but I´m probably not good enough in searching because I just can´t figure this out. My main problem now is to insert the airplane layout into the 2D array. I was trying to do …

Software Development c++
Member Avatar for ImMoRtAl-
0
876
Member Avatar for JRabbit2307

import java.util.Scanner; public class AverageArray { public static void main(String[] args) { final int TOTAL_NUMBERS = 10; int[] numbers = new int[TOTAL_NUMBERS]; float sum; //Create a Scanner Scanner input = new Scanner(System.in); //Read all numbers for (int i = 0; i < numbers.length; i++) { System.out.print("Enter a number:"); //Conver String …

Software Development java
Member Avatar for Foxh451
0
479
Member Avatar for cgyrob

Im currently working on a gridview built using Itemplate at runtime. When in edit mode I use dropdownlists for some of the control fields which are populated from views in my db. The problem I am finding is I usually have a memberID field and a MemberName field and need …

Software Development
Member Avatar for cgyrob
0
112
Member Avatar for Clawsy

All these days I've been trying to access a Swing component (e.g.: JLabel) from a separate thread. I tried using "Thread", "Timer", "SwingWorker" but I couldn't find the solution. - Using a thread results in stack overflow. - Using a timer doesn't access the Swing component (e.g.: change the text …

Software Development java java-swing
Member Avatar for Clawsy
0
230
Member Avatar for chico2009

hi I am a complete novice and have written the following code and it work as required, with the exeption of the text being in a tidy format when printed. The origDict.txt has been exported in a fixed file format, and I am trying to acheive a fixed file layout …

Software Development python
Member Avatar for chico2009
0
144
Member Avatar for babylonlion

I created 5 separate programs, and put them in the same folder; each one of them has a package. I need to create another one that calls their methods. The incomplete code that I have so far is: [CODE] import edu.macomb.itcs2590.babylonlion .cars.*; import edu.macomb.itcs2590.babylonlion .trucks.*; public class InventoryApp { public …

Software Development java
Member Avatar for babylonlion
0
112
Member Avatar for miasuhyla

i don't know how to make it..but it is an assignment that must pass up on this sunday..can someone help me..its really important..it should applied array,object and classes...please help me...:( Suppose the weekly hours for all employees are stored in a two-dimensional array. Each row records an employee’s seven-day work …

Software Development java
Member Avatar for BhagatS
0
93
Member Avatar for rasheed1982

How To Find Max Of 3 Numbers Without Using Comparison Operators?

Software Development c++
Member Avatar for csurfer
0
132
Member Avatar for akulkarni

I wish to create an application using swing to update data to the database. I will need three buttons add, modify and delete. i have so far created JDBC connection with Ms acess. i have also created a textfield where i will enter data like this... [code=JAVA] import java.awt.*; import …

Software Development java java-swing
Member Avatar for akulkarni
0
251
Member Avatar for debasishgang7

hey all.... I already know C++.But now i want to make some GUI based application(like calculator....etc) with C++. I have decided to do that with c++ bcoz i think,application(.exe ) made by c++ is the one one which can be run without any kind of frame work installed in computer.(Example...VB.Net …

Software Development c++ gui vb.net
Member Avatar for Ancient Dragon
0
156
Member Avatar for RohitSahni

Hi All, I am writing a code in C++ to implement Login screen which will accept user name and password from the user. Now my main concern is to hide that password to be sceen by the user. suppose my password is "Rat420" so at the time of typing anything …

Software Development c++
Member Avatar for shashanderson
0
241
Member Avatar for StaticX

Hi, Im having a bit of trouble with a problem: Basically, I have an array with a set size,for example [CODE]my_array[40][/CODE] I am trying to figure out how to tell if it has less than 20 characters filled,and if it has more than 20 characters filled. I have tried the …

Software Development c
Member Avatar for Tom Gunn
0
150
Member Avatar for laidback7

Can anyone help me use a JLabel to display a stack??? I've been searching java.sun.com and I can't seem to find the right way to do it. I get errors every time. I think everything is right in my program besides this. Thanks for looking. Here's what I have: (Am …

Software Development java
Member Avatar for laidback7
0
182
Member Avatar for dernel4u

how do i write a vb code to develop an electronic case management system for a legal firm

Software Development legal visual-basic
Member Avatar for shashanderson
0
92
Member Avatar for riya123

hi guys!!!!!!!!!!!!! This is my first thread and i want a little help. Currently i m working in a project and my project is to replicate (copy one way only) records from a db40 database to a MYSQL database. Information will only be inserted into the db4o database. There will …

Software Development sql vb.net
Member Avatar for adrianoc
0
83
Member Avatar for th3learner

#include<conio.h> #include<stdio.h> main() { int a,b,c; clrscr(); printf("enter your first value:"); scanf("%d",&a); printf("enter your second value:"); scanf("%d",&b); printf("enter your third value:"); scanf("%d",c); if(a>b && a>c) { printf("first value is greater"); } else if(b>a&&b>c) { printf("2nd value is greater"); } else if(c>a&&c>b) { printf("third value is greater"); } getch(); Code runs …

Software Development c
Member Avatar for Gaiety
0
111
Member Avatar for Vdub.za

Hi guys, I am still a bit new to delphi and was wondering if someone can help me. I need to figure out how to write a search engine into an app i am writing in delphi. any help on how i may be able to do this would be …

Software Development delphi pascal
Member Avatar for Vdub.za
0
269
Member Avatar for Dan08

Me and Sravan953 have made a program called Py-Mailer; you all can find it in our first website. Visit [URL="http://h1.ripway.com/dan08/Team_Vaska.html"]http://h1.ripway.com/dan08/Team_Vaska.html[/URL], for more information and to download the program. The program works on Windows, and we are still trying to make it work on Linux. On Windows it's working perfectly and …

Software Development python
Member Avatar for Stefano Mtangoo
0
120
Member Avatar for amharper

I do not understand how to get modules to recognize variables that have been declared Public in the frmMain section. When I try to use a variable in a module, and the variable has already been declared as Public in the frmMain section, VB shows an error that says the …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
97
Member Avatar for culebrin

Hi, Is there any chance to get a visual basic 6 compiler for free? I mean, I have a vb6 project (made with the visual studio 6 IDE), but I have no IDE (visual studio 6 or something). Thank you very much. Omar

Software Development ide visual-basic visual-studio
Member Avatar for vb5prgrmr
0
348
Member Avatar for PDB1982

I'm trying to pick out whether or not a prime number is given by a user, when they input a number. This is what I have, but it' not working correctly....can anyone suggest anything? [code] #include <iostream> using namespace std; void main() { int n; while (true) { cout << …

Software Development c++
Member Avatar for JasonHippy
0
99
Member Avatar for PDB1982

I'm trying to figure out a way to create a program that has a user input a positive integer, and output a statement to the user that if the the number entered is 1 - "Number must be 2 or larger...Please enter another Positive Integer", 2 - "Number is an …

Software Development c++
Member Avatar for JasonHippy
0
518
Member Avatar for awa

Hi I was wondering if it is possible to process 2 different files with one function and store the strings/lines I'm searching for in different variables as for instance number1 for file 1 and number 2 for file 2. the code so far: [CODE]import string Name = raw_input("Filename ") infile …

Software Development file-system python
Member Avatar for awa
0
117
Member Avatar for lsbora
Member Avatar for nitin_rajurkar

Hi All, I have a typical problem. We have established product developed in ASP. Now I want to add security and access cotrol to upload directory and files. I could not find anything that can help me to write code in ASP. But in ASP.net C# and C++ there is …

Software Development asp asp.net cybersecurity microsoft-access
Member Avatar for nitin_rajurkar
0
227
Member Avatar for vinnijain

Hi !!! My project runs fine but sometimes it gives some debug error when I click keyboard keys very fast(randomly),backspace key ,delete key etc..... But the error do not occur always but it occur all of a sudden anytime. I do not know why I am getting this error. The …

Software Development
Member Avatar for sknake
0
92
Member Avatar for JavaOwnsMe

So they forced me to take java despite having no programming background... I'm a web design major, not programming. Anyway, I'm really stuck on the homework problem - if anyone could help me out that would be amazing. I need to write a program (using a loops) so that the …

Software Development java web-design
Member Avatar for ejosiah
0
87
Member Avatar for Nada_ward

hI ALL MEMBERS I need ur help my app saves the work of program in file , that file has extension .SSD how I can do this , and when I click on that saved file will open by my app ??

Software Development vb.net
Member Avatar for Nada_ward
0
84
Member Avatar for kustrle

Hello everyone! I have only one question. I want to make a simple graphical installation wizard application which will run or not run few other executables (lets say their names are firefox.exe, msn-installer.exe and skype_installer.exe) You will be able to decide which ones to run with checking or unchecking field …

Software Development c++
Member Avatar for kustrle
0
107
Member Avatar for JRabbit2307

hi guys i'm trying to get the sum, average, and the number of values in the array greater than the average... i am new to this and keep getting errors! helllpp.. [code=java]import java.util.Scanner; public class AverageArray { public static void main(String[] args) { final int TOTAL_NUMBERS = 10; int[] numbers …

Software Development java
Member Avatar for masijade
0
1K
Member Avatar for hello214

hi, im making a static float method and i couldn't figure out the error i'm getting: invalid method declaration; return required Is there anyone can help with this static calcTaxes(float grossPay) { float netPay ; if (grossPay <= 300) netPay = (float) (grossPay - (grossPay * 0.15)); if (grossPay <= …

Software Development java
Member Avatar for hello214
0
82
Member Avatar for JRabbit2307

I'm new to JAVA and I can't seem to get this thing down I might be totally off. But I need to do a withdraw and deposit method any ideas?? [code=java]public class Account { private int id; private double balance; private double annualInterestRate; private double withdraw; private double deposit; private …

Software Development java
Member Avatar for JRabbit2307
0
4K
Member Avatar for pocku

I've just started started socket programming so there's a few things I'm wondering about: I found a set of socket programming codes here: [URL="http://cs.baylor.edu/~donahoo/practical/CSockets/textcode.html"]http://cs.baylor.edu/~donahoo/practical/CSockets/textcode.html[/URL] And the thing I don't really get is here in TCPEchoClient.c: [CODE]while (totalBytesRcvd < echoStringLen) { /* Receive up to the buffer size (minus 1 to …

Member Avatar for nirveshverma
0
179
Member Avatar for pocku

I want to use the string class in my program but I keep getting the following errors: process.cpp:10: error: 'string' has not been declared process.cpp:10: error: prototype for 'Process:: Process(int, int, int)' does not match any in class 'Process' process.h:14: error: candidates are: Process:: Process(const Process&) process.h:16: error: Process:: Process(int, …

Software Development c++
Member Avatar for pocku
0
164
Member Avatar for Goalatio

Would anyone know how to get command-line arguments in NASM16? I am on a Windows XP. I have tried a great deal of things and spent much time searching for an answer to this. What I ment by command line arguments, something simple like this would be enough. Filename: Hello1 …

Software Development assembly
Member Avatar for Goalatio
0
3K
Member Avatar for shahab03

what is READ_FLT? any thoughts on the question? If a program employs a READ_FLT syscall to input the floating point value 999999999999.0, by how much would the value returned by the syscall differ from the actual value typed in? Explain the error, if any.

Software Development assembly
Member Avatar for wildgoose
0
118
Member Avatar for jcarlos.alvarez

Hi, I have 2 hexa arrays of 8 bytes and need to do an xor of them, something like this: [CODE=C] unsigned char xorBufferTemp[8]; unsigned char bufferHexas1[8]; unsigned char bufferHexas2[8]; [/CODE] I'd like to make something like that ... [CODE=C] for (i=0; i<8> i++) { xorBufferTemp[i] = bufferHexas1[i] ^ bufferHexas2[i]; …

Software Development c
Member Avatar for jcarlos.alvarez
0
190
Member Avatar for ENCHTERP

Hello I have created a 2d-vector I have no problems filing this vector. But the issue I am having is that I want to extract a specific row of this 2D vector (say the 2nd) and store it as a 1d vector. What would be the best way to do …

Software Development c++ storage
Member Avatar for VernonDozier
0
8K
Member Avatar for needhelpe

th program i made does not work!!! it should input an integer between 1 and 9. and then output a palindrome. for example if i input 5, the output should be 123454321. if i input 1, it should output 1. and so on... this is the program i made: #include …

Software Development c
Member Avatar for WaltP
0
116
Member Avatar for mauryoung

Question Write a program that accepts three even integers and determine the largest of the three numbers. The program should also compute the average of the numbers entered. The program should only compute the average and find the largest if all numbers entered are even. Note that the program should …

Software Development c++
Member Avatar for necrolin
0
116
Member Avatar for needhelpe

hello! I just made a palindrome. that inputs an integer between 1 and 9, and should output: for example if i imput 5 output :123454321 if i input 1 output: 1

Software Development c
Member Avatar for needhelpe
0
86
Member Avatar for program900

HELPPPPPPPPPPP!!!!!!!!! ANY CLUE WHAT I HAVE TO DO!!!!!!!!! In the NHL, players are often rated according to how many goals they score per game.In a regular season, the players play 82 games.If a player does not score in more than 7 games, they are often considered to be in a …

Software Development c++
Member Avatar for csurfer
0
125
Member Avatar for shopnobhumi

This is not running in Eclipse but ran in other jvm. Not sure if there is anything missing :( [CODE]import javax.swing.JOptionPane; import java.io.*; public class file1 { static int[][] number=new int[1000][1000];; static int row,column; public static void main(String[] args) { readFile(); /*for(int i=0;i<row;i++) for(int j=0;j<column;j++) System.out.println(number[i][j]); */ String result=""; for(int …

Software Development java java-swing
Member Avatar for shopnobhumi
0
93
Member Avatar for minex

Hi! I would like to know what's the way to convert a double to its char[8] (even better string) representation, and vice versa (Char[8] to double) i.e EXAMPLES -> 1.3e-15 (made up that number) In VS debugger you can cast double variables with ",s" to get their representation as string …

Software Development c++
Member Avatar for mrnutty
0
131
Member Avatar for Bluesilver

Hello! I'm a college student who is taking a beginners Java programming class. For the first time, I really need some assistance figuring out the latest assignment, which involves static methods. I have 5 such assignments, but I only need helping figuring out 1, because then I can do the …

Software Development java
Member Avatar for Bluesilver
0
141

The End.