199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jed_1

Okay, so I've gotten my second project in C++ and this seems pretty extream for a second project to me, but I'm determined to get this working. so my teacher suplied two header files (set.h and bingoball.h) our job is to take those files and program a bingoball.cpp and a …

Member Avatar for Jed_1
0
550
Member Avatar for cussel

hy all, how to compute eigenvector from array bellow? I am confused in make nested loop and temporary for compute eigenvector please help me!!! $data = array( array(1,-0.52836,0), array(-0.52836,1,-0.19845), array(0,-0.19845,1) ); $data2 = array( array(1), array(1), array(1) ); echo "<pre>"; //print_r($data2); echo "</pre>"; for ($i=0;$i<count($data);$i++) { for ($j=0;$j<count($data[$i]);$j++) { $R2[$i][$j] …

Member Avatar for cussel
0
252
Member Avatar for charishma

Simply by interchanging the numbers in printf I.e, 8. printf("before swap:First Var.=%d\tSecond Var.=%d\n" ,i,j); 9.printf("After Swap: First Var.d\n" ,j,i);

Member Avatar for Ancient Dragon
0
260
Member Avatar for Xen_1

Hello, i just made this program to push the '5' button repeatedly when I hold the 'f12' button and this works just fine but i have a question! When I run this program while I'm playing super mario bros this program does not work! I use the 5 button to …

Member Avatar for Ancient Dragon
0
211
Member Avatar for manel1989

hi every one! i have 2 applications one on eclipse and the other on VS2010C++, so i want to send parameters from the java code to the other, i just konw how to execute the c++ code from the java code. what i want is this : send paramters from …

Member Avatar for manel1989
0
324
Member Avatar for caswimmer2011

Hey all! I am in college doing a speech on programming and one of my topics is to explain the difference between Java, C, and Objective C. I have been programming with Java for 3 years now and just started with C last month, but I don't know the differences …

Member Avatar for Dani
0
458
Member Avatar for Stein102

Can anyone recommend me a good Data Structure and Algorithm book for java programmers? Possibly intended for game development, but not required to be. Thanks.

Member Avatar for prakash.seetharaman
0
115
Member Avatar for hmx7

A GPA, or Grade point Average, is calculated by summing the grade points earned in a student’s courses and then dividing by the total units. The grade points for an individual course are calculated by multiplying the units for that course by the appropriate factor depending upon the grade received: …

Member Avatar for hmx7
0
790
Member Avatar for Violet_82

Chaps, I run into a strange problem today for the first time. Basically I have a web page that users can print using a print button on the page itself, but what I want is them to be able to print a print-only version of this page. So, I wrote …

Member Avatar for Violet_82
0
263
Member Avatar for lewashby

(Linux) In the following code all I'm trying to do is open a file but evertime I run this script the fopen function jumps right to the die() function. Any ideas? The file accounts.txt does exist in the same directory, and I also tried refrencing the file via ./accounts.txt . …

Member Avatar for lewashby
0
167
Member Avatar for shrikanthnk

hi kindly help me here..... i have written code like this to display **hi** when page gets loaded. please correct it this code so as to display message. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#b").load(function(){ alert("hi"); }); }); </script> </head> <body> ......... ...... .... </body> </html>

Member Avatar for JorgeM
0
128
Member Avatar for fafa70

hi. i am working on a project to find colors. i've stucked in finding purple color. i've used many application for finding color ranges and i've tested many numbers. i am using cvInRangeS function. i really appreciate if someone helps me. thanks.

Member Avatar for ben25x
0
547
Member Avatar for bishop_kv

hi again :) i have problem with finding cyrilic words in my txt file...words in txt file are arranged like this: one један two два three три etc... before word "one" and after word "један" there is blank space... so problem starts in button3_click... what ever i type in texbox3 …

Member Avatar for bishop_kv
0
205
Member Avatar for PerplexedB

