199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kalaban

hello guys im new here so please be kind with me, please be patience cause Im new in PHP. now here's my problem I really miss-up my code. I want to create a form with 4 dropdownlist (diagnosis, cause, medicine, and treatment) this drop-downs are dynamic taking there items from …

Member Avatar for kalaban
1
500
Member Avatar for Srinivas0

write a program to accept the salaries of 10 employees from the user and display them in descending order for all the employees,if the user enters zero, the program should display the message"the amount should be greater than zero" and accept the value again. [CODE]#include <iostream> using namespace std; class …

Member Avatar for Srinivas0
1
542
Member Avatar for |-|x

Hi all Is anyone here familiar with coding in WolfCMS? I have been asked to add a form page to an existing website based on WolfCMS, but have little experience on the platform. For some reason my form doesn't seem to be receiving the POST data, or executing the processing …

Member Avatar for diafol
1
297
Member Avatar for see_bharath

Hi, I am a newbie in C and have this question with char pointer; [code=c] char * s = "hello world"; *(s+1) = 'a'; [/code] This is throwing a segfault error. Should'nt this work since I am modifying only one memory location. Also I have seen such code on the …

Member Avatar for Schol-R-LEA
1
307
Member Avatar for jacob21

I need Javascript validations of : 1. 10 Digits cell number does not start with 0 2. Valid E Mail Address and 3. 6 Digits Pincode

Member Avatar for Airshow
1
143
Member Avatar for mrbungle

Need help. I have a combobox (cmbCharge1) that gets populated by a text file. Inside the combobox, the data inside is laid out like this: 41-1A-1303: EXPIRED REGISTRATION Now, autocomplete works fine, if I start typing in the statute (like the 41 part). But what I need is for it …

Member Avatar for malhar1122
1
1K
Member Avatar for tricket_7

I am working on this visual studio 2008 calculator in c#. The calculator seems to be working, but when I created the Calculator Class, now it does not compute. I can click the number buttons, and they show up, but when I hit equals I just get a zero. Can …

Member Avatar for dynw
1
1K
Member Avatar for khizer03

hello i have two text boxes 1)username 2)Password i have a little confusion, when we execute the form by entering the username and password it will execute no problem but when we execute for the i want the same username should be written which has been used in the previous …

Member Avatar for M.Waqas Aslam
1
88
Member Avatar for Jay-Kandari

Greetings Forum Members, Let me Introduce myself. Hello I am Jay Kandari From India. I am a Student. I am basically interested in Web Development. Now I have started with PHP. Currently, I am building websites using scratch. Now it's time to jump to Advanced Development. so I started off …

Member Avatar for phorce
1
253
Member Avatar for coolfriends

Hey guys, I am working on this square deal problem that I cant figure out. This is the problem: Input for this program will be two positive integers entered from the keyboard via scanf. The first will be an odd integer N in the range of 3 to 15. N …

Member Avatar for 1qazxsw2
1
198
Member Avatar for DavidKroukamp

