199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for yinyue

I have run this code below but it have a few error..hope someone could help me to solve this problem..tq..:) #include <stdio.h> #include <string.h> #include "cv.h" #include "cvaux.h" #include "highgui.h" int nTrainFaces=0; int nEigens=0; IplImage ** faceImgArr =0; CvMat * personNumTruthMat =0; IplImage * pAvgTrainImg = 0; IplImage ** eigenVector …

Member Avatar for yinyue
0
467
Member Avatar for sirlink99

I am getting an access denied error when I am writing to the database I am using this line [CODE] LOAD DATA INFILE 'upload.txt' REPLACE INTO TABLE Test FIELDS TERMINATED BY ',' [/CODE] I have made sure I allowed remote SQL, and I made sure to give the user all …

Member Avatar for smantscheff
0
88
Member Avatar for archelle

Hello guys... I just want to know how to close current child form and opens another? In vb.net Thanks in advance....

Member Avatar for codeorder
0
170
Member Avatar for nndung179

Hello everybody !!! I have a problem that. When I back up using "Microsoft.SqlServer.Management.Smo". It works perfect on my PC. But when I bring it to another PC. It doesn't work at all. Please give me some help!!! The file attach below [ATTACH]23303[/ATTACH] Thanks for your helping !!!

Member Avatar for lolafuertes
0
185
Member Avatar for enterpise

i'm a beginner for coding at java . net now i got a problem with input the port plz see the code [CODE]package test; import java.net.*; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPCliet { final int buffSize = 10001;//buff size final int TIMEOUT = 3000; final …

Member Avatar for enterpise
0
176
Member Avatar for Majestics

I have using following code over jdk 6.0 but after first round it doesnt work .... [code] if(table.getRowCount() -1 == table.getSelectedRow()) table.editCellValues(0,columnno); else table.editCellValues(table.getSelectedRow(),columnno); [/code] These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... …

Member Avatar for Majestics
0
230
Member Avatar for diGGity

Hi I've have a Windows form application, that provieds users to add/see and search new items, items are saved into a text file with a help of streamreader/streamwriter. My application is almost finished, but i dont know how to make a search system. This is my application: [URL="http://www.youtube.com/watch?v=Idgw52iXLRk&feature=plcp&context=C352918eUDOEgsToPDskIF-q5mZ0uP5UIRlBTolHbg"]http://www.youtube.com/watch?v=Idgw52iXLRk&feature=plcp&context=C352918eUDOEgsToPDskIF-q5mZ0uP5UIRlBTolHbg[/URL] Code: [COLOR="Red"]This …

Member Avatar for diGGity
0
249
Member Avatar for GBignell

Hi, can anyone advise how to make a button run code only while it is pressed? Basically I have found this code on the Net for changing the system volume, but you have to keep clicking on the buttons to change the volume. I want to be able to hold …

Member Avatar for GBignell
0
185
Member Avatar for wallet123

HI im a student and our professor asked us to convert a number into word: example: input= "1" output="one" i need to have numbers from 1-10,001 so my program will end up very long if i only use if else statement i know that there are other methods other than …

Member Avatar for peter_budo
0
77
Member Avatar for wallet123

guys i cant understand or even think of how i can start my program. I should input a number and convert it in words ..its so hard for me to understand how to do this because like what i have said im NEW here thank you so i need to …

Member Avatar for peter_budo
0
160
Member Avatar for mustad104

I try to implement ford fulkerson algorithm but i have problems at my_alg function.I think the reason for this problem is find_edge function.since when i find the edge and increment its flow(asker_sayisi),at the next line it seems to be incremented but at the next line when i find the same …

Member Avatar for Clinton Portis
0
737
Member Avatar for kamboz200

