199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for xraaz

you have a coin bias so that each toss produces heads with probability P and tail with complementry probability Q=1-P. Assume that each toss of a coin is independent from previous tosses: the probability of getting head at any given tosses is exactly P, regardless of previous outcomes. unfortunately we …

Member Avatar for darkagn
0
89
Member Avatar for daniweb2013

Hi, I want to make media player with VB. the problem is when i lunch components window, there isnt any item called Microsoft Multimedia control 6 What should i do?!

Member Avatar for daniweb2013
0
103
Member Avatar for tonyf

Hi Does anyone know how to create a tip of the day dialog for VB 2005. the examples that I've found so far do not work. Tony

Member Avatar for waynespangler
0
171
Member Avatar for danarashad

Please help I have been trying to insert a timestamp field into a DB. But to no avail. Here's my code. I am using a hidden field. <input type="hidden" value="<? echo date("m-j-y g:i:s A"); ?>" name="time" /> Then on my action page, I do the following. $stime=$_POST['time']; then my insert …

Member Avatar for shovels
0
83
Member Avatar for KimJack

Hello all, I have a text file with columns of words Boat Car Van Sue Bird Hue Billy Don Yoe... How do I read each separate column into separate arrays. Array 1 will read: Boat Sue Billy Array 2 will read: Car Bird Don... Any suggestions on how to accomplish …

Member Avatar for KimJack
0
121
Member Avatar for spankyg

[code] [COLOR=green]#include[/COLOR][COLOR=green]"stdafx.h"[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<cstdlib>[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<iostream>[/COLOR] [COLOR=green]using[/COLOR][COLOR=green]namespace[/COLOR][COLOR=green] std;[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] tmain([/COLOR][COLOR=green]int[/COLOR][COLOR=green] argc, _TCHAR* argv[])[/COLOR] { [COLOR=green]// Let's Declare Variables[/COLOR] [COLOR=green]int[/COLOR] Num_Pegs; [COLOR=green]// Total number of pegs to a side[/COLOR] [COLOR=green]int[/COLOR] Hold_Und; [COLOR=green]// Hold underscore location[/COLOR] [COLOR=green]// User Enters Number of Pegs[/COLOR] cout <<[COLOR=green]"Enter Number of Pegs:"[/COLOR]; cin >>Num_Pegs; [COLOR=green]// Array to create a …

Member Avatar for spankyg
0
138
Member Avatar for cwarn23

I am a complete newbie to c++ and I am trying to find some tutorials. What I am trying to do is use a variable (from external text file) to rotate a 3D object. Then for the program to take a picture of the position the 3D object is in. …

Member Avatar for Ancient Dragon
0
108
Member Avatar for schwarznavy

Greetings from Japan. I'd like to display a few RSS feeds from other web sites on my web site in a tabbed box, where each tab signifies a feed from each of those sites. I'm trying to keep the Web site as simple as possible to make our site as …

Member Avatar for MattEvans
0
106
Member Avatar for therohanz

