199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kogorman

I was recently toying with an idea from my education in computer science, namely that any deterministic algorithm can be expressed with just two control structures: a loop containing a switch. I never doubted it. From a certain point of view, that's what programs look like to the silicon of …

Member Avatar for kogorman
0
376
Member Avatar for KungFuTze

Good Morning, I'm having some problems with my code. This program is to have at least 5 functions . 1.)Ingrades: a two dimensional array that stores student ID, grades and times absent. 2.)Score. Calculates scores for all course work (two partial tests 15% each , two quizzes 10 %each, 1 …

Member Avatar for Stephen Ayayo
0
2K
Member Avatar for Upoma

I am going to build a desktop software with client-server facility.What are the things i need to do for client-server? 1.Should i make 2 different version of the software?One with database for the server and one for client without database. 2.Or should i have some options in one software inside …

Member Avatar for JamesCherrill
0
807
Member Avatar for jeetudaljit

Pl. help in handling button events in JSP like calling a servlet on Button click or executing java code.

Member Avatar for ethar.ammar
0
1K
Member Avatar for cyberdaemon

Good day, I am having problem with the saving. all i want is to save multiple records at once. i used user define table in sql server 2008. my stored proc seems be right coz i already tested it.. my problem is that once i selected a record from the …

Member Avatar for nakor77
0
149
Member Avatar for 1234qwerty

Hey, i have to finished a cacluator, all my code seems to be working apart from the equals button and i do not understand why..i've tried several different things such as a case too but nothing seems to work to get the equals button working..please help!! This is my code, …

Member Avatar for TwijoO
0
167
Member Avatar for riahc3