help guys! i got an error stating within this line "unclose string literal" System.out.println("Balance at the Month " +count+ " is " +Balance+ " after making a payment of " +RepaymentPerMonth"); But i cant suss it out! please get back to me cheers!

Member Avatar for stultuske
0
241
Member Avatar for jot121

Hey so I have create a class FunWithIntegers. Add a method to the class called GreaterThanFive. Have that method accept an array of int. The method should allocate a new array that contains only the values from the first array that are greater than 5 and return it. [CODE] public …

Member Avatar for stultuske
0
185
Member Avatar for HacruLeian

hello, i want to get some guidance from the reader who read my post. I'm doing a game called deal or no deal using c++ and i can't think of other way to print the box's number instead of printing the value inside. what i want to do is, user …

Member Avatar for LRRR
0
2K
Member Avatar for c_learner

Dear All, I'm new to C, and would appreciate your help about the below code. The purpose of the program is to multiply the elements of the array and print the result. The user enters the value for how many elements he wants to have multiplied, and then the function …

Member Avatar for c_learner
0
2K
Member Avatar for guccimane

[CODE]#include <iostream> #include <string> using namespace std; class shapes { protected: int width; int height; public: shapes() { width=0; height=0; } ~shapes() { } void getWidth() { cout<<"What is the width"<<endl; cin>>width; } void getHeight() { cout<<"What is the height"<<endl; cin>>height; } }; class rectangle:public shapes { public: void area() …

Member Avatar for LRRR
0
103
Member Avatar for km2011

i want to make random numbers for x[row][col] that row =10 and col =10, but my problem is: how i fix random numbers of n[col]=5; here is my code: public static void main(String[] args){ double[][] x= new double[10][10]; int row,col; int n[]={0,0,0,0,0,0,0,0,0,0}; for(row=0; row<10; row++ ){ for(col=0; col<10; col++){ if( …

Member Avatar for km2011
0
2K
Member Avatar for Vetha

Hello, Here I have a problem, I want to print the word after the Delimiters in a simple text file, but i cant able to do it also cant able to find a good example for that in a web. So please if anyone help for this.

Member Avatar for ~s.o.s~
0
1K
Member Avatar for myk45

Hello everyone, I came across the following in a book: [CODE]Keyword typename The keyword typename was introduced to specify that the identifier that follows is a type. Consider the following example: template <class T> Class MyClass { typename T:: SubType * ptr; ... }; Here, typename is used to clarify …

Member Avatar for myk45
0
100
Member Avatar for Varun Bhat

[CODE]#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<time.h> void main() { int i[100]; int j[100]; int k; int m; clrscr(); printf("Enter the number of questions needed:"); scanf("%d",&m); if (m<=100); { i[100]=rand()%m; printf("%d \n",i,rand()); j[100]=rand()%m; printf("%d",j,rand()); i[100]=rand()%m; printf("%d \n",i,rand()); j[100]=rand()%m; printf("%d",j,rand()); } getch(); } [/CODE] I want to generate random numbers when I press …

Member Avatar for WaltP
0
170
Member Avatar for ChrisMackle

I found a good tutorial and added a few things to it such as text on screen using the TTF dll, the code worked fine before setting up the font and attempting to display it. I still get no errors or warnings it just compiles then closes instantly :(, no …

Member Avatar for ChrisMackle
0
110
Member Avatar for triumphost

How do interpreters do it? I've seen bots for games that encrypt files then decrypt them at runtime and run what's in them.. Well How? How can I do this in C++? I plan to do this in another language but I decided to ask in C++ section because this …

Member Avatar for VernonDozier
0
172
Member Avatar for apontutul

[CODE]<html> <head> <title>Pie Chart Demo</title> </head> <jsp:useBean id=[COLOR=red]"myChart"[/COLOR] class=[COLOR=red]"classes.beans.votepie"[/COLOR] scope=[COLOR=red]"session"[/COLOR] /> <body> <h2>Vote Results Pie-chart</h2> <%String chartViewer = myChart.getvoteserve(request, response);%> <img src=[COLOR=red]"<%=chartViewer%>"[/COLOR] border=0 usemap=[COLOR=red]"#imageMap"[/COLOR]> </body> </html> [/CODE] accessing this above viewrst.jsp file shows the following error: [CODE][B]HTTP Status 500 - [/B] [B]type[/B] Exception report [B]message[/B] [B]description[/B] [U]The server encountered an …

Member Avatar for victabk
0
2K
Member Avatar for Dante2

Ok, I'm using the Head First Rails book, which sadly, was written in 2009. So, the API has changed drastically. I am trying to manually configure a route to make the controller find my show page. The route the book tells me to type [ICODE] map.connect '/ads/:id', :controller=>'ads', :action=>'show' [/ICODE] …

0
91
Member Avatar for edn_781

Please help me: My code is going into an infinite loop after clicking on a link. Here is my Code: [CODE] <html> <head> <title>Assignment</title> <script language="javascript"> var records_per_page = 5; var total_records = 35; function pagination(current_page){ var initial_page = 1; var total_page = 0; var page = ''; if(total_records % …

Member Avatar for Fest3er
0
148
Member Avatar for PF2G

Hi, DaniWeb I'm trying to do a validation form, but when i "submit" and forgot some of the textbox's it gives the error, but erases the textebox's previously filled. Here's the code: [CODE]<?php include ('database_connection.php'); if (isset($_POST['formsubmitted'])) { $error = array();//Declare An Array to store any error message if (empty($_POST['username'])) …

Member Avatar for diafol
0
318
Member Avatar for coding101

How do strings work? In C we must declare the size of a char array to represent a "string". But in java we do not allocate memory for the size of a string. So how does the string work? Is there a pre deterimed size assigned to strings from the …

Member Avatar for dheaven
0
238
Member Avatar for buchanan23

Hi everyone, I hope you can help me with this. I have everything in my code working properly except for the fact that the payment amounts are being displayed in the command window and I need to display them in the text area, as well as adding scroll bars to …

Member Avatar for buchanan23
0
4K
Member Avatar for J.S.AlKatheeeri

Hi, I'm trying to make a simple calculator. I don't know how to make the display screen and my buttons are not aligned properly. [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.event.*; public class Calculator extends JFrame{ private JButton btn0 , btn1, btn2, btn3, btn4, btn5, btn6, btn7, btn8, btn9, …

Member Avatar for J.S.AlKatheeeri
0
206
Member Avatar for Bladtman242

I hope I'm posting in the right forum :) I'm primarily concerned with C compilers and sun's JDK, but general info is more than welcome (Documentation for self-education as well). Well, if i wrote a program like [CODE] int i = 5 printf("i is $d", i); [/CODE] Would i=5 be …

Member Avatar for Bladtman242
0
156
Member Avatar for shandoosheri

Hi I have a folder containing a lot of shortcuts so i need to check if the shortcuts paths exist Thank you

Member Avatar for thines01
0
183
Member Avatar for annonymous21

I have been working on this for some time and need some help. I have posted to another forum with no results. I figured i would try here and see if i can get some real help. I am trying to populate an array with the contents of a file …

Member Avatar for annonymous21
0
329
Member Avatar for Bladtman242

As part of our exam project we need to write a GUI in java, the problem is that the structure has got us stumped. I'm not asking you to do our work, but if someone could nod us of in the right direction it would really be appreciated. We want …

Member Avatar for Bladtman242
0
204
Member Avatar for discovery-power

Hi All, I need some help in understanding something. I have an existing database and I make some changes in Sql Server Management Studio, how can I adapt those changes in the Visual Basic project. As an example if I change a table name in Sql Server Management Studio how …

Member Avatar for discovery-power
0
97
Member Avatar for iPanda

I'm trying to check the length of a string, its the most simple way there is but for some reason it says the the length of the string is 14h [CODE] org 100h mov cl,len mov si,offset src mov di,offset dst rep movsb mov ah,0 int 16h ret src DB …

Member Avatar for dheaven
0
121
Member Avatar for reallyslick

I've got a linklist class and would like to have the ability to create a new node that can instantiate it's own new linklist. (some what of a multidimensional link list) I've tried the line: linklist *self = this; but my program crashes when i exit. any thoughts?

Member Avatar for reallyslick
0
144
Member Avatar for patk570

Hello everyone, I am a beginner at PHP, and I have been working with some php code, I built a search result page, a random string generator and a few other ones. But I would like to get a new idea for the website I am working on. I am …

Member Avatar for diafol
0
198
Member Avatar for discovery-power

Hi All, My wife is into the slimming world diet and has magazines with her favorite diets marked, so I decided to write her a desktop application so she can save all her recepies and tidy all those magazines. So please see my code for my breakfast form below [CODE] …

Member Avatar for Reverend Jim
0
126
Member Avatar for Albion1

I have the following code and I want to move from one button to an other depending on the roll of the dice,for example if the dice rolls 5 i want to go to (1+5) six and to put a diferent color to it and so on.Can you help me. …

Member Avatar for NormR1
0
138
Member Avatar for vb.net_beginner

Hey Folks I am just starting out with JavaScript and am following the resource book for the course I am on. One of the exercises is to write an external JavaScript as below which produces the following output: Power is Off Number is Ten the problem is that I am …

Member Avatar for vb.net_beginner
0
66
Member Avatar for vb.net_beginner

Similar to my last post one of the exercises is to write an external JavaScript as below which produces the following output: Iteration number: 1 Iteration number: 2 Iteration number: 3 Iteration number: 4 Iteration number: 5 Iteration number: 6 Iteration number: 7 Iteration number: 8 Iteration number: 9 Iteration …

Member Avatar for vb.net_beginner
0
82
Member Avatar for Karlwakim

Hi everybody, I have a crazy problem with a basic calculator. [CODE]#include <iostream> using namespace std; main (){ int num; int y; int ans; cin >> num; for (int x = 0;x < num;++x){ cin >> y; ans += y; cout << ans << endl; } } [/CODE] it take …

Member Avatar for Karlwakim
0
135
Member Avatar for Cenchrus

I'm typing the code: [CODE] import cmath import math print r"pow(2,3) returns 2^3 pow(2,3,1) returns 2^3 modulo 1" pow(2,3) pow(2,3,1) [/CODE] and I'm getting this error: File "sample2.py", line 26 print r"pow(2,3) returns 2^3 pow(2,3,1) returns 2^3 modulo 1" pow(2,3) pow(2,3,1) ^ SyntaxError: invalid syntax Why is this invalid syntax?

Member Avatar for woooee
0
887
Member Avatar for vedro-compota

Hi there)) Guys please tell me - how to make reference to directory which is on higher level that site root (by php - site is on local machine) - may by this situation need some aliases in apache .conf file? As I see the server(apache) don't want to understand …

Member Avatar for vedro-compota
0
188
Member Avatar for uchiha203

Hi, I would like to create a web-based directory using GridView. The concept is same on Windows Explorer where there are Folders and Subfolders. The thing is, I will be using it on Binary files on the database. I'm not quite sure about the database structure if the user is …

Member Avatar for uchiha203
0
226
Member Avatar for tomtetlaw

Is there any reason you would want to write your own RTTI system for use in your code, when there already is one in C++?

Member Avatar for mike_2000_17
0
548
Member Avatar for FakeTales

Hey i am currently working on a book store for a university project. And would like to implement that only admins can access the backend of the website. My login scripts currently allows all types of users Login . I have two mysql tables a [B]user [/B] table and a …

Member Avatar for blocblue
0
438
Member Avatar for aproxx

Hi everyone! I'm experiencing some trouble with a fairly simple problem I guess. First of all, I'm not a real expert when it comes to java, but I would like to learn it mostly by self study. And I'm sorry for the lots of code, but I can't really specify …

Member Avatar for aproxx
0
154
Member Avatar for ronny22

[B]Hey guys just asking for some help on my code to see where am going wrong thats all [/B] Right am making a simple CMS site and my problem is that i want everything to be shown on my index page nothing is and i dont know why it is, …

Member Avatar for simplypixie
0
187
Member Avatar for cascer1

hello, i've been working on this website for a while ([url]www.scfan.net[/url]), but for some reason the page: /gameinfo.php has an error with the session code. i'm using this code on every other page on the website too. but only /gameinfo.php and /livestream.php and /tac_protoss.php have the problem. could anyone help …

Member Avatar for broj1
0
89

The End.