199,114 Archived Topics
Remove Filter ![]() | |
#include<stdio.h> main() { int a=10; printf("%d %d %d\n",a=10,a=20,a=30); } o/p: 10 10 10. Here, the latest value is updated and printed as the expression statements separated by commas in funtions are evaluted from right to left. But, in below program by using global variable or static variable why the updated … | |
hi, im a beginner. i hav an assignment on Pascal's triangle. i saw some post over the topic but couldnt get it to work with my code. heres what i have done so far.... [code=c] #include<stdio.h> #include<conio.h> void main() { int a[10][10]; int i,j,c,n; clrscr(); printf("Enter how many lines do … | |
hye...I'm having a problem to retrieve data from Jcombo Box... the combo box have a list from A-Z..for example when the user pick 'A' from the list,it will get all the A% data from MySQL this is the code that i have right now.[CODE]JButton Edit = new JButton ("EDIT SYNONYM"); … | |
Hello, I am having an issue with my legacy app saving files to Windows 7 machines. My first thought was that I would just run the program as administrator but that helped none. I have attempted saving this image to the temp folder and to appdata but neither seems to … | |
Hey Guys, I have downloaded the [url]http://www.swis.nl/ga/[/url] google analytics class and it is working just fine. It shows a graph of things like pageviews and visitors in a graph per day. What I want is just a solid number like: Visitors Last 30 days: 1,2043 | Visitors This Month: 1,434 … | |
Pardon me for not having an appropriate title. I'm making a program which seems to be working so far - but, I've stumbled on a bit of a tricky dead end. Basically, If I have a string or char variable, say: [CODE]string input = "H";[/CODE] And I have another string … | |
Hi, I am trying to combine two arrays to a multidim one. I have two int arrays stat[] and indexes[]. So the first looks like this 34,56,78,etc holding hundreds of numbers. The second looks like this 0,1,2,3,4,5 etc. I want to end with a multidim array like this 34,0 56,1 … | |
Basically, I have a panel containing a bunch of buttons. I'm trying to add some keylisteners to the buttons and/or the panel so that when I type the corresponding keys on the keyboard, the buttons will be clicked. Any idea how to to do this? Thanks, | |
As title says Just trying to read in values and store them in an array Then call print function to print them out As of now the program works, but only prints out the last value entered and the other outputs are 0's here is the code... %include "asm_io.asm" segment … | |
Hi everyone, I strongly believe that this topic will not just help me but everyone else using php. My question is how to manually change the settings where in the storage of the sessions is set to the database tables that we will create in the phpmyadmin (mysql)? I have … | |
I am new in vb.net please help. [CODE]Public Class Form1 Private Sub RichTextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles RichTextBox1.KeyPress RichTextBox1.Text = " Not available " RichTextBox1.Select(RichTextBox1.Text.Length, 0) End Sub End Class[/CODE] I want this code to pass not available like" Not available Not available Not available " … | |
Hi im new to php, so can some body help me out with this code? "Parse error: syntax error, unexpected $end in E:\EasyPHP-5.3.2i\www\Survey\register.php on line 79" [CODE]<html> <?php if (isset($_POST['button'])) { if ($button) { // get data $username = $_POST['username']; $password = $_POST['password']; $retypepassword = $_POST['password']; $email = $_POST['email']; if($username … ![]() | |
Hi Guys. Please help me.. I am familiar in passing form values to another page using submit button.. But what i need now is to pass the values of the form using the href link. please help me. thanks a lot. <form name="pass" action="validate.php" method="post"> <input type="text" name="Form1"> <a href"revalidate.php">revalidate</a> … | |
I know this sounds like a common topic, but hear me out :) I'd like to make my application a trial version. I don't have any problems with *how* to do it (disabling certain application features after set number of days, etc), but rather how to do it as foolproof … | |
Hi, I am writing a web site in vb.net. I need to show javascript confirm box before data is inserted. so if cancel is pressed program flow stops, otherwise data is inserted. quick help will be much appreciated !! :) | |
so i am trying to write a code that takes is a function for defining Amino Acids. This function takes in a sequence and translates it into mRNA (DNA= ATCGATCG, mRNA= AUCGAUCG) i have no problem with this. The one problem I am having seems like the simplest part of … | |
hello all, following is the code that fetches required columns from r.csv and makes a new file. now i want to ignore first line of r.csv while fetching defined column . what should be done? [CODE] #include <stdio.h> #include <stdlib.h> int main() { FILE *in, *out; char ch; char *rdf,*wdf; … | |
hello, what book will you suggest me to read if i want to learn gui using c language.? | |
Hello! Can anyone give me a tip on a fairly good serial code system for my software, i obviously don't want to store the codes in the software(unless that's what you ussualy do) I want to be able to hand out a certain serial code and when they enter it … | |
hey, kind of new to c++ started working with functions and am trying to write program using them trying to make hangman game using functions, with my following code i am getting this error message [linked error] undefined reference to 'askGuess()' id returned 1 exit status [build error] [ number5.exe] … | |
the same as tiltle. is that exit() just end the function and abort() end the program? | |
hey, i started learning javascript programing n i wrote this simple code to test, it isn't working, here's the code :- [CODE]<script type="text/javascript"> { function mltest() { var fnmae=document.myForm.fName.value; var mName=document.myForm.mName.value; var lName=document.myForm.lName.value; var rtxt; rtxt="Your full name is : "; rtxt+=fName; rtxt+=mName; rtxt+=lName; var finalName=""; document.myForm.finalName.value=rtxt; } } </script> … | |
i have a forum wherein a user can create a topic,delete and edit a topic. and i have a admin panel that can delete a topic,edit and locked a topic or closed. I'm done in delete,edit and create what I'm looking for is how can i lock the topic if … | |
Hello, I want to ask how to retrieve the value of javascript variable in PHP, like this: [code]<script type="text/javascript"> var data = "12345"; </script> <?php $phpVar = $data; ?>[/code] thanks | |
Hey everyone, Usually when I create a Java application I will use the built-in Preferences class to save user preferences. I believe this saves user information to the registry on Windows, and to other locations on Linux / Mac OS X. When I need to store a serialised object, I'm … | |
Just as the title says, how can I detect double clicking in a ListView? I'm trying to emulate browsing through a directory with windows explorer. | |
Hello, I am working on an assignment and I am so stuck and I have no clue how to get out. We are giving a maze and we are to find start and finish of the maze. The code is interpreted as giving the "walls" of the cell by looking … | |
Hi, I've finished fixing a website for a client. However, he has a form that is not validating and I'm not exactly sure why. Here are some of the errors - Missing Fields Your form located at does not work because you forgot to include the required "rec_mailto" field within … | |
I am working on a text based game for my class. Its not required, but I want to have a health system. I'm trying global health, but I keep getting an error. I want to make it so you have a base health of 100. After the battle it will … | |
Hi, I am using vs 05 and access 07. I would like to export the data in the datagrid to an excel file preferably in excel 2007(i.e. .xlsx). I have found this discussion on daniweb [url]http://www.daniweb.com/forums/thread211651.html[/url] however i get an error [CODE] Excel.Application app = new Excel.Application(); [/CODE] Am i … | |
Hey hombres. I feel a bit embarassed to ask something so simple,but i need help with qsort. As you will understand,im trying to sort my table made of "catPage" structs,which are read from keyboard,comparing the lName strings. First i print the struct array unsorted,then sorted,but what i see printed is … | |
I have been interested in Java for a while but I am having trouble finding a platform to use. When I started c++ a few years back we had bloodshed and visual studio. My question is what is the best platform for a Java beginner? I would prefer a free … | |
Hello people, I seem to be having executing and compile a program. I am using a jar file and i was told to put the jar file on to the library. The jar file is htmlparser.jar I have placed on to the java build path. But i keep getting errors … | |
I wrote this code to get a standard deviation from inputs that are stored in an array. I outputted all of my inputs and they are correct, and it's subtracting the mean correctly, hoever when i hit the check flag(if counter is equal to zero) i get a floating point … | |
i write a program that goes as follows a part of it is: [CODE]#include <iostream> using namespace std; const int size=8; const int plus[]={1,2,3,4,5,6,7}; const int minus[]={-1,-2,-3,-4,-5,-6,-7}; int vertical(int[][size],int&,int&); int horizontal(int[][size],int&,int&); int diagonal(); int main() { int board[size][size]={}; int accesibilityboard[size][size]={}; int currentrow=3; int currentcolumn=4; int counter=0; } int diagonal() { … | |
Hi friends, In one of my project I had a text box and I want to store its content to database. I blocked mysql injection with "mysql_real_escape_string" command. But I need to add some formating button in that field. ie italics, bold, font size and link field. From a site … | |
Dear ajax expert, [URL="http://www.w3schools.com/php/php_ajax_php.asp"]http://www.w3schools.com/php/php_ajax_php.asp[/URL] Refer to the link, using the sample, I'm able to use php ajax to populate 1 text box which I've already pre-define (not using "echo '<input type='text'..") -- the info came from a table e.g. Search: [jo ] Name: [John doe] sql --- select name from … | |
i am submitting a form in javascript and i want it to submit on key press submit, but it wont work. here is my code: [CODE] <script type='text/javascript'> function login(evt){ if (evt){var keyCode = evt.which ? evt.which : evt.keyCode;}else{keyCode='';} if ((evt == '')||(keyCode == 13)){ if (document.forms["login"].email.value=='') { alert('You must … | |
I truly don't understand what this assignment is asking, and this is it design a simple linked list class with only two member functions and a default constructor: void add(double x); boolean isMember(double x); LinkedList( ); The add function adds a new node containing x to the front (head) of … | |
So the assignment is to make a Rock Paper Scissors Spock Lizard Player that plays against another student's player without using any Random generation for 100000 trials. We are supposed to be able to detect the patterns/sequences in the other player by storing their past moves and looking for any … | |
Hey guys i could use some clarification as to how this is done. Most if not all examples i have seen have the class written above the main in the same cpp file. My professor says we should have it in a different file so it can be reused by … | |
Ok, I have three main tasks. One: I need to create a 2 dimensional array that is 8x8 and consists of randomly generated numbers that range from 0-3. I'm assuming the Math.random will be used inside of a for loop with a limit set for length(8) and range(0-3) somehow? Two: … | |
Hiya I'm relatively new to data structures and using push_back. I'm trying to build a small dictionary program that assumes that there is no words (and definitions) in the dictionary when you first launch it. What I then need to do is ask for a word then definition to start … | |
Dear All, I have a question again with my very old PHP project code(it was very dirty code) :-). It is a simple Dictionary Search program. Currently when the Search Data not found in the mysql database, it just show the blank result. How can i add some String for … | |
How can i read some number from a text file and then go back to read some other information? All i know, is read it from the beginning to the end, but even when i check something for ex if(fgetc(in)!=...) goes forward one character, and all this messes up my … | |
I'm newbie to JSF and i am confused on this portion written by Cay Horstmann in the Core Java server faces: ======================================================================================= The code: [CODE]public class QuizFormBean { private UIOutput scoreComponent; private UIInput answerComponent; // PROPERTY: scoreComponent public UIOutput getScoreComponent() { return scoreComponent; } public void setScoreComponent(UIOutput newValue) { scoreComponent … | |
Hey, I am writing a program that takes the size of an nxn matrix [A], randomly creates that matrix, as well as an nx1 matrix [S], multiplies them together to create [A]*[S]=[B]. Then, using Gaussian Elimination, I use matrix [A] and [B] to find [x] such that [A]*[x]=[B]. I can … | |
hi i have a lab to do and i'm stuck on how to start a method i have 10 coins and i want to write a method that tells me the fewest amount of coins needed to add up to 100 - 1 dollar coins are randomly generated - values … | |
Hi, I am working with PHP. I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched from mysql table. I can have a drop down, but in a drop down , … | |
Hi guys, Sorry the title is vague. Couldn't come up with one. Ok so I have a int variable which is, let's say, of the value 5. Now I want to create a string which contains underscores, so: "_____" the amount of underscores is the same value of the integer. … |
The End.