Hey I have this code........ /*MORE THINGS ABOVE*/ <?php foreach ($_options as $_option) : ?> <?php print_r($_option);?> /*MORE THINGS BELOW*/ That print_r gives me this (the first time around, other times its the same but it just gives me different Xs and Ys which is expected): Array ( [label] => …

Member Avatar for riahc3
0
179
Member Avatar for BilalAKhan

Hi, I am trying to populate a textbox with the database data taking in consideration the session state. Checking if the session variable has the same name as in database, it should display the rest of the information in text boxes. I have come up with the following code: Protected …

Member Avatar for BilalAKhan
0
156
Member Avatar for john_beginner

hello all how can i clear the DOS screen through java program i hava search so many web site but i can't found the proper ans. thanx in advance [:)]

Member Avatar for stultuske
0
13K
Member Avatar for NestaMarley

The Application should be able to add an entry , view an entry and delete and entry.. All other functions are working properly but my applica tion cannot delete.. Please assit where i shuld place my delete method import com.jjpeople.addressbook.action.actionresult.ShowAddressActionResult; import com.jjpeople.addressbook.actionargument.ShowAddressActionArgument; import com.jjpeople.addressbook.actionargument.DeleteAddressActionArgument; import com.jjpeople.addressbook.businessdelegate.AddressBookDelegate; import com.jjpeople.addressbook.businessdelegate.AddressBookDelegateException; import com.jjpeople.addressbook.businessdelegate.AddressBookDelegateImpl; …

Member Avatar for stultuske
0
385
Member Avatar for Stein102

What I'm doing is making a game and I need to do this for my items: - Have an "Item" Class - Have other superclasses such as:Weapon,Armor,Food - Read XML file with items on it. - Create appropriate Item classes with the correct extended class. - Fill the fields with …

Member Avatar for JamesCherrill
0
199
Member Avatar for sam63

What is the difference? Is one better than the other? How do you choose between the two? Why does one not need to instantiate when calling a static method?

Member Avatar for MuhammadSaad
0
4K
Member Avatar for arushi.05

can any body tell me a udf program in c++ which accepts a squared integer matrix with odd dimensions(like 3*3,5*5....) & display the sum of the middle row and middle column elements. please help me if you can................

Member Avatar for TrustyTony
0
171
Member Avatar for gopi17

hey guy, i need some help in reading a file across my network... this is what i did... $myFile = fopen("\\10.102.216.129\backup\Gatepass\Gate_Pass.csv",'r') or die("cannot connect"); $rows = file("$myFile")or die("cannot connect"); but each time i'm getting an error : failed to open stream: No such file or directory can someone help me

Member Avatar for code739
0
142
Member Avatar for sanket044

is it possible to run one code on differet events of different controls like vb.net??? how???

Member Avatar for debasisdas
0
80
Member Avatar for dualzNZ

Hi all i am a bit stuck lol I am trying to get the file extention from a url say yoursite.com/file.zip in the data base the full link will be there, i am looking for a function that will take the full url take ".zip" and then will output "(file …

Member Avatar for diafol
0
122
Member Avatar for nagatron

Hello to all VB masters, I have a problem with the search command. I have a button name [B][COLOR="red"]"btnSearch"[/COLOR][/B] a text field name [B]"fldSearch"[/B] a table named [B][COLOR="red"]MSFlexGrid[/COLOR][/B] and a database named [B][COLOR="red"]db.mdb[/COLOR][/B]. The function of the search button is to search the data being entered in the fldSearch and …

Member Avatar for ChrisPadgham
0
412
Member Avatar for Bile

Hello everyone, can some one help me with the code to create a folder by code in vb6,I am greatefull for Qvee72. The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so …

Member Avatar for ChrisPadgham
0
187
Member Avatar for zeLek

Below is the error I am currently facing however I have yet to be able to bring up the console window to see if my code is correct. It has been very frustrating :( 1>iLab4.cpp(67): error C2144: syntax error : 'int' should be preceded by ')' 1>iLab4.cpp(67): error C2660: 'toDigit' …

Member Avatar for VernonDozier
0
91
Member Avatar for Sendy Hipo

erm i got a bit problem with toupper(); example: char ch = 'a'; char upper; upper = toupper(ch); if i use cout to show char "upper", it shows the ascii code for uppercase.. in this case, it shows '65' in screen, i know it supposed to show 'A' instead of …

Member Avatar for Sendy Hipo
0
131
Member Avatar for Lobster1071

Fairly new to the VB.NET world, but a long time Access and FoxPro programmer. I'm trying to do something that was extremely easy in Access, but can't believe it is this difficult in VB.NET. I populated a combobox with values from a mySQL table. I want to return a hidden …

Member Avatar for raventara
0
1K
Member Avatar for kothaisaravan

Hi, I have c# Application running in my desktop(Windows XP) with Java web services and oracle DB . The Application includes a shipping screen which has a calendar window. When I run the application in my desktop it works fine. Client uses the same application. We access it through CITRIX …

Member Avatar for kothaisaravan
0
113
Member Avatar for antwan1986

Hi everyone and thanks for reading. This problems been driving me nuts for the last day and I'm completely stuck. I made a dummy table of users to test out SQL connections but everytime I echo out the information, it keeps dropping the first record, and jumps straight to record …

Member Avatar for jopianokid
0
4K
Member Avatar for HasNor

Dear experties, i got bad new.. and biggest problem when my system is not stable after go live.I'm using PHP. My system not catch the information that entered by user correctly. I don't know why.. Which part actually I need to check? somnetime it work ok but sometime it work …

0
83
Member Avatar for sammoto

Hi everyone, I'm trying to write a basic program to find the root of an equation. I just tried compiling it for the first time and I get the following error: RootFinder.java:6: <identifier> expected public static double searchValue(double x0, x1, a) { ^ RootFinder.java:6: <identifier> expected public static double searchValue(double …

Member Avatar for sammoto
0
102
Member Avatar for anand01

hi all , I know how to develop Mvc architectur application , Now I paln to learn frameworks, which one will be best choice structs or spring? , should I learn both ?

Member Avatar for anand01
0
112
Member Avatar for hwoarang69

tring to create a website where user can upload image. i have 2 database 1-user(database) 1- which has user_id, email, passwod 2-image(database) 2-which has image_id, user_id, image(store image here), image_name ...etc on upload.php page user has to fill this form hit sumbit. and it will run php code on upload.php …

Member Avatar for code739
0
239
Member Avatar for Dasttann777

I am writing a program in which you can ask a question, and then if the phrase is jknown to the computer, it will ouput an answer, but I was wondering is there a faster way to the way I am doing it, because at the moment i am just …

Member Avatar for m4ster_r0shi
0
161
Member Avatar for arifsuhail1

Hello, I know very little about programming, means what ever learn, i learnt it from the you tube, so in order to explain my problem i am writing every thing so when i get the reply i can understand it. first i try to download apache, mysql and phpmyadminn but …

Member Avatar for IIM
0
2K
Member Avatar for kikiritce

Object of type 'System.Web.UI.WebControls.TextBox' cannot be converted to type 'System.Int32' 6 minutes ago|LINK Hi, i started web application in Microsoft Visual Web Developer 2010 Express. I created few text boxes and dropdown lists. I connect them with my database in SQL management studio. When I click on SaveButton it should …

Member Avatar for hericles
0
244
Member Avatar for BlueCharge

Hello, Basically, I am trying to loop though an OPF document which is an XML document to link 2 children of different nodes together. If I do not use an if statement in the second for each loop, I can display all children from <manifest>, however I need the if …

Member Avatar for BlueCharge
0
268
Member Avatar for thedarklord

Please can you help me to calc the complexity of this algorithm it may looks easy but i am new to all that int f=1; int x=2; for (int i = 1; i <= n; i*=2) for (int j = 1; j <= i * i; j++) if (j % …

Member Avatar for mike_2000_17
0
181
Member Avatar for nee_88

` Below Code not working :- #include<stdio.h> void main() { char *s; gets(s); printf("%c",s); }

Member Avatar for Sokurenko
0
121
Member Avatar for whileiforelse

Hi all, I've just started learning C++. Basically I wish to try out some basic C++ codes and operations in Codeblocks. I created a project under which I intend to put all the C++ programs in. The default ''Hello world'' program runs fine- but whenever I try to run the …

Member Avatar for whileiforelse
0
116
Member Avatar for Onlineshade

I can not find the problem of this code....... I am now using Dev C++ editor for coding. #include<iostraem.h> #include<conio.h> #include<stdio.h> using namespace std; int main(){ int k=1; int m=0; int p=5; //int arry[]; int v=0; int i=0,j=0; cin>>i; cin>>j; for(int n=i;n<=j;n++,v++){ m=n; while(n>1){ if(n%2!=0){ n=3*n+1; } else n=n/2; k++; …

Member Avatar for mustaffa hasan
0
156
Member Avatar for subrat_p

When "ENTER" button in value class clicked the show class wil be run. but nothing happend import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; /*<applet code ="value" width=200 height=200> </applet>*/ public class value extends Applet { private JLabel lab1; private JButton btn1; public void init () { // Construct the …

Member Avatar for JamesCherrill
0
477
Member Avatar for EliStern

Hi! I am wondering what's wrong with my code. It's a simple code which is supposed to activate the PC speaker with a DO note. I'm using XPmode on windows7 ultimate 32B SP1, with EMU86 as assembler, runnig the program with CMD (tried also dosbox). The wierd thing is when …

Member Avatar for mathematician
0
506
Member Avatar for Fotis_13

Hi coders, I create a BSTree but i don't know if it is right. I only want to create a bstree with Strings, nothing else. my code: import java.util.Scanner; class Node { private Node left; private String number; private Node right; public Node() { left = null; number = "0"; …

Member Avatar for JamesCherrill
0
96
Member Avatar for arushi.05

any one knows how to write this program:- given two arrays A and B . array 'A' contains all the elements of 'B' but one more element extra. write a c++ function which accepts array 'A' and 'B' and its size as arguments/parameters and find out the extra element in …

Member Avatar for Despairy
0
122
Member Avatar for public

I'm trying to set up a GPT-site. When I want to test the redeem method, I get the following error: > Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in (blabla-link, not imporant)/redeem.php on line 39 I've tried some stuff, but nothing seems to be working. Does …

Member Avatar for public
0
185
Member Avatar for unikorndesigns

How many number of elements can an array in PHP hold? like 300? 10000? or 10000000000000000000000000000000000000000000000000000000 ???

Member Avatar for unikorndesigns
0
172
Member Avatar for Majestics

I am facing some problems in a project regarding to byte fetching from a file and storing. Problem in java bytes is they are number, instead of char. In file i have seen a byte is like a char... Also how to make bytes unsigned , because signed bytes creates …

Member Avatar for Majestics
0
198
Member Avatar for Buppy

Hi, I have a HTML structure like this: <div> <div id="a"></div> <div id="b"></div> <div id="c"></div> </div> I know the ID of an element (let's say it's #b), and i need to know which index it has in the parent div. In this case that would be 2. How do i …

Member Avatar for pritaeas
0
85
Member Avatar for mariaceline_21

help im getting this Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80 Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 166" <?php error_reporting(0); ini_set('display_errors', 'On'); //ob_start("ob_gzhandler"); error_reporting(E_ALL); // start the session session_start(); // database connection …

Member Avatar for pritaeas
0
140
Member Avatar for Humayoon Khan

i know how to read a file into array, however i want to perform some search operations which is difficult to do on array. if someway i am able to read a file to string then it becomes easier. i have 2 methods of reading a file into wstring but …

Member Avatar for Humayoon Khan
0
3K
Member Avatar for Humayoon Khan

here is the code, that reads a file. Currently i am able to print contents of the file but i want to edit its contents. how can i do this? #include<iostream> #include<fstream> using namespace std; void main() { wfstream file; file.open("hello.exe",ios::binary | ios::in); if (!file) { cout<<"ERROR"<<endl; exit(0); } wcout<<file.rdbuf(); …

Member Avatar for Humayoon Khan
0
124
Member Avatar for suneye

hello, I am trying to record video by aviwriter class in aforge but the resulting avi file is either 0Kb or the whole video is viewing only one picture using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using AForge.Video; using AForge.Video.DirectShow; using …

Member Avatar for Momerath
0
250
Member Avatar for Gaiety

Hi, Can somebody please explain , printing with structure variable also working. int main( void ) { struct bitfs { unsigned char a:4; unsigned int b:5; }; struct bitfs bf = {15,31}; struct bitfs2 { unsigned char a:4; unsigned int b:5; }bf2 = {15,31}; printf("a= %u \n", bf.a); printf("b= %u …

Member Avatar for WaltP
0
110
Member Avatar for lewashby

#include <Stdafx.h> #include <iostream> #include <stdlib.h> #include <time.h> #include <math.h> using namespace std; int rand_0toN1(int n); int hits[10]; int main() { int n; int i; int r; srand( static_cast<unsigned int>(time(NULL))); // set seed for random numbers cout<< "Enter number of trials to run "; cout<< "and press ENTER: "; cin>> …

Member Avatar for WaltP
0
77
Member Avatar for Sendy Hipo

i read c++ ebook, then i make a code to open a file using fstream and use ios::in flag here's the code : #include <iostream> #include <fstream> using namespace std; bool openFileIn(fstream&, string); int main() { fstream dataFile; if(openFileIn(dataFile, "sendy.txt")) { cout<<"succes"; } else cout<<"fail"; return 0; } bool openFileIn(fstream …

Member Avatar for Sendy Hipo
0
154

The End.