132,723 Archived Topics
Remove Filter ![]() | |
When realising the following operation: [CODE]do = 1.0 - 2.718281828**(-(23**2)/730) print do[/CODE] Python returns 0.632120558766 When you do it on the calculator or when google it, it returns 0.515509538 :-O Software Development mathematics python | |
Hi Here i have found macro code to extract URL from hyperlink(anchor tag) in MS Excel. This code is very useful to fetch the particular URL from the hyperlink by single click. No need to view the website to view and copy the URL. First in MS Excel go to … Software Development visual-basic | |
Hello, I just starting with C and I am having a problem that I canĀ“t understand. Here is the code: #include <stdio.h> #include <string.h> #include <stdlib.h> FILE *M; M=fopen( "m", "r"); char line [ 540 ]; long int i=0; struct estr_reg { char *molid; char *molc; }; struct estr_reg reg[6]; … Software Development c | |
Hello, please try to help the fresher i was a beginner in perl .but gave me critical work. my task looks simple!But not.i was trying for 4days. i have two text files each contain code in modules. my task i have to take module name from the user and search … Software Development perl | |
Hi, I have a java program with quite a lot of classes. I'm facing a problem with accessing some variables from another class. May I know how to I access it? Is it possible? Software Development java microsoft-access | |
The basic difference would be interface cannot have any method definition or variables declared while an abstract method can have them. Now what is the difference between an abstract class and an interface when they contain only the method signatures in them. In what situations will you use either of … Software Development java | |
hi guys, using a for loop i want to be able to pause it, display string in text box for 60 seconds then move to the next loop,change content of the string and display it again for 60 seconds.this should go on till end of count.i am currently using a … | |
I unable to find java softwares in net can you tell me sites downloading softwares like flash slide show maker, video editor, video converter for java in linux. | |
[CODE]import java.io.*; public class Test { public static void main(String[] arg){ Console console=System.console(); String chessPiece=""; int rowEnd=0; char columnEnd = ' '; System.out.println("what piece do you want to move?"); chessPiece=console.readLine(); System.out.println("where do you want to move it to?(type column letter)"); String input=console.readLine(); columnEnd=input.charAt(0); System.out.println("where do you want to move it … Software Development java | |
![]() | Hi all, I'm trying to create a method in [B]managed c++[/B] which will convert an int to a string representation of binary. I have done this in C# before, but I can't work out how to do it in Managed C++ Below is the code from my C# effort that … |
Does anyone know how one would be able to replicate photoshop's resolution option? I normally do not mess around with resolution.. but recently.. I changed the resolution value accidentally and had some pretty astounding results. For those of you who have never used photoshop before.. the resolution option simply increases … Software Development c++ | |
hi how are u am new in programing at all :confused: i have a code for a program that communecate with a DDe server this code need some modefication to complete it(need to include the System.IO namespace to use a StreamWriter and Add a using System.IO; statement to the other … Software Development client-server | |
I can do the pattern totally for * or number only but how to use both together for pattern? Here is the pattern i want to do. 0 * * 0 1 2 * * * * 0 1 2 3 4 * * * * * * * * … Software Development c++ | |
Hello everyone, i'm porting an application from C# to C++, and i find the syntax and all that of C++ rather cumbersome (though C/C++ was my first language). I have a very specific question, and another few more-or-less general ones. The specific question: In C#: [CODE] Bitmap image; BitmapData ImageData; … | |
Pls help me to convert a notepad to excel and then to access in vb6. Software Development visual-basic | |
Hi dears. I want make relation with gsm modem. my first goal and main one is sending and receiving sms. _then I want go front.for example for mms sending and ..._ I want to do it on a linux server. please introduce me a suitable modula with it's tutorial or … Software Development python | |
I keep getting this error and I can't figure out what is wrong. error C2227: left of '->capacity' must point to class/struct/union/generic type 1> type is 'int *' Here is the class header and declaration that I am working on. [CODE]#ifndef MYVECTOR_H #define MYVECTOR_H #include <iostream> //#include <sstream> //#include <string> … Software Development algorithm c++ data-structure queue | |
Hi everyone, How do I create a timer in Java? It's for a quiz I'm making and I want a time limit for each question. Software Development java ![]() | |
[CODE] import java.util.Scanner; class apples { public static void main(String args[]){ System.out.print("Hello, today I'm going to give you a quiz. \nWhat's your name?\n"); Scanner name = new Scanner(System.in); System.out.print(name.nextLine()); System.out.print(" Is a nice name.\nToday I am going to test your knowledge.\nLet's begin!\n"); int score = 0; System.out.print("Who is Bill Gates?\n1. … | |
Hey everyone, (Hopefully) a rather quick question. I'm currently trying to use regex to search a string for the location of the longest continuous match in a string where the *same* character keeps repeating. It doesn't matter which character it is, as long it is the highest number of consecutive … | |
#include <iostream> using namespace std; int main() { int firstNo;// first number is stored here int secondNo, int resultAdd,// variable for result when first number and second number are added int resultSub,// variable for result when first number and second number are subtracted int resultMult,// variable for result when first … Software Development c++ | |
Hello, I know this question might sound stupid! I am using recursion inside a loop. I want to stop the loop as soon as the method is called recursively and resume it again when the call returns. I am not able to do so. Do I need to lock the … Software Development java | |
Good afternoon, I'm working on a class assignmeent trying to use overloaded math operators + - but i'm getting the following error when I compile. Line 29 of the main program generates this error: Linker error undefined reference to 'TimeClass::operator+(TimeClass const&) any help is appreciated. Here is the code: TimeClass.h … Software Development c++ | |
hello guys i'm proud to join this community and be with you guys so i saw the sticky thread but i can't figure out what the best book i'm new to programming but i was reading a book called : starting out c++ early objects 5th edition and i already … Software Development c++ | |
I'm actually not even sure if this is possible. But I'm making a program just to help make checking gains/losses with the stock market easier for me. It's not real money just trying it out to see how I would do. But with the program, I'm just going to ask … Software Development c++ | |
Hey, Im learning assembler and have written as small test program. the aim of the program is to take a char input from the keyboard and compare it wit "A". This section of the program works. At the start of the program I want to output a message just to … Software Development assembly ![]() | |
Hi. I am creating a program for class that can be used to gather statisctical data about the number of movies college students watch in a certain time frame. I have to find the average, median and mode and show this in the output. I am able to get my … Software Development c++ | |
Hi This may seem pity stupid but I am somehow stuck in this: I have got a file containing years like this : 1913 1913 1917 1917 1917 1917 1917 1955 1955 now this is just a part of a file containing almost 50000 years. What I want to do … Software Development perl | |
Hi I created small application that can show images and do zoom, I want to create DLL file to import into my software with picturebox and all the property, how can I do it ? Software Development | |
hello friend s i am making the simple timer module which will display time in count down format as if user wnters 1 hour 3 mins and 30 sec so it will count in revers i have almost half code done but afer trying the all tricks and logic i … Software Development vb.net | |
im don't know so much english so im soory// try to understand. i made a browser// but alawys when i get into some websites its open some more pages in internet explorer page and its not good// i want that it won't open this pages at all or if its … Software Development | |
I wrote this simple program in C to generate binary search tree, but i am unable to go beyond level 0. Note that I have not incorporated the printing part. [code] #include<stdio.h> #include<malloc.h> struct node { int data; struct node *lc; struct node *rc; }*start,*link,*tmp; int a[100]; int main() { … Software Development c data-structure seo | |
here is my code [code]import javax.swing.*; import java.text.DecimalFormat; class method { private static void start() { JOptionPane.showMessageDialog(null," Area of a Circle"); String n = JOptionPane.showInputDialog(null,"Enter a Number"); int num = Integer.parseInt(n); DecimalFormat twoDigit= new DecimalFormat("0.00"); double form1 = 3.14 * (num*2); JOptionPane.showMessageDialog(null,"⦠is "+twoDigit.format(form1)); } public static void main(String[] args) … Software Development java java-swing ![]() | |
Hey there At the moment I'm working on a little project that will make my life a little bit easier. Nevertheless i need my application to read the memory from a proccess and then translate it into a label. Right now i got a Memory address that goes 1 and … Software Development | |
Hi I have a problem, i have designed a database program with vb6 and ms access. and the program is suppose to display specific records using datareport. eg ,display records of student whose fees are> 10000. But i dont know my way out. hope to get help from anybody.thanks in … Software Development visual-basic | |
I am working through Accelerated C++ and am on exercise 3-5. The question is:[QUOTE]Write a program that will keep track of grades for several students at once. The program could keep two vectors in sync: The first should hold the student's names, and the second the final grades that can … Software Development c++ | |
Hello DaniWebbers, How would I go about taking user input into a string? It is not allowing me to do: [CODE] #include <iostream> #include <string> using namespace std; int main() { string users_name; // Reserved for the users name (input) cout << "Enter your name: "; cin >> users_name; // … Software Development c++ | |
Hi, My java is really bad and I haven't had to use it in a few years but I want to make it better so I've decided to try building it up slowly but at the moment I'm a little stuck and was wondering if anyone could help point me … Software Development client-server java java-swing | |
Hi, i'm supposed to write a function, countGrade that takes in the Grade and find the number of students that have this grade. This value is returned to the calling program. The function prototype is int countGrade(char). Currently all i have written is this. Seem like there's something wrong with … Software Development c++ | |
Hello, it's been a while since I took my last programming class, and I must say I don't know how to do the following. I want to create a program that pulls data from a txt file and then lists that data. The data is simply C++ variable names, reserved … Software Development c++ file-system | |
Hey guys, I was wondering if anyone knows a good VB.net tutorial. I'm not a beginner programmer by any means, I have experiance in another .net language, C# but I have a course in VB.net next semester and wanted to get a head start. Any help you could give would … Software Development vb.net | |
Hello everyone, I am having trouble finishing my program. I am having the most trouble with the method, as described in my book, parseInt(char[]). I can't figure out what to do, I don't know how to properly write the method for this. I will include the entire program description for … Software Development java | |
Does anyone know the event that causes the carriage return animation to play? I would like to have the carriage return animation to play after clicking in a box.. that is not a textfield. Essentially.. I am attempting to create a custom text field. (In case you do not already … Software Development c++ | |
Hi all, I need to convert a char array to an int. But the char array has regular characters in them('A', 'B', 'C'...) and numbers. how would I omit those characters and extract the number, then store it as an int. any help would be great thanks. Software Development c | |
what is the difference between instance variable and methods and their counterparts,clas variable and methods? i understood that instance is other name for object but what i have undersood till know is that method is somewhat like function (but i could not understand the explaination given for this question in … Software Development java | |
[CODE]def nod(n): c,i=0,0 while n>0: c=n%10 if c!=0: i=i+1 n=n//10 print(i)#prints the number of digits in the given integer 'n' [/CODE] how to make it able to count 'zeros'? Software Development python | |
Once again I need help with my Java program. I am running out of time to complete this program and I accidently deleted what work I had done. I am going to try to edit this post with what I have tomorrow but until then I was hoping someone could … Software Development java | |
![]() | Hi I'm learning C++ as a beginner through the book "C++ Primer by Stephen Prata". I have just learned a bit about creating my own functions and I'm now doing some practice at the end of the chapter. The problem is I'm meant to make output of: "Three blind mice … Software Development c++ |
The End.