199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

index.php [CODE] <form action="proseslogin.php" method="post" name="login" target="_self" id="login" style="style.css" title="login"><br /> user : <input type="text" name="username" id="username" /> <label>password: </label> <input type="text" name="password" id="password" /> <label> <input type="submit" name="Login" id="Login" value="Login" /> </label> </form> [/CODE] proseslogin.php [CODE] <?php //function function periksa ($username, $password){ if (($username=="user") and ($password=="123456")){ return true; }else{ …

Member Avatar for davy_yg
0
276
Member Avatar for themarval

I have created a header file and a main.cpp file in Visual Studio C++. I have the concept down but i'm not sure that my program is written correctly as it is failing with teh following error; error C2447: '{' : missing function header (old-style formal list?) I want to …

Member Avatar for themarval
0
158
Member Avatar for hopper24

#include <iostream> #include "Invoice.h" using namespace std; int main() { string description; double price; int quantity; cout << "Enter the description: "; getline(cin, description); cout << "Enter the unit price: "; cin >> price; cout << "Enter the quantity: "; cin >> quantity; cout << endl;//a new line //create an …

Member Avatar for hopper24
0
206
Member Avatar for J_17

I got this program below, but the fgets function did not work... What's wrong with this? [CODE]#include<stdio.h> main() { char name[30]; FILE *fp; fp=fopen("c:\\file.txt","a+"); printf("enter name:"); fgets(name,50,fp); return 0; }[/CODE]

Member Avatar for gerard4143
0
92
Member Avatar for javaNooblet

Hi All, I was having trouble with getting my program to display all the necessary conversions. Here is a snippet of the code to help explain what I want to do: [CODE] private class CalcListener implements ActionListener{ public void actionPerformed(ActionEvent e){ String centInput, inchInput, meterInput, yardInput; double cent, inch, meter, …

Member Avatar for NormR1
0
4K
Member Avatar for edchem9

Hello guys i need your help to finish my project in computer programming so guys i need your help problem: the new telephone company has the following rate structure for long-distance calls: a. The regular rate for a call is $0.40 per minute b. any call started after 6:00 PM(1800 …

Member Avatar for Taywin
0
157
Member Avatar for aldeene

[CODE] Public Structure TMProduct <VBFixedString(25)> Public productline As String <VBFixedString(25)> Public hinban As String <VBFixedString(25)> Public shortcode As String <VBFixedString(25)> Public fusible As String Public nutcount As Integer <VBFixedArray(11)> Public nuts() As Integer <VBFixedString(512), VBFixedArray(11)> Public tips() As String End Structure [/CODE] in VB6 the length of this structure is …

Member Avatar for aldeene
0
616
Member Avatar for pritesh2010

hi can any one tell me how to call webservice through json query here is my code. i want pass two variable and i want to get the result of that methos say Add methos of following service. for webservice [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using …

Member Avatar for nakor77
0
148
Member Avatar for robdb

I've created a list of strings and load a text file in it. once list is created, the program have to read it, do something and write results in a new text file. [CODE] ofstream f; f.open("filename.txt"); string key; list<string> text; static char ALPH[21] = {'A','B','C','D','E','F','G','H','I','L','M','N','O','P','Q','R','S','T','U','V','Z'}; int* index_t = new …

Member Avatar for raptr_dflo
0
534
Member Avatar for neemo6

Ok im exhausted and just want to go to bed and this has been frustrating me for the last 45 minutes. This method needs to include a check for a 10 digit number from the acctNum and then parseInt but im just brain locked as to where to even put …

Member Avatar for Taywin
0
128
Member Avatar for Zssffssz

Ok how would I make a program take one file (thats not a text file) and save with a different name like there is a file with asdf.7z and I want the program to save a copy of it as qwer.7z how? And is there any way to do something …

Member Avatar for raptr_dflo
0
154
Member Avatar for FoxSpirit

[COLOR="PINK"]Hai guys, How can I make my application to extract files inside .rar/zip archive in application.startupPath directory!? ty:*[/COLOR]

Member Avatar for iampord
0
386
Member Avatar for trantran

[CODE] struct S{ int i; double d; S(const S & incoming_S):i(S.i),d(S.d){} }; void test(){ S myS=S( /*temporary variable*/ S(23,3.14) ); } [/CODE] Questions: 1) During initialisation, is the temporary variable S(23,3.14) actually created or can it (and is it actually for typical compilers such as VS2008) optimised away? 2) Same …

Member Avatar for trantran
0
177
Member Avatar for ryandunn

I am trying to get the number of months on one side to pay a car loan off and then the other side to have a decrease in the money owned. I have been staring at this thing for about 2 hours and i dont understand why it won't subtract …

Member Avatar for Zvjezdan23
0
108
Member Avatar for Zssffssz

Well how would I do it? Make something like winrar but alot less compresstion ratio and in a cui? PS sorry for not answering many questions alot of this stuff is in a different side of c++ I dontnormaly use?

Member Avatar for Zssffssz
0
86
Member Avatar for dgreene1210

This is my header file i want to use [CODE]#include <stdio.h> #define my #define LABOR_COST 0.35 #define TAX_RATE .085 void read_data(int* length, int* width, int* customerdiscount, double* costpersquarefoot); void calculate_values(int length, int width, int customerdiscount, double costpersquarefoot, int* area, double* carpetcharge, double* laborcharge, double* installedpricecharge, double* discountcharge, double* subtotalcharge, double* …

Member Avatar for gerard4143
0
172
Member Avatar for jw3973

Hello. I am looking for someone with spare time to write a PHP app for me. I am just starting to learn PHP but something like this app is too advanced for me right now and I need it asap. Also, having it will go a long way to advance …

Member Avatar for jw3973
0
94
Member Avatar for Donnovan

hi everyone, i never worked with php or any script language before i am more of a java, c++, C programmer, but for a school project i need to program a character converter in php, i have some problem recieving response from my php file. can someone help me this …

0
90
Member Avatar for peeta

hello friends i just start learning Python and i am going through book "how to think like a computer scientist", in forth chapter it start using "GASP" which needs to be installed and book totally ignored the need of a newbies regarding installation. so after some mucking around i did …

Member Avatar for rlayne2
0
695
Member Avatar for churva_churva

[CODE]Option Explicit Private Sub cmdExit_Click() End End Sub Private Sub cmdRun_Click() Dim num(19) As Integer Dim i As Integer Dim sum As Integer grd.Rows = 2 grd.Cols = 2 grd.Clear For i = 0 To 19 Step 1 num(i) = InputBox("Enter any integer") lstno.AddItem (num(i)) Next i grd.TextMatrix(0, 0) = …

Member Avatar for BitBlt
0
447
Member Avatar for jdm

I'm a Jr. in college and I'm in some clubs. This year the school has decided to make every club use a web site to track community service, attendance, etc.. The issue with this is the web site sucks. The way we were suppose to go about doing this was …

Member Avatar for TrustyTony
0
110
Member Avatar for shaya4207

Hi, First of all I'm not sure that this is the right place, so if it isn't please feel free to let me know, and/or move the thread... I have Windows 7 with WAMP installed, and I obviously view my stuff by going to [url]http://localhost[/url] (or [url]http://172.0.0.1[/url] which is essentially …

Member Avatar for shaya4207
0
232
Member Avatar for Whilliam

Hey guys, I have this code wherein I have 4 buttons to determine what set of values to display on my jtable. I've successfully displayed my data. After running the program, clicking a button, data is displayed in the jtable. Problem is, when I minimize/maximize the window, the data disappears. …

Member Avatar for Whilliam
0
189
Member Avatar for mpw5013

Good Afternoon, I'm having an issue. I know how to read the API documentation, but I can't find what other attributes I can add to the array. I need to import UPC and the var_dump shows a 'upc' field, but Its not working. Here is my question. How do I …

Member Avatar for mpw5013
0
115
Member Avatar for atalkingfish

I am sorry but I am just starting and I suck. I've been spending the last hour on the site trying to use others' threads and the FAQ to fix this but I simply have not been able to do so. This is real simple. All my code is.. [CODE] …

Member Avatar for atalkingfish
0
136
Member Avatar for soundar

1.what Is The Difference Between Procedure Oriented Language And Object Oriented Language? 2.what Are The Drawbacks Of Procedure Oriented Language?

Member Avatar for N1GHTS
0
120
Member Avatar for webxpert

Hi Iam a Graphic designer and now i want to learn VB (software development) New to vb not know anything about that and iam quick learner any Help is appreciated. from where i start to learn. which software i download vb6? or vb studio? Thanks in advance.:icon_smile:

Member Avatar for OblibSystems
0
247
Member Avatar for magnetic rifle

I'm trying to create a program and found this website that was exactly what I wanted. When I followed all the instructions I got this java code which makes no sense and also gives errors when I try to assign a class. Please help. [url]http://labs.unwieldy.net/moocirclepack/[/url] [code] <script type="text/javascript" src="js/mootools-1.2-core-nc.js"> </script> …

Member Avatar for Taywin
0
167
Member Avatar for Deepali_Jain

I have a function C++ file, created in VS 2005. But I am not sure how to register that function in mysql, so that it get stored somewhere in mysql database and when the query runs, it should retrieve the func definition from the database itself.. Please guide me with …

Member Avatar for Deepali_Jain
0
273
Member Avatar for GSLENK

So in the beginning, Im sure i can ditch #include <string>... Im sure at the end, where i have a million cout's (42-69) that could be simplified (i feel like the inverse of the distributive property in math could be applied. I want the ouput to look the same. this …

Member Avatar for Fbody
0
181
Member Avatar for server_crash

I've often pondered over this subject. I know the main method has a special signature the JVM looks for, but why is it static?

Member Avatar for Taywin
0
600
Member Avatar for SyncMaster170

I am having a problem with my C# datagridview. When I add data into it, it doesnt auto update. And nothing I found online works to update the view for the user during runtime. I've used refresh(), update(), invalidate(). Nothing seems to work. Can anyone help me out with this …

Member Avatar for SyncMaster170
0
521
Member Avatar for pranab2302

hello all, i am using asp.net and while designing my page i want to call another aspx page in my current page.....i.e. in my current page (ex. p1.aspx) ,i want to add a header let it be header.aspx. how can i call that header page in p1.aspx???? actually i want …

Member Avatar for Fortinbra
0
1K
Member Avatar for sam230

i m getting this Notice this following code.. please help me why this error is comming... [code] $dataArr[$m]['longitude']= @$pageListArray['longitude']['value']; $dataArr[$m]['lattitude']= @$pageListArray['lattitude']['value']; $dataArr[$m]['hospitalType']= @$pageListArray['hospitalType']['value']; foreach ($dataArr as $key => $row) { $order_in_category[$key] = $row[0];//[0] is $order_in_category } [/code] thanks in advance.. i hope i got solution here.

Member Avatar for ko ko
0
949
Member Avatar for yeeitsneo

im working on a program written on vb 6. i actually want to implement a gif to work on my program. by implementing, i mean how to make a gif file work on vb 6. thanks!:)

Member Avatar for SpiritualMadMan
0
278
Member Avatar for Quazy

Hello, I hope someone can give me some help. I have a datagridview (Unbound), wich calculate several numbers, and I use this following code to save 5 of the columns to a XML file. My problem is that I would like to load this file back to my datagridview, and …

Member Avatar for josker
0
213
Member Avatar for davy_yg

[CODE] <?php session_start(); // makes an array $colors=array('red', 'yellow', 'blue'); // adds it to our session $_SESSION['color']=$colors; $_SESSION['size']='small'; $_SESSION['shape']='round'; $_SESSION['diameter']='10cm'; $_SESSION['LoggedIn']='user'; print "Done"; function fnCheckSession(){ if ($_Session['LoggedIn'] !=null) echo "Session variable exist."; else echo "Session variable does not exist."; } fnCheckSession(); ?> [/CODE] The following errors appears: Done Notice: Undefined …

Member Avatar for ko ko
0
256
Member Avatar for arson09

I know this is like an idiot question, but i'm like totatlly stumped by it for some reason. First and foremost, i'm a total newbie at coding(1st month and would be grateful if someone could at least help me with the first part of the project to help me get …

Member Avatar for arson09
0
251
Member Avatar for webjam

Hello, I know relational algebra uses sets which eliminates duplicates values but I'm not sure about one thing. Duplicate values are impossible to exist in a relation ever? For example I can never have a relation R(A,B) with values (1,2),(1,2) ? Or they get eliminated <b>after</b> a projection or selection, …

Member Avatar for webjam
0
272
Member Avatar for mitchiexlolz

[CODE]I am planning to make an application that can graph all functions.(polynomials, rational, trigonometric,etc) but I can't make a decision on which programming language I am going to use. I am choosing between Java and VB.net. what are the ups and downs of these languages? Which one would be better …

Member Avatar for Taywin
0
118
Member Avatar for jacksantho

Hi, Am created a login and an user to access sql server instance and the database. [CODE]Creating Login: create login xxx with password='secret'; Creating User: use testdb; create user yyy for login loginname; [/CODE] And then i login with this login name(xxx) and also i can able to access the …

Member Avatar for adam_k
0
234
Member Avatar for end3r

Hi, Can you tell me what is the regular expression for a comma-separated list (in this case - IPs) ? My list looks like this: [CODE] 192.168.0.1, 10.%.23.100, %.46.%.1 [/CODE] So far I managed to create this: [CODE] ^[0-9%]{1,3}.[0-9%]{1,3}.[0-9%]{1,3}.[0-9%]{1,3}$ [/CODE] But I don't know how to specify a comma-separated list …

Member Avatar for Taywin
0
327
Member Avatar for stockton

I have the following code which works fine until I try and display graphics. Please tell me how I could/should display the odometer in graphics format rather than text. I have all the necessary images as .png(0 through 9) in the same folder as the following code. It is just …

Member Avatar for Taywin
0
390
Member Avatar for Nazmul Haque

The application has the first window named chatroom.asp . Here a person will give a room name and enter that room for chat. All those who want to chat have to enter the same room. When a chat room is submitted by a user, the room name is passed to …

Member Avatar for Ezzaral
0
258
Member Avatar for BlueCharge

Hello Everyone, Thanks for taking your time to look at my post. I am having a problem with my PHP file which is giving me the following error whenever a header("Location: ") is used and the set_cookie function: Warning: Cannot modify header information and it always says the output was …

Member Avatar for SweatCoder
0
221
Member Avatar for The Bl

I have been trying to create a program that asks for a username and password, and if the user gets it right exits the program, if they get it wrong asks again, and if they get it wrong again logs out of the system. TWO QUESTIONS: 1: is this possible? …

Member Avatar for TrustyTony
0
339
Member Avatar for khentz

I would like to know how to use module, why we need to use module and when to use module. I've tried to use module but some of my textboxes, labels and other controls didn't recognize by the module i've created.

Member Avatar for codeorder
0
2K
Member Avatar for bettybarnes

Hi i'm having problem with rebuilding my program. Everything went fine when I run my application but when I stopped and made some changes to it and re-run it again this error message kept on displaying [CODE]"unable to copy file "obj\release" to "bin\release". the process cannot access the file because …

Member Avatar for QuickBooksDev
0
409
Member Avatar for nblackburn

Hello Developers, i have a link structure like this on my website... [CODE]index.php - homepage index.php?section= - other pages[/CODE] here is a piece of code that i wrote to change the colour of the active link... [CODE] $(function(){ var path = location.pathname.substring(1); if ( path ) $('#nav ul#navigation li a[href$="' …

Member Avatar for nblackburn
0
141
Member Avatar for asa88

i am trying to do this consider a=[[(34,5),(34,6)],[(35,5),(35,6)]] b=[(36,5),(36,6)] i want to put elements of b in a so i do a.append(b) now if i do b.pop() why does it effect a? a ends up being `a=[[(34,5),(34,6)],[(35,5),(35,6)],[(36,5)]]` WHY?? is there a way around it?? i don't think i had this …

Member Avatar for Enalicho
0
12K

The End.