Consider my method : static public function mysqldate($c,$f = 'd-M-y'){ // date is supposed to be in dd/MMM/yyyy format. // returns a date in mysql form try { $result = "'" . DateTime::createFromFormat($f,$c)->format('Y-m-d') . "'"; } catch (Exception $e){ $error = "error in mysqldate <br />" ; $error .= "date …

Member Avatar for PerplexedB
0
133
Member Avatar for chrisschristou

hello my Daniweb friend i'm trying to get data from database where only users is connect so i user this code i get a errot on navigator i got this errot on navigator : Parse error: syntax error, unexpected '=', expecting ',' or ')' in /homepages/0/*/htdocs/domainname.com/*/*.php on line 145 this …

Member Avatar for chrisschristou
0
105
Member Avatar for chrisschristou

hello Dear friend i can't explain cause i dont' know why, i'm using the code below to insert data into a myql table but i work fine ust today i get a error colum subtotal can't be null... i' have try too much thing but still same i delete the …

Member Avatar for chrisschristou
0
223
Member Avatar for LokiSoliman

so, we have this school assignement in which we are asked to make a program that would ask you to enter two integers, them the program should add the two integers and all the even integers between them. example: integer1: 1 integer2: 10 (1 + 10 + 2 + 4 …

Member Avatar for Ancient Dragon
0
164
Member Avatar for techxaidz

What is the code or what is the simplest way (with explanation, because im a little bit confused) in making an android application automatically adjust it's screen size layout depending on the android device used?

Member Avatar for peter_budo
0
377
Member Avatar for bourisly

am new student to c++ and am taking this course , I faced a little problem solving my assignment question .. this is the question..... to write a program that reads in 5 whole numbers and outputsw the sum of all the numbers greater than zero , the sum of …

Member Avatar for AndrisP
0
202
Member Avatar for patk570

I have a database and I have 3 different values that I want to count, to say that You have x amount of tickets open. I am created an array $array = array( 'Pending', 'Waiting on parts', 'Waiting for customer response' ); and a query string $result = mysql_query("SELECT COUNT(*) …

Member Avatar for diafol
0
184
Member Avatar for xNeverLetGo

Everything is coming out except for the average, what am I doing wrong? #include <iostream> #include <string> #include <iomanip> using namespace std; int main() { string ssnumber; int exam1 = 0, exam2 = 0, exam3 = 0, final = 0,count = 0, sum = 0; int average1 = 0, average2 …

Member Avatar for Ajit_2
0
335
Member Avatar for Farhan_4

Hello everyone I have a task to generate 300 random particles in a 2-D plane ( 1 x 1) The steps are given as : 1. Generate two numbers 2. Scale them to max dimension 3. Repeat 1 and 2 in a 'for loop' to generate 300 particles ans store …

Member Avatar for Farhan_4
0
367
Member Avatar for lena1990

hi all i have log file with size over 45GB and more than 110 million lines and it is stored in server i want to read the file from the server and insert it to an oracle database in another server but it takes along time so is there is …

Member Avatar for JamesCherrill
0
190
Member Avatar for ztdep

Dear friends: I compile my procedure with mpicc, it can give correct execute file. mpicc -o testprint testprint.c libptools_ppf.a But when i compile it with mpic++, it gives me some error about undefined reference. Could you please help me out. mpic++ -o testprint testprint.c libptools_ppf.a testprint.c:25:31: warning: deprecated conversion from …

Member Avatar for rubberman
0
399
Member Avatar for shrikanthnk

Hi All, Below code gives me exact result which I want.. output gets displayed at div # result which is as per design. Now i wouldlike to know is there any method to display result in textbox? if so please help me. <html> <head> <script type="text/javascript" src="jquery-2.0.3.min.js"></script> <script type="text/javascript"> { …

Member Avatar for diafol
0
585
Member Avatar for chrisschristou

hello friend i just wanna learn if a way exist to generate AUTO_INCREMENT i have my datble and the colum ID is an AUTO_INCREMENT and the id is from 1, 2, 3 .... i would like to diferent id for exemple : CC13445356 i want 2 letter at begin or …

Member Avatar for chrisschristou
0
195
Member Avatar for venkyb47

The following code used in productlist.php // some code manipulation to generate new values $filetodownload = 'DoubleClick to run.txt'; $filehandler=fopen($filetodownload,"w"); fwrite($filehandler,$generatedValue); fclose($filehandler); header('Content-Description: File Transfer'); header('Content-Type: application/octet-stream'); header('Content-Disposition: attachment; filename='.$filetodownload); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($filetodownload)); ob_clean(); flush(); readfile($filetodownload); header('Location:druglist.php'); After file downloaded page …

Member Avatar for venkyb47
0
3K
Member Avatar for YumnaZia

this is my code, the only problem I'm facing is that the jseperator is not appearing! import java.awt.event.*; import java.util.*; import javax.swing.*; import java.awt.*; public class AdmForm extends JFrame{ Container con1= getContentPane(); Container con2=getContentPane(); JFrame f2= new JFrame(); JButton b1= new JButton("Click me!"); JSeparator sep= new JSeparator(SwingConstants.HORIZONTAL); AdmForm(){ setSize(300,300); setLayout(null); …

Member Avatar for JamesCherrill
0
127
Member Avatar for pardeepkhatri

i have 4 pictureBox which are hidden, and now i want to show them one by one, how it can be done?????

Member Avatar for deceptikon
0
276
Member Avatar for Adzz

have to create a number of controls equal to a number entered in a textbox by the user. I created a web user control, which has a radio button list. Then when the user press a Submit button, I want to check the selected values of the controls created dynamically, …

Member Avatar for vivek07088
0
3K
Member Avatar for PriteshP23

Hello, I would like to solve form validation and filename problem. Here is my code: /************************** Step 1: Select Cell************************************/ if(isset($_POST['SmartPhone'])) $checked1=$_POST['SmartPhone']; $form->add_checkbox('SmartPhone','SmartPhone',$checked1); if(isset($_POST['Apple'])) $checked2=$_POST['Apple']; $form->add_checkbox('Apple','Apple',$checked2); /************************** Step 2: Select Model************************************/ if($_POST['SmartPhone']==false and $_POST['Apple']==false) { $this->add(new error('<span style="color:red">Select your cell..!!</span>')); $this->step1(); return; } if(isset($_POST['S4'])) $tech2=$_POST['S4']; $form->add_checkbox('S4','S4',$tech2); if(isset($_POST['iPhone 5'])) $tech3=$_POST['iPhone 5']; …

Member Avatar for andreiviziru
0
421
Member Avatar for mheja

please help me to do with my system. i want my txtempid.Text is auto generated evrytime i will add new employee . Field = "emp_id" i'm using vb 6 as ADODB and Mysql database thanks in advance...God Bless

Member Avatar for MEENAU
0
638
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Member Avatar for kal_crazy
0
285
Member Avatar for Alessandrorenzi
Member Avatar for Alessandrorenzi
0
184
Member Avatar for anup.maverick

Hi, I want the vb.net code(asp.net 2.0) for validating multiple email address in a textbox(multiline). Life is the only God....OSHO Thanx - Anup

Member Avatar for bru moses
0
1K
Member Avatar for HunainHafeez

what's the difference between these two actually ? Requesting page for the first time (or hitting enter in address bar) gives Ispostback = fasle but when i refresh my page then it sets isPostback = true, why ? it should not do like this for refreshing ?

Member Avatar for JorgeM
0
172
Member Avatar for prateek_chandra

Hello, I am just a beginner and I need some help. Can anyone please provide me an article on PHP.

Member Avatar for veedeoo
0
83
Member Avatar for CodyOebel

Ok so this is the code. hEdit=CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD|WS_VISIBLE|ES_MULTILINE|ES_AUTOVSCROLL|ES_AUTOHSCROLL, 50, 100, 200, 100, hWnd, (HMENU)IDC_MAIN_EDIT, GetModuleHandle(NULL), NULL); ok so that creates the asset (our edit field to type into). I can use the below code to display what is in the text box in a message box. LPWSTR buffer[256]; …

Member Avatar for Ancient Dragon
0
220
Member Avatar for toneranger

Hi, Imagine a vector of structures with each structure containing various variables. struct Data { double x double y double z } vector<Data> Dataset vector<Data>::iterator it //input some data from a file into DataSet How can I iterate over this vector, comparing say, x at the nth row to the …

Member Avatar for toneranger
0
309
Member Avatar for shrikanthnk

<?php SESSION_start(); if(!isset($_SESSION['email'])) { echo"access denied"; exit; } else{ $email=$_SESSION['email']; include("menu.php"); $num=$_SESSION['num']; $date=date("Y/m/d"); } ?> <html> <head> </head> <body> <div style="position:absolute; top:143px; left:292px; width:999px; height:244px; background-color:pink; border-radius:15px;"> <table> <form enctype="multipart/form-data" action="" method= "POST"> <tr><td>Document Type:</td><td><select name="doc_type" > <option value="police report" selected="true">Police report file</option> <option value="medical report">Medical report file</option> <option value="purchase …

Member Avatar for shrikanthnk
0
171
Member Avatar for klemme

Hi all, I am trying to lay out a plan for my classes, and havent godt the most experience in oop yet. I am using an abstract class, to be able to have a more clear overview and keep the project easier to manage. SO: I have created two abstract …

Member Avatar for diafol
0
330
Member Avatar for devianleong

This is my code : for($i = 0;$i<$count1;$i++){ echo '<select name="attribute['.$i.']">'; while($parent = mysql_fetch_array($query)){ //echo $parent['Name']; echo '<option value="'.$parent['ID'].'">'.$parent['Name'].'</option>'; }//while $parent echo '</select>'; }//for loop My problem is why the output like this?: <select name="attribute[0]"> <option value="2">Colour</option> <option value="3">Size</option></select> <select name="attribute[1]"></select> Why this line does not contain the both option …

Member Avatar for devianleong
0
237
Member Avatar for johmny

hello to all the members which one is better php or asp.net to create the dynamic website

Member Avatar for diafol
0
152
Member Avatar for Sam R.

I need to know how to remove spaces from a string using pointers in C++. Since I'm in senior year in school I'n not used to quite complex programming. I tried doing this program but I think I'm totally hopelessly terrible wth pointers (I was out sick, the day my …

Member Avatar for NathanOliver
0
1K
Member Avatar for mmcdonald

I've focused my night on better grapsing authentication security and believe I have made good progress. To date I have simply relied on SHA1 hashing and prepared statements - not much, right... So I knew it was time to pick up some new skills. What I came across was very …

Member Avatar for diafol
0
294
Member Avatar for giovannitao_1

Hello, I'm working to cellphones spec script. Now I want to create a sidebar with several checkboxes that filter result using ajax. Someone can help me to create this?

Member Avatar for giovannitao_1
0
110
Member Avatar for gahhon

How do i compare the months from database where my database records are stored in date format (12/12/2013) Ignoring the days. For example This Month `12/08/2013` Next Month `12/09/2013` if both are match, i will return my true else false? protected void renewCurrentBudget() { Boolean renew = true; DateTime nextMonth; …

Member Avatar for gahhon
0
429
Member Avatar for Jason_6

Im completely new to programming, and this is my problem. For example, if a train travels 40 miles per hour for three hours, the distance trav-eled is 120 miles. Design a program that asks the user for the speed of a vehicle ( in miles per hour) and how many …

Member Avatar for Jason_6
0
397
Member Avatar for EXTRA_RICE

How can i send an email from vb6.for example my driver’s license will be expired in a month. I want my vb6 to send an email to notify me about the expiration. Anyone can help me? Thanks in advance.

Member Avatar for SaRa Ahmad
0
303
Member Avatar for PerplexedB

So I 1. downloaded the odbc drive from the oracle site, "Connector ODBC 5.2" 2. created a user datasource that tested successfully in ODBC Datasources Administrator 3. created a new db in access 4. External Data->More->odbc database->Link ..., selected the datasource i created and got "ODBC - call failed" Data …

Member Avatar for 1stDAN
0
324

The End.