hi everyone, I am writing a small client and server application in java which uses SSL sockets and AES, i got this from the net and edited it a bit is this correct and secure? client: [code=java]/* * To change this template, choose Tools | Templates * and open the …

Member Avatar for DavidKroukamp
1
205
Member Avatar for rana.moeen

Hi Geeks, Here is code below, I wrote for multi file upload. This form takes a numeric value from previous page and print required form fields on this page. But when I write php code for upload it gives me errors. I use print_r($_FILES); but it returns an empty array(). …

Member Avatar for rana.moeen
1
170
Member Avatar for basukinjal

Ive made my binary tree in the following format [code=C] typedef struct node { int info; struct node *left; struct node *right; }*nodeptr; [/code] Im looking for a function that will accept the root pointer and print the tree in a graphical format. for eg. i want the output to …

Member Avatar for steve.lorimer
1
11K
Member Avatar for kaoss1103

I have just started programming in c++ (yesterday), my background is in HTML, CSS and Javascript. i'm on chapter 5: controlling program flow (c++ for dummies) currently creating a break in a "for loop". Anyway'z my problem is, when i build and run the program all action's i want the …

Member Avatar for v3ga
1
2K
Member Avatar for ssdeep

I have a hash %d,i want the top five valued keys.I did the following wich worked but is there anything more effecient? [ICODE]@p=(reverse sort{$d{$a}<=>$d{$b}} keys%d)[0..4];[/ICODE]

Member Avatar for ssdeep
1
212
Member Avatar for TheWickedKid

Hello... I'm practicing c++ and I'm trying to create a program with register and login in it.. the problem is I'm trying to compare the register username/password to the login username/password but even though the comparisons are right it's not working.. [CODE]#include <Windows.h> #include <iostream> #include <iomanip> #include <string> #include …

Member Avatar for Ancient Dragon
1
16K
Member Avatar for sara

hi.. can u help me calculate age using vb.net. i have txtage.text and txtdob.text. the format dob is 21.03.1978. and if txtage.text <35 it will in group 1, if txtage.text < 49 it will in group 2. the group in radiobutton. i've bee thinking this problem almost 3 days. please …

Member Avatar for bescobar
1
338
Member Avatar for Rajnesh

Dear all, Could you tell me how to go about executing MSDOS commands thru Java. I tried with the Process class but it gives an error:2. Could anyone please advise.

Member Avatar for stultuske
1
2K
Member Avatar for cip6791

Hi all, I'm doing some tests with ajax and php. The below code works when I load the page, but I would like to call it when I click a button. How can that be done? index.php: [CODE]<script type='text/javascript'> $.ajax({ type: "POST", url: "test.php", data: "name=name&location=location", success: function(msg){ alert( "Data …

Member Avatar for cip6791
1
16K
Member Avatar for |-|x

I was just about to post asking how to do this when I stumbled across the solution. All my research on the web suggests that the only way is to use stored procedures with an output parameter. Unfortunately, my queries are necessarily dynamically generated, and output parameters do not work …

1
108
Member Avatar for Silvershaft

Hey all! I am interested in learning to use sockets. make client and server program. Where should I begin? Thanks!

Member Avatar for PriyankaMV
1
155
Member Avatar for khizer03

how to write a programme for a list box having 10 items in that just by a single click on one of the item it should be written on the button if a list is containing notepad than by clicking on the button it should open the notepad please help …

Member Avatar for chriswelborn
1
168
Member Avatar for SureEM25

Hello currently I have started a project for my school. The project is a program that can factor a trinomial. So far I have it set up to take the users inputs. then it multiplies two of the inputs to get a new number. My problem is that i need …

Member Avatar for wallars
1
183
Member Avatar for KushMishra

Hello All, I have come up with a social networking website which should support chat functionality like Facebook. My intentions are as follows :- 1.It should be dynamic that is the chat window should appear only when any friend is online else it should remain hidden somewhere. 2.Could it be …

Member Avatar for adobe71
1
171
Member Avatar for camelNotation

Somebody told me that he could access c++ private data members without using the " Friend" type or public functions.He gave a source code and that was compiled in Turbo c++3.0 :-( May I post that here?

Member Avatar for tekbhatta
1
2K
Member Avatar for khizer03

how to link the form so that it should display as soon as the computer gets started and the user should not access any other thing first he has to attempt the form then after successfully he can acess rest of the other option the form will be containing user …

Member Avatar for adam_k
1
138
Member Avatar for pendo826

Hey im writing a program and i have countless errors. Im following tuturiols and i have no clue what has happened. Thats the list. Im screwed. can anyone spot anything to get me kick started into a functional game. 1>c:\users\conor\documents\visual studio 2010\projects\ca2\ca2\weapon.h(21): error C2590: 'load' : only a constructor can …

Member Avatar for gusano79
1
786
Member Avatar for slash16

want to do: [ICODE]dict = {'1': ['a'],'2': ['a', 'b', 'c']}[/ICODE] invert it to: [ICODE]inv_dict = {'a':['1','2'],'b':['2'],'c':['2']}[/ICODE] i know the one liner, if the dict was one to one, [ICODE]inverse = dict((d[k], k) for k in d)[/ICODE] can I modify this to work if it was not one to one? My …

Member Avatar for TrustyTony
1
2K
Member Avatar for aaloo

this is my as3 code which is sending variables to php [code] var myData:URLVariables = new URLVariables(); myData.firstName = "Kirill"; myData.lastName = "Poletaev"; var myRequest:URLRequest = new URLRequest("test.php"); myRequest.data = myData; myRequest.method = URLRequestMethod.POST; var loader:URLLoader = new URLLoader(); loader.dataFormat = URLLoaderDataFormat.VARIABLES; try { loader.load(myRequest); } catch (error:Error) { trace('Error: …

Member Avatar for aaloo
1
1K
Member Avatar for Rubinder singh

[CODE]void inorder(struct node *r) { if(r!=NULL) { inorder(r->left); printf("\t %d",r->data); inorder(r->right); } }[/CODE] in the above code when the last element is reached i.e r->left becomes null then when inorder(r->left) is called it will send a null value to the function and if condition becomes false so the it'll come …

Member Avatar for mikrosfoititis
1
169
Member Avatar for kgz

Hi, i have a project using basic inheritance to output shapes, but i would like to make it draw the shapes aswell. Does anyone know where i can find tutorials on how to draw shapes in dos using C++? thanks

Member Avatar for Fuseteam
1
5K
Member Avatar for nered

Hi, [CODE] package guiInt; import java.awt.*; import javax.swing.*; import javax.swing.tree.*; public class Init { public Init() { } void buildFrame() { JFrame window = new JFrame(); window.setTitle("Pos Setup Tool 0.1 Alfa"); window.setSize(800, 600); window.setResizable(false); JPanel sidebar = new JPanel(new GridBagLayout()); sidebar.setPreferredSize(new Dimension(250, 600)); sidebar.setBackground(Color.black); JTree tree = buildTree(); JScrollPane sidebar_placement …

Member Avatar for nered
1
136
Member Avatar for youvi

Hello guys, Am working on phonegap(jquerymobile) for an android application.I want to implement a map which shows a marker at a particular location and when i click on the marker,it should show a window and a description about the location inside the window..The below code is working when i run …

1
127
Member Avatar for markthien

Hi guys, is there any build-in function in C# that can detect if a string contain Chinese/Japanese character? This string may contain alphabet, numeric, chinese and japanese characters. Appreciate any advice please. Thanks in advance! Cheers, Mark

Member Avatar for toyumail
1
4K
Member Avatar for essentialc++33

The value for PI can be determined by the series equation PI=4x(1-1/3+1/5-1/7+1/9-1/11+1/13-....) write an interactive program that asks the user how manu terms of series equation to use in approximating PI. Then calculate and display the approximation. Here is a sample run: PI Approximation Program How many terms of the …

Member Avatar for raptr_dflo
1
4K
Member Avatar for deraad

I'm making a feature like stated in the title that gives suggestions based on what terms exist in the database; I have a working example below that works for one term. such as "oranges", or "yellow bananas". However, I need it to work for multiple terms so if my database …

Member Avatar for deraad
1
241
Member Avatar for vegaseat

Converting a decimal integer (denary, base 10) to a binary string (base 2) is amazingly simple. An exception is raised for negative numbers and zero is a special case. To test the result, the binary string is converted back to the decimal value, easily done with the int(bStr, 2) function.

Member Avatar for Gribouillis
1
7K
Member Avatar for omesanni

Hi, I am currently in my final year doing an eportfolio system as my final year project and this system will allow students to do things such as upload images, academic documents in say word,pdf files. Also it would allow students to set privacy issues to each document in their …

Member Avatar for cnwanjah
1
2K
Member Avatar for ktsangop

Hello everyone! I want to add a licence expiration feature in my application (written in visual c++). When the licence expires i would like my application to generate a random numerical key which will be sent to me by the user. Using this key and a personal key-generator i would …

Member Avatar for ktsangop
1
2K
Member Avatar for ali11

Hi i am looking for following output.I am not getting these. System.out.println(total no of grades) Number of A's Number of B Numbers of C Number of D number of F [CODE]import java.util.Scanner; public class ExamScores { public static void main (String[]args) { String a; int count= 0; String word; int …

Member Avatar for ali11
1
5K
Member Avatar for Amr87

Hello Everyone , I`m trying to build MVC pattern using OOP PHP , please read the rest of the post to understand what I want exactly This is the homepage controller which extends the main controller [CODE]class Home extends Controller { function __construct () { parent::__construct(); } public function index …

Member Avatar for Amr87
1
125
Member Avatar for Estella

Hi Masters... I want to hide folder or drive with vb6, but i don't have idea how to do this. any one know how to solved this? Please Help. Any suggestion will appreciated much.

Member Avatar for Lesbassnett
1
945
Member Avatar for limpek1991

Hi there. This is actually one of my assignment and i am having problem with the do while sentinel looping. The result i get is totally inverse from the one i expected. The system is supposingly ended when user enter 0, but it ended when user enter any value but …

Member Avatar for limpek1991
1
125
Member Avatar for im4tion

Hi. I was wondering if anybody could help me with a small problem. I would like to read a specific line from a txtfile and either output/delete it. Basically, I'm doing a program where a user inputs/view records and i'm stuck at searching it. My txtfile input from user has …

Member Avatar for santakdalai90
1
337
Member Avatar for Iphicles

Hi, can anyone out help me with my assignment which is to read an image file of a maze and find an exit of it. As I'm still kinda of new @ C programming, I'm having problems even reading the image onto C. Cheers Ming

Member Avatar for timetraveller92
1
481
Member Avatar for basharg

Hello guys, I need some help with a program that finds all the prime numbers from 2 to 10000,here is what I have so far [CODE] #include <iostream> using namespace std; bool prime(int n ); void main () { int n,b; b=0; for (n=2;n<=10000;n++) prime (n); if () { cout<<n<<endl; …

Member Avatar for basharg
1
135
Member Avatar for ddanbe

This is a series of 3 code snippets which together form a completly working "calculator". I used a console application in VS C# 2008, but 2005 should cause no problems. To start with : here you have the code for a scanner class. A scanner reads the inputline and tries …

Member Avatar for ddanbe
1
2K
Member Avatar for StephNicolaou

Hey guys, I've seen very limited examples out there about this unsupported function, however I am sure there must be a quick method to get this done with the Affine Transform ? Any ideas appreciated. Cleo

Member Avatar for mKorbel
1
4K
Member Avatar for Tech B

There isn't a whole lot here about security related stuff, so I figured I would post some work in progress. It is pretty well commented so following it should be pretty simple. The full story and reasons for doing what I did, and not another way can be found on …

Member Avatar for TrustyTony
1
375
Member Avatar for dilbert_here00

Hello ALL, I was wondering if there is a way to run a python program at windows startup, without running the script as a windows service? I have a python program which runs a bunch of functions & then sometimes restarts the computer. At startup I want my script to …

Member Avatar for dilbert_here00
1
5K

The End.