199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for b56r1

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

Member Avatar for pheininger
0
111
Member Avatar for livingsword

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 …

Member Avatar for vipinkumar512
0
746
Member Avatar for Amillia89

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

Member Avatar for Amillia89
0
201
Member Avatar for Ole Raptor

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 …

Member Avatar for AndreRet
0
160
Member Avatar for drewpark88

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 …

Member Avatar for pritaeas
0
108
Member Avatar for Usmaan

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 …

Member Avatar for Momerath
0
97
Member Avatar for valter

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 …

Member Avatar for Momerath
0
2K
Member Avatar for ccaatty

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,

Member Avatar for mKorbel
0
2K
Member Avatar for theUserMan

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 …

Member Avatar for jdelgado08
0
4K
Member Avatar for d3rck

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 …

Member Avatar for d3rck
0
110
Member Avatar for honey61399

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

Member Avatar for Pgmer
0
192
Member Avatar for william604

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 …

Member Avatar for diafol
0
200
Member Avatar for nyler01

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

Member Avatar for Shanti C
0
823
Member Avatar for reanopp

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 …

Member Avatar for Momerath
0
255
Member Avatar for Shantanu88d

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 !! :)

Member Avatar for Shantanu88d
0
221
Member Avatar for jamseyjames

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 …

Member Avatar for Gribouillis
0
108
Member Avatar for rjbrjb777

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

Member Avatar for rjbrjb777
0
2K
Member Avatar for rjbrjb777

hello, what book will you suggest me to read if i want to learn gui using c language.?

Member Avatar for rjbrjb777
0
96
Member Avatar for DoctorGiraffe

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 …

Member Avatar for ghimangi
0
185
Member Avatar for gl7

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

Member Avatar for gl7
0
148
Member Avatar for dspjm
Member Avatar for dspjm
0
1K
Member Avatar for dhruv_arora

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

Member Avatar for dhruv_arora
0
187
Member Avatar for luweegee

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 …

Member Avatar for floatingDivs
0
106
Member Avatar for systray

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

Member Avatar for happytogether
0
157
Member Avatar for leiger

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 …

Member Avatar for leiger
0
187
Member Avatar for WildBamaBoy

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.

Member Avatar for WildBamaBoy
0
109
Member Avatar for ana_1234

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 …

Member Avatar for ana_1234
0
597
Member Avatar for yellowfeet

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 …

Member Avatar for yellowfeet
0
295
Member Avatar for yamiyuka

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 …

Member Avatar for yamiyuka
0
598
Member Avatar for babbu

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 …

Member Avatar for Rinia09
0
123
Member Avatar for chester1908

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 …

Member Avatar for chester1908
0
563
Member Avatar for kaylee10

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 …

Member Avatar for Taywin
0
98
Member Avatar for burningflower

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 …

Member Avatar for Taywin
0
179
Member Avatar for theUserMan

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 …

Member Avatar for GunnerInc
0
175
Member Avatar for ntrncx

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() { …

Member Avatar for ntrncx
0
109
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
189
Member Avatar for raffiq_eddy

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 …

Member Avatar for raffiq_eddy
0
985
Member Avatar for tcollins412

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 …

Member Avatar for Taywin
0
231
Member Avatar for akase2010

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 …

Member Avatar for caut_baia
0
152
Member Avatar for flyingcurry

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 …

Member Avatar for quuba
0
287
Member Avatar for Howdydoody

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 …

Member Avatar for Howdydoody
0
113
Member Avatar for 24x24

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

Member Avatar for 24x24
0
257
Member Avatar for Karkalash

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 …

Member Avatar for VernonDozier
0
222
Member Avatar for sayakyi

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 …

Member Avatar for sayakyi
0
269
Member Avatar for Incubator

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 …

Member Avatar for WaltP
0
151
Member Avatar for yapkm01

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 …

0
142
Member Avatar for vavazoom

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 …

Member Avatar for mike_2000_17
0
194
Member Avatar for blahbla

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 …

Member Avatar for blahbla
0
431
Member Avatar for anirban1087

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

Member Avatar for SolidSolutions
0
167
Member Avatar for Usmaan

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

Member Avatar for Momerath
0
119

The End.