I got this requirement wherein i have to program the different cpu algorithm namely FCFS, SJF and Round Robin..but i dont know how to make a round robin.. please help me with it..i need it tommorow:( here's my requirement..Link: [url]http://www.4shared.com/file/24492109/a3069b64/ALGO.html[/url] if there is a problem with the link please contact …

Member Avatar for therohanz
0
107
Member Avatar for Xsaintx

I have an assignment due tomorrow, my professor hasn't taught the class much of anything other than what other careers there in the programming field and how other careers differ from programming. He hasn't been of much help at all and I'm at a total loss of how to start …

Member Avatar for Salem
0
98
Member Avatar for dumboo

Hello I need help in converting char * to TByteDynArray in Borland C++ Builder. Below code is suppose to work but it give me EAccess Voilation error. [code=c++] char *one = "test"; TByteDynArray two; two.set_length(sizeof(one)); Move((void *) one[0], (void *) two[0],sizeof(one)); [/code] This kind of code work in delphi and …

Member Avatar for Salem
0
1K
Member Avatar for andrewktmeikle

Hey, i am having trouble with a project i have for school. The problem is as follows: I have one database(access), and it contains the specifications for 3 PC's( will be more but not atm), i have added a column stating the specification of the pc. I have an adodc …

Member Avatar for jireh
0
202
Member Avatar for Oblique

I am currently enrolled in a course doing OO with C++ at college. I have been assigned an assessment where using Visual Studio and DirectX, create a game of basically any sort of difficulty but I must use all aspects of OO. I have an idea of what game sort …

Member Avatar for MattEvans
0
117
Member Avatar for thirunavukaras

Hai.. i have Problem with Treeview control...... i am developed one web application... i am have many aspx page in this project..but all page undercontrol with treeview .. i am alreay download the IE Web Controls from microsoft site.. I build the batch file then automatically created "Microsoft.Web.UI.WebControls.dll" ("C:\Program Files\IE …

Member Avatar for rmaheshmsc
0
104
Member Avatar for hisdudeness300

hey everyone, im new, and i have a simple question. im writing this basic code for my class to input six different check amounts, then give the total and average. so far i have it so it works perfect with whole number. the only problem is, the numbers i need …

Member Avatar for spankyg
0
76
Member Avatar for veronicak5678

i am new to programming and am trying to do a weird assignment. Here are my instructions: There is a drive-thru Car Wash that offers different services. 1) Regular Car Wash 2) Super Car Wash 3) Super Dooper Car Wash 4) Quit The fee for each one of these services …

Member Avatar for veronicak5678
0
108
Member Avatar for Geek-Master

I am running Ubuntu and compiling my C++ code using g++. For some reason I can't get it to compile my source code using VOID MAIN. It is always telling me that I must use INT instead. This isn't life threatening, but I was just wondering if g++ just doesn't …

Member Avatar for spankyg
0
191
Member Avatar for bluebird

