132,726 Archived Topics
Remove Filter ![]() | |
Hello to all. I am trying to get an aproximation of expodential of x, using the power serie expansion which is x to the power n over n factorial, with n approaching to inifinty. Now I am trying to get the value of expodential of 1 by passing to the … Software Development java | |
please bare with me as im a returning newbie and have not really used re.expression much and still get very confused! my problem! i am currently working on a few database records which need appending. this is one of the files i need to resort the data base has now … | |
I'm trying to create two for statements,but only one of them runs >.< it's supposed to obfuscate username AND passwords.. Also is there any way to simplify it rather than have two for statements..? The only difference in the second for statement is "Username" and "username" changed to "Password" and … Software Development python | |
I want to create my own media player, are searched google but im not really getting good resources, can anyone please forward me a good resource on where to start and what i need to know? Software Development | |
Hi, I am trying to learn winsock programming using online tutorials. This example is from the MSDN library, although modified. I have compiled it and it seems to be working fine for only one request. After handling a single request the server exits. I have read handling multiple request and … Software Development c client-server socket-programming | |
Guys, is it possible to change the default text of the button of msgboxes? How? Software Development vb.net | |
Hello, I am required to implement a 1D then 2D DFT on an image. The problem is, I can implement both 1D & 2D DFT on a 2D array and it produces the "right result" except: 1. my answer often floats in 0 i.e. [code] for(int u = 0; u … Software Development c++ | |
am facing an error 'Run time error:424 Object required, Private Sub Form_Load()iam highlighting the error in code below. [CODE]Private Sub cmdAddEntry_Click() ' add a new entry to our table. With DataEnvironment1.rsDataTable .AddNew !CodeNo = txtCodeNo !DealerName = txtDealerName !TruckNumber = txtTruckNumber !Quantity = txtQuantity !NetPrice = txtNetPrice !Commision = txtCommision … Software Development data-science visual-basic | |
who encounter this program in JAVA or NETBEANS pls help me to build the codes.. asap!!! [ATTACH]20007[/ATTACH] [ATTACH]20009[/ATTACH] [ATTACH]20010[/ATTACH] [ATTACH]20011[/ATTACH] [ATTACH]20012[/ATTACH] Software Development java java-netbeans | |
How Can I Bounce the ball everytime it hits the wall??? [CODE] using GDIDrawer; using System.Drawing; int iX = 0; //x ball position int iY = 0; //y ball position int iXVelocity = 5; //amount ball moves in x direction for every loop int iYVelocity = 5; //amount ball moves … Software Development | |
[CODE] #include <iostream> #include <ctime> #include <cstdlib> #include <string> #include <algorithm> using namespace std; //Types and Arrays string word[16] = {"GOLDFISH", "COMPUTER", "ANONYMOUS", "JACKET", "SHARP", "SERVICE", "EFFORT", "CHARACTER", "CHANGE", "WITHOUT", "PRODUCT", "UNFOLDING", "MUSIC", "MOMENT", "LIFETIME", "PROVIDE"}; // words that will be randomized. string hint[16] = {"Small colorful fish.", "A machine … | |
I want write a program to calculate cutting shape of foam. For example, a piece of big foam can cut to 3 different size of foam same thick and each can cut to piece in different thick. like picture below. how can i make calculation. It possible how can i … Software Development | |
How to make a program run only once. It could be any "hello world" program. It should say smth. (error, 2 console windows are not allowed) if the program is already running and shut down the second console window. (the first concole window should stay where it is) Software Development | |
spiral matrix for n*n order 1 2 3 4 12 13 14 5 11 16 15 6 10 9 8 7 . It is for printing a spiral matrix when n=5. It gave a correct output only for the elements on the sides. view sourceprint?01 class spiral_matrix 02 { 03 … Software Development java | |
Hey everyone, I am working with arrays, my program needs to take a list of 10 numbers and put them in each array depending on if they are even, odd, or negative. My program compiles but it does not run correctly it only displays 0 for each list. Thanks in … Software Development java | |
In a folder I only have 2 files. Main.java and ArrayQueue.class Main.java is the following: [CODE] class Main{ public static void main(String args[]) { ArrayQueue s = new ArrayQueue() }} [/CODE] But it throws an error stating the following: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\Main2.java:11: cannot access ArrayQueue bad class file: C:\Users\Jatin\Documents\NetBeansProjects\JavaApplication3\src\ArrayQueue.class class file has … Software Development java | |
Hi All, I am trying to read the SQL table and update null value with "1" and nonvalue with "0" as you can see in tables. To do this i have design i code that allow me to read the date and write to the text file but it seems … Software Development database-design | |
in the following code [CODE] class obj { protected: int somedata; public: obj (int x) {somedata=x;} }; [/CODE] i want to make another child class form this one and inherits the constructor plz help Software Development c++ | |
i need to input text in a textfield like accountbalance,withraw,deposit,and functions of "cancel","Enter","Deposit",Withdraw, and i need to give a receipt after the transaction. i need help you can add in my yahoomail <EMAIL SNIPPED> [CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.util.Scanner; public class ATM extends JFrame implements ActionListener { … Software Development java java-swing | |
Hi guys, I'm looking for AES equivalent inverse cipher...Has any one worked on it.. I need a c code for it ... please it's really very urgent.. Software Development c encryption | |
This seems to come up every so often, so thought I would add it here so people can have a look if they search the site. Reading and writing to a text file is a very basic thing in C#, most of us have to do it from very early … Software Development | |
Compiling the following the class in the main program returns error C2784. What could be causing the problem? [CODE]#include <iostream> // Include input/output stream #include <cmath> class threevector { public: double xcoord, ycoord, zcoord; // Default constructor threevector() { xcoord = 0.0; ycoord = 0.0; zcoord = 0.0; } // … Software Development c c# c++ file-stream | |
im having problem og this code... [CODE]txtTimeOut.Text = Format(Now, "h:mm:ss tt") constr = "UPDATE tblDTR SET EmpName='" & txtName.Text _ & "', Date_in='" & Format(Now, "MMMM d, yyyy") _ & "', Time_in='" & txtTimeIn.Text _ & "', Date_out='" & Format(Now, "MMMM d, yyyy") _ & "', Time_out='" & txtTimeOut.Text _ … Software Development vb.net | |
I'm doing a project that requires me to create a book ordering form. I have the books displayed in a listbox named bookselectionlistbox, and when a book is selected, it displays the price of that book in a label named bookpricelabel1. I have a button named addbutton that allows the … Software Development vb.net visual-basic | |
Here is code for hexagonal and pentagonal numbers. I need type that stores something bigger than 10 billion. Double works fine to about 8.4 billion. Of course I tried using long long and unsigned long long but it's still not working. Please repair this code because it overflows now matter … Software Development c | |
I will get an Excel 2003 file everyday via email. This file has 5 columns. The first for columns have static headers and text in them. The 5th column is the date of the report and below that is a list of values in the same column, followed by an … Software Development microsoft-office sql vb.net visual-studio | |
I'm writing a code to minimize a function and I'm having problems storing the new move. [CODE]import math import random #minimze the function: def f(x): return math.pow(x,2) + math.sin(10*x) x_list=[] energy_list=[] g=2 #starting position def move(): #Generate a random move random.uniform(-0.5,0.5) def energy(): h=g+move() #generate random move E = f(g)-f(h) … Software Development python | |
[CODE] #include "stdafx.h" #include<iostream> using namespace std; class Base { public: virtual void fun() { cout<<"base"<<endl; } }; class Der:public Base { public: void fun() { cout<<"Der"<<endl; } }; void func(Base b) { b.fun(); } int _tmain(int argc, _TCHAR* argv[]) { Base b; Der d; b.fun(); d.fun(); func(b); func(d); system("pause"); … | |
I have seen the following in a abook: "The argument(s) of a method can be any type of object (as long as its class has been made available to the program), as well as the predefined default types of variable. For example, methods in our three-vector class are not limited … Software Development c++ | |
Hello, I have a little question about Screen Video Capture. Does anyone know What the best SDK for video capture is, WME Sdk? or do I even need an SDK. | |
Hello there, I'm not very professional in socket programming. I open a socket to the client and when connection succeed, I try to send a file. I read the file from the disk buffer by buffer and write this bytes on the NetworkStream object. Client receives this information from NetworkStream … Software Development socket-programming | |
Hello all! I want to make label beside label/etc. For example, after i clicked button then label appear beside its button , and after 5 second / less, i want to make the new label dissapear / erased . Visual Studio, vb.net Thanks Before :) Software Development vb.net visual-studio | |
Hi people , I have an easy question(but lack the knowledge in Delphi), I have a piece of code that i want to run but don't want to type it over for every time it has to be run (not very good coding then). Is there a way i can … | |
I need to be able to loop and get information for up to 10 "BankAccount" arrays, but when I use less than 10 it gives me garbage and I don't know how to fix it. Here is my Code. [CODE]#include <iostream> #include <iomanip> using namespace std; class BankAccount { private: … Software Development c++ oop visual-studio | |
I have been seeing a number of applications where the shortcuts for their buttons are just a single Alphanumeric key. I was just wondering if I could also do that in my applications. My button labeled Open for example, will be triggered if the alphanumeric key "O" is pressed. Is … Software Development vb.net | |
I'm not sure what the technical term for this is, so that's why I left the title as general as possible. So, I'm trying to write a program(in C) that will basically allow me to "customize" the size of an already defined array. This would be something done at the … Software Development c | |
My solution contain the app.config file which contains some key with corresponding values. When i am building the solution in the visual studio its runnning fine when m running the same appliction(.exe) on other machine its not taking value from config file giving [B]JIIT[/B]error 'object reference not set to an … Software Development visual-studio | |
im wanting to make a class called Log. with the template as follows class Log { private: std::ofstream outputFile; SYSTEMTIME systemTimeBuffer; public: Log( std::wstring error1 ); Log( std::wstring error1, std::wstring error2 ); Log( std::wstring error1, std::wstring error2, std::wstring error3 ); Log( std::wstring error1, std::wstring error2, std::wstring error3,....... ); ......... ........ … Software Development c++ | |
The program is supposed to pull in data from an input file and sum numbers and not exceed 1000 and then stop, but it seems that my code is making it not calculate properly, it is less than it is supposed to be, but doesn't add to what is present. … Software Development c++ | |
Hey Every1.. Plz Tell me how can i access The Value In form1 in form2... Well i meant In Form1 theres an object named NUM in which i have Stored Few values Now i want to use this Object NUM in form2 so that i can display its value in … Software Development vb.net | |
I am still struggling with my first program in C#. I need to first select a file from a directory, second, open the file, and third load an array with the contents of the file. This array will later be used to send bytes to an external device (a test … Software Development | |
how can I run an external program like ( word , notepad ,... )In C ? and how can I set a certain size of the window of the external program like ( 300 * 300 ) ? Software Development c | |
hello me and my friends were assigned to make a program that can add,delete,update and show information. we were able to make this code ( am sending u ) but we cannot solve some problem like the after adding or deleting or any other work the window does not goes … | |
Heyz all.Im working on a program to add,sort,search etc contact struct (name last name number..).So i add structs and i sort them with qsort (i print the result,they are sorted).I have problem using bsearch(),it keeps returning NULL (so i see printed "not found"). The error must be something with the … Software Development c | |
Hello, I am creating an implementation of LIST that displays a list of 4 elements and also displays them in reverse. It seems to be correctly displaying the first list but I am getting a segmentation fault error before it displays the reverse list and I am not sure why. … | |
Hello. I am trying to figure out why my program has an infinite loop :/ The program asks a user how many digits they want their numbers to be and then the program needs to print out all binary numbers for the user inputted digits. For example: User inputs 3 … Software Development c++ | |
Okay, I'll just post my code and see what you guys can make of it. I'm getting the error that the 'main' class could not be found, but as you can see I have it in the code. Thanks for the help! [code=java] package macey; /** * @author Mike */ … Software Development gui java java-swing | |
Hey guys, my Professor want us to come up with this code: Create a class called Student. This class should have the following twelve private data elements: String studentName String studentEmail String studentLocation int projectGrade1 int projectGrade2 int projectGrade3 int projectGrade4 int quizGrade1 int quizGrade2 int finalExam int participationGrades This … | |
#include <iostream> #include <cmath> using namespace std; class Rectangle { public: int width, height; Rectangle(); ~Rectangle(); double r_area(); double r_perimeter(); }; Rectangle::Rectangle() { width = 1; height = 1; } Rectangle::~Rectangle() { } double Rectangle::r_area() { return (width * height); } double Rectangle::r_perimeter() { return (2*width + 2* height); } … Software Development c++ |
The End.