132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Oppression

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
Member Avatar for Oppression
0
93
Member Avatar for danholding

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 …

Software Development python regex
Member Avatar for TrustyTony
0
428
Member Avatar for Swift2

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
Member Avatar for Swift2
0
206
Member Avatar for Cameronsmith63

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
Member Avatar for makman99
0
169
Member Avatar for iammirko

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
Member Avatar for Ancient Dragon
0
333
Member Avatar for markdean.expres

Guys, is it possible to change the default text of the button of msgboxes? How?

Software Development vb.net
Member Avatar for codeorder
0
129
Member Avatar for HashIncludeDotH

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++
Member Avatar for HashIncludeDotH
0
1K
Member Avatar for satti

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
Member Avatar for satti
0
222
Member Avatar for jonhunter89

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
Member Avatar for Taywin
0
141
Member Avatar for JudeV

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
Member Avatar for divin757
0
764
Member Avatar for Khoanyneosr

[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 …

Software Development algorithm c++
Member Avatar for daviddoria
0
191
Member Avatar for lianpiau

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
Member Avatar for jonkx
0
168
Member Avatar for sirko

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
Member Avatar for Rynkadink
0
285
Member Avatar for desert564

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
Member Avatar for javaAddict
0
136
Member Avatar for MrHardRock

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
Member Avatar for MrHardRock
0
152
Member Avatar for purijatin

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
Member Avatar for purijatin
0
103
Member Avatar for Nony2007

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
Member Avatar for Nony2007
0
123
Member Avatar for Helmyano

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++
Member Avatar for caut_baia
0
110
Member Avatar for Glenner

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
Member Avatar for Taywin
0
223
Member Avatar for arun_taurean

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
Member Avatar for jnawrocki
0
1K
Member Avatar for RwCC

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
Member Avatar for Vengeful
0
233
Member Avatar for highflyer8

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
Member Avatar for Fbody
0
536
Member Avatar for IT_Student_604

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
Member Avatar for Mike Askew
0
198
Member Avatar for tempvbacct

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
Member Avatar for codeorder
0
109
Member Avatar for george61

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
Member Avatar for iammirko
0
403
Member Avatar for axman1000

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
Member Avatar for axman1000
0
216
Member Avatar for dustbunny000

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
Member Avatar for Gribouillis
0
103
Member Avatar for SourabhT

[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"); …

Software Development c c# c++
Member Avatar for SourabhT
0
160
Member Avatar for highflyer8

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++
Member Avatar for dkalita
0
265
Member Avatar for Joshua Kidd

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.

Software Development vb.net video
Member Avatar for Animal Mother
0
114
Member Avatar for badihi

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
Member Avatar for badihi
0
91
Member Avatar for nore

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
Member Avatar for nore
0
128
Member Avatar for ReaperUser101

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 …

Software Development delphi pascal
Member Avatar for ReaperUser101
0
90
Member Avatar for minimi
Member Avatar for Vindal

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
Member Avatar for Vindal
0
171
Member Avatar for markdean.expres

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
Member Avatar for Luc001
0
71
Member Avatar for Wheaties

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
Member Avatar for WaltP
0
228
Member Avatar for Arjun_Sarankulu

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
Member Avatar for Arjun_Sarankulu
0
124
Member Avatar for maybnxtseasn

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++
Member Avatar for mike_2000_17
0
116
Member Avatar for AODfan

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++
Member Avatar for AODfan
0
125
Member Avatar for afaque01

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
Member Avatar for vanzhyme
0
9K
Member Avatar for NOVICE3

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
Member Avatar for NOVICE3
0
403
Member Avatar for *Java*

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
Member Avatar for Ancient Dragon
0
294
Member Avatar for ashrafu1

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 …

Software Development app-store c++ ios
Member Avatar for ashrafu1
0
484
Member Avatar for chester1908

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
Member Avatar for chester1908
0
398
Member Avatar for failbot

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. …

Software Development algorithm c++
Member Avatar for arkoenig
0
85
Member Avatar for sdr001

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++
Member Avatar for sdr001
0
109
Member Avatar for WolfShield

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
Member Avatar for Taywin
0
396
Member Avatar for Puertorro

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 …

Software Development api java
Member Avatar for Puertorro
0
124
Member Avatar for d0csss

#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++
Member Avatar for Chilton
0
90

The End.