Hello! I am trying to add new data into a database. What is the mistake in my code? I got the error message such as "general error". [code] import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; public class AddRecord implements ActionListener{ private ScrollingPanel fields; private JTextArea output; private Connection connection; …

Member Avatar for masijade
0
111
Member Avatar for starjsjwars

Hey can anyone tell me how to make a program that i can have a cmd in the cmd to exacute over and over waiting 1 minute each time?

Member Avatar for starjsjswars2
0
159
Member Avatar for nedwards

Hi, I'm working on this project and it requires to manually control a digital camera. I have the dll that is supplied by Cannon, but the dll is unmanaged the the demo project they have with it is in C++ or C. I've been doing a lot of research and …

Member Avatar for nedwards
0
193
Member Avatar for Robin_Dragon

How do you read values from a file you created, to print it in an array to create a frequency?

Member Avatar for Robin_Dragon
0
149
Member Avatar for bdude

I'm used to pythons [inlinecode]'string' in var[/inlinecode] to determine whether a string is found in another string, how can I replicate this in PHP?

Member Avatar for bdude
0
113
Member Avatar for jonathan.jbkt

I have a php email form that is giving me greif. It is sending blank messages. Could anyone take a look at the code and help. It would be greatly appreciated. contact.php [code] <script LANGUAGE="JavaScript"> function Validate(form) { if (form.name.value == "") { alert("Please insert your name"); form.name.focus(); return; } …

Member Avatar for jonathan.jbkt
0
123
Member Avatar for Duki

Hey guys, I keep getting a link error in my code. It says this: [code]1>prob4.main.obj : error LNK2005: "private: static int HotDogStand::totalSales" (?totalSales@HotDogStand@@0HA) already defined in prob4.func.obj[/code] Here's my code, maybe someone can help me out. [code]#pragma once #include <iostream> using namespace std ; class HotDogStand { public: HotDogStand ( …

Member Avatar for Duki
0
92
Member Avatar for Rashul

Hi. Please help. I can't seem to get this program to run. Tips.java Modify the exercise shown below so that it will loop, calculating a new tip each time until the user enters a value zero or smaller for the amount of the bill. Make sure there is a nice …

Member Avatar for Rashul
0
104
Member Avatar for ceyesuma

[code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] package db; import java.sql.*; import java.sql.DriverManager; import java.sql.Connection; /** * * @author James */ public class DBConnection { static String dbdriver; static …

Member Avatar for ceyesuma
0
134
Member Avatar for Dell XPS

I have made some(10) combo boxes in my project!!! i need to make them depend the one on the other... i mean if the first combobox is a car brand (e.g Ferrari) then the second combobox must only contain ferrari models! is there a way to hide the rest selections …

Member Avatar for Dell XPS
0
110
Member Avatar for kohuke

I have a program that will find the certain ammount of fibonacci numbers. And now i have the question which is the best code for counting time in fibonacci algorithm? I have to find out how many numbers can my algorithm count in 1 minute? the code: [code]//rekursiivne algoritm public …

Member Avatar for kohuke
0
154
Member Avatar for argonaut

:icon_smile: hi all!! i am a newbie in this forum. can u solve me the problem of interchanging/swapping the value of two varibles without using the third variable... thanks..

Member Avatar for Salem
0
77
Member Avatar for chris53825

Hey guys, I'm trying to make a linked list in C++ such that: it creates a node for each student in a classroom, AND that each student has it's own 4 nodes for their 4 test grades. I've created two structs - studentNode, and gradeNode studentNode containing "name" and "*next" …

Member Avatar for Narue
0
124
Member Avatar for MxDev

hi guys, i wonna to code simple program that could control the system threads in the system by block or start a new job, how to do this in java, or from where i can start to acheive this. thx,

Member Avatar for ksaxena
0
77
Member Avatar for xraaz

function C(fl, k) if k 0 or 1< = n then return 1 elsereturn C(fl—1,k—1)+C(fl—1,k) Analyse the time taken by this algorithm under the (unreasonable) assumption that the addition C(fl — 1, k — 1)+C(fl —1, k) can be carried out in constant time once both C(fl —1, k —1) …

Member Avatar for xraaz
0
80
Member Avatar for random7

I did vector calculation like blow. Here I just use 2 vector addition C =A1+A2 But, now I want to add many vecters like A1+A2+...+A35 Is there any simple method beside ( I don't want to type continuously like A1,A2,A3,A4.....A35) ex) void sum(vector<long double>& C,const vector<long double>& A0,const vector<long double>& …

Member Avatar for vijayan121
0
134
Member Avatar for plusplus

I need help with sql statement that includes two tables one table has id and name, lets call it tbluser second table has id and all other info, lets call it tblinfo Something like this Select id from tbluser where name = txtname Select * from tblinfo where id = …

Member Avatar for plusplus
0
106
Member Avatar for xraaz

how much time this algoritham takes in theta notation a <---- 0 for i <------1 to n do for J <........ 1 to i do for k <-------j to n do a = a+1

Member Avatar for Rashakil Fol
0
232
Member Avatar for SurviBee

Was compiling homework problem with Dev-C++ and got ]Linker Error] undefined reference to determinant(float, float, float, float, float, float, float, float, float) Anyone know what this is? [code=cplusplus] #include <iostream> using namespace std; float determinant(float, float, float, float, float, float, float, float, float); int main() { float x1, x2, x3, …

Member Avatar for SurviBee
0
229
Member Avatar for Duki

is there a way to make this: [code] If dvdRadioButton.Checked = False And vhsRadioButton.Checked = False Then MessageBox.Show("Format not specified", "Unspecified format", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) dvdRadioButton.Focus() End If If movieTitleTextBox.Text = "" Then MessageBox.Show("Movie title not entered", "Movie Title", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1) movieTitleTextBox.Focus() End If[/code] throw a single error message …

Member Avatar for matale
0
115
Member Avatar for chait_anya

hi... am using access 2003 databse in my application. i want my databse to be on the 1 pc in the LAN. and my application created in c# will be on the all machines in the LAN. So in that application i have made connection string as " Provider = …

Member Avatar for chait_anya
0
197
Member Avatar for Icetigris

Hey everyone. This is pretty lame of me having to do this, but I haven't done Java for about a year and this algorithms class I'm taking assumes we remember all the details. Anyway, I'm trying to implement a method from an interface in another class's main method. Here's the …

Member Avatar for jtonic
0
135
Member Avatar for Pro2000

Peace, I made a mail form and I want to enable The HTML in the Mail Message, How can I do it?... I wrote in the headers: $headers='From:Management<[EMAIL="info@3malas.com>'"]info@3malas.com>'[/EMAIL];

Member Avatar for Pro2000
0
121
Member Avatar for Pro2000

I saw a chat prog on the Internet The web page shows the messages quickly without reloading the web-page... Can anybody do that or teach me how to do that?

Member Avatar for alpha_foobar
0
197
Member Avatar for chait_anya

hi I found from the net that COM exe(OutOfProc server) is used to convert the existing exe. is it means that we can change our apllication's exe to COM exe. is it possible to change our application's exe into COM exe? Also can we use databases while using ATL COM …

Member Avatar for chait_anya
0
105
Member Avatar for AllenN

Just finished going through C in easy steps and reading C in Jensens and now I am going on to C++ and as I am a slow learner and I need to understand before I can learn or do things, it suddenly hit me while reading and doing Schildt C++ …

Member Avatar for AllenN
0
209
Member Avatar for wicked357

First if I choose A it take the qty and the only number and shows it as the largest. I believe the smallest works correctly but not sure since I get a warning message about it. The warning messages I get are: [code] loop.cpp(67) : warning C4700: uninitialized local variable …

Member Avatar for Rashakil Fol
0
125
Member Avatar for mujahid_zfr

How to execute sound codes in C++ by using external speaker? Could someone please give example code for me(The basic one)

Member Avatar for Sturm
0
56
Member Avatar for Rika

hello all, Im trying to dynamically insert text onto a page by inserting a value from a query string using php. This was simple enough when i wanted to insert the entire value, but im having trouble finding information on how to search the value for a word (from a …

Member Avatar for Eko
0
117
Member Avatar for SiPexTBC

Okay what i want to is make a program that when you input text into the textbox and click submit it inputs that same text into a textbox on the website. For example i want the text from my program to put the text into my web proxy so that …

Member Avatar for SiPexTBC
0
72
Member Avatar for mimsc

any suggestions...my "weatherState" value doesnt seem to be passing over: 1st jsp: [code]<% Vector theStates = WeatherDAO.getWeatherStates(); %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </script> <body> <TR bgColor="#ffffff"><TD COLSPAN="2"> <TABLE CELLPADDING="3" CELLSPACING="2"> <TR><TD> </FONT></CENTER><BR> <BR> <TABLE BORDER="0" CELLSPACING="5" CELLPADDING="5" WIDTH="100%"> <TR BGCOLOR="#C0C0C0" ><TD COLSPAN="2" ALIGN="CENTER"> <FONT SIZE=+3><B> …

Member Avatar for aniseed
0
146
Member Avatar for rjmiller

ok, I have a list of numbers and i want to return values in a range that are not in the list of numbers... I'm thinking of something like this: [ number for number in range(1, 10) if != nums ] However, This always prints all the numbers in that …

Member Avatar for rjmiller
0
102
Member Avatar for wicked357

I have to take my current code which displays a menu and repeats until the option 'c' is chosen which quits the program. Now I have to modify that same code to include a function for both A and B. The function for A should have the quantity of numbers …

Member Avatar for wicked357
0
123

The End.