199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hostintruder

Hello friends , I got an important coursework to submit . Let me explain, the coursework consist of a file .. which we must sort, search and we must event create a y-sort algorithm. After much struggle, i was able to use the stringtokensier to input the data from the …

Member Avatar for hostintruder
0
109
Member Avatar for Lensva

works, allows entering a user selected amount of strings, however when i try to display, it displays only the last string, not the whole 'database', whatever you'd call it :) the main question is what is wrong and also, is there any way to not to ask a user to …

Member Avatar for Lensva
0
109
Member Avatar for Yogesh Sharma

In Vb we can connect to all the databases like SQL 2000/SQL 2005,Oracle,Access. Out of the given databses we can connect to which databases. Secondly,told me dat if I want to connect to SQL-any version(2000/2005), To connect to the database i go to Control Panel-->Admintrative Tools-->Data sources(ODBC)-->ODBC Data source Administrator …

Member Avatar for choudhuryshouvi
0
145
Member Avatar for sorter

Hi everyone, I am trying to create a simple website using cookies to remember the last 2 links visited on my site. It is a very simple 2 column website: [code=JSP] <%@page contentType="text/html" pageEncoding="UTF-8" import="java.util.*"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Testing …

Member Avatar for jwenting
0
95
Member Avatar for pancgom

I have a page1.php which is a form and i want to be able to go to page2.php when i click submit in page1.php.? How do i do that ...my page1.php is a self processing form. this is what i have now... <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"> - this is …

Member Avatar for pancgom
0
136
Member Avatar for tarunisgod

[B]When i try to extract the data from a datbase and display it in text area i get the following error message inside the text box:[/B] [code=html]<font face="Arial" size=2> <p>ADODB.Field</font> <font face="Arial" size=2>error '800a0bcd'</font> <p> <font face="Arial" size=2>Either BOF or EOF is True, or the current record has been deleted. …

Member Avatar for pmpn
0
133
Member Avatar for sonia sardana

Dim i as integer=10 dim j as integer=20 In the above two statements, y the error is coming...How can we initilase the values to the variables???

Member Avatar for choudhuryshouvi
0
214
Member Avatar for jcato77

Hello, The following is background on my assignment "Modify payroll program so that it uses a class to store and retrive the employee's name, hourly rate and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly …

Member Avatar for K504K
0
1K
Member Avatar for marquis1431

how do i keep track of the values entered so far so that i can get hte average in the display grade function? i.e. all scores entered so far... [code] #include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 #define SENTINEL -1 int getGradeValue(int, int); void displayGrade( int, char); …

Member Avatar for jephthah
0
95
Member Avatar for BBustos

My code requires the validation of a string that starts with two letters and ends with six numbers. So, an example would be [B]br474897.[/B] This is what I got so far: [code] bool GetNID(char buf[]) { int i= 0; int length; bool valid = false; cin.getline(buf, 30); length = strlen(buf); …

Member Avatar for vmanes
0
128
Member Avatar for tefflox

[URL="http://listenlight.net"]http://listenlight.net[/URL] [URL="http://listenlight.net/15/huth"]http://listenlight.net/15/huth[/URL] please mail them to me --- <snipped> or if it is pertinent to the question, post on the board. thank you for your continued support :-) ________________________________

Member Avatar for tefflox
0
123
Member Avatar for maddogsprofiles

OK so i bought a Myspace clone for my web site, [URL="http://www.maddogsprofiles.com"]http://www.maddogsprofiles.com[/URL], but it doesn't work. Why you ask, because the functions.php file is all screwed up! My admin panel doesn't work and the site is a basic demo site. I got like 4 different error codes from it! And …

Member Avatar for maddogsprofiles
0
232
Member Avatar for alexhkleung

I can't identify the problem can somebody help me? [B][COLOR="Green"] objects.h (abstract base)[/COLOR][/B] [CODE=C++]#ifndef objects_h #define objects_h #include "colorScreen.h" #include "maincontrol.h" #include <ctime> #include <string> using namespace std; class objects { public: virtual ~objects(); virtual void print(const MainControl &inMain)const =0; protected: objects(); objects(const int& inX, const int& inY,const int&inScore); ... …

Member Avatar for alexhkleung
0
307
Member Avatar for alexhkleung

hi all I'm trying to read a document char by char my question is how do I read the spaces as well? Thank you!

Member Avatar for alexhkleung
0
121
Member Avatar for xthematrix

I am getting the following error when executing the script with the below code... Parse error: syntax error, unexpected $end on line 125 I am trying to generate a completely new .php file from information stored in the database by using this .php file. Any Suggestions??? Thanks in advance for …

Member Avatar for ShawnCplus
0
167
Member Avatar for BBustos

I cannot figure out how to validate a string so that it accepts both uppercase and lowercase letters as in a name. Here is the code: [code] bool GetString(char buf[]) { int i; int length; bool valid; cin.getline(buf, 30); length = strlen(buf); for (i = 0; i < length; i++) …

Member Avatar for BBustos
0
124
Member Avatar for cyberman111

HEY, I am new at this but I am in a middle of an excercise for an online class I am taking and I am doing a exercise and I am stuck. the instruction are as follow : write a shell script that will take information from 2 fles and …

Member Avatar for Impact4ever
0
153
Member Avatar for shadwickman

Hi, I was wondering if it's possible to call a function using a string that is the exact same as the name of the function. Here's an example in which I wanted to make 4 bitmap buttons using a for loop, and the event bound to each one would be …

Member Avatar for shadwickman
0
160
Member Avatar for samush

I have a problem with unsigned long long int's. I'll tried to do a function wich calculates the factors of an integer. It worked fine with int, but when an tried with unsigned long long int the % and <= operation failed... here is the surce code for the function …

Member Avatar for samush
0
150
Member Avatar for kse989

I need help writing code for my print function in a linked queue adt [B]queue.h[/B] [CODE= CPP] template <class ItemType> // record type for nodes on queue struct NodeType { ItemType info; NodeType* next; }; template <class ItemType> class QueueType { public: QueueType(); QueueType(const QueueType &); // Copy constructor ~QueueType(); …

Member Avatar for Ancient Dragon
0
186
Member Avatar for complexcodes

I have working version of code but mu ostream<< function should print data acoording to the row and column specified. Here is the codes :- [CODE]// // 4/11/2008 // This is a header file of Array2D class which stores 2D arrays #ifndef ARRAY2D_H #define ARRAY2D_H #include <iostream> using std::ostream; using …

Member Avatar for vmanes
0
118
Member Avatar for code12

I'm having problem with this code. Here's what I'm trying to do. I want the user to enter the firstname, last name of the person whom he wants to delete from the phonebook. then I try to compare the data entered by user with the names already stored on phonebook. …

Member Avatar for code12
0
135
Member Avatar for kartouss

Hello, I am calling a c++ dll in vb... Everything is working fine.. Just i am unable to write the vb code in order to perform the require action... Code for calling the c++ dll in vb [code=visual basic 6]Private Declare Function do_encrypt Lib "AES.dll" (ByVal text As String, ByVal …

Member Avatar for kartouss
0
179
Member Avatar for Jon Jon

Hi, I want to be able to use std stream objects to manipulate files, but some of the files are too big. I want to be able to do the folowing: >int64_t fileSize; >strm.seekg(0,ios::end); >fileSize = static_cast<int64_t>(strm.tellg()); >cout<<"File size is "<<fileSize; This code will output -1 if the size of …

Member Avatar for Ancient Dragon
0
82
Member Avatar for Google Spider

Hello, I am on Linux Mint and just installed Netbeans to get started with Java programming. I got these errors while starting the IDE for the first time: [url]http://i268.photobucket.com/albums/jj17/Google_Spider/netbeanswarning.png[/url] [url]http://i268.photobucket.com/albums/jj17/Google_Spider/netbeanswarning1.png[/url] I don't know what these errors mean. When I started the IDE for the second time, I got no errors. …

Member Avatar for Jens
0
162
Member Avatar for aran87

Hello ive got a while loop and when the user selects one result from the loop it displays the chosen result and inserts it into the database table but i want the selected row to go to a table depending on one field from the while loop. there are three …

Member Avatar for sukhy_1
0
116
Member Avatar for esmeco

Hello! I need to implement a set greater than and a branch less or equal in my 16 bit ALU design,but I'm having many difficulties. I know that in a set greater than a>b equals a-b>0 ,but I don't know how to work out from that and implement it in …

Member Avatar for Colin Mac
0
99
Member Avatar for scru

Any script with an error in it shows up blank on firefox. In IE, however, I get html 500 (internal error). I figure PHP isn't echoing its errors back to the client. Is there a way to set this behavior?

Member Avatar for scru
0
83
Member Avatar for usaxray25

Hey guys-- I have been lurking on here for some time as a C++ student. I have a project to complete using cstring and strcpy() as a function within a "simple" program. The psedocode goes as follows: --program accepts 2 string array inputs(using getline) 40 total chars for str1 and …

Member Avatar for usaxray25
0
147
Member Avatar for shadow_shooter

What I'm trying to do is creating a structure array and pass it to a function. My function takes it as a pointer. But I'm having lots of errors which makes me mad. My deadline is approaching and still I've been trying to sort out what the problem is (for …

Member Avatar for Aia
0
279
Member Avatar for edek

I have (in main()) something like: [CODE=C]int toChild[2], fromChild[2]; pid_t pid; //Creating pipes: if(pipe(toChild) != 0){ return 1; } if(pipe(fromChild) != 0){ return 1; } //Forking: if((pid = fork()) == -1) return 1; if(pid == 0) {/* CHILD */ close(toChild[1]); close(fromChild[0]); //create streams: (they are not used in this example) …

Member Avatar for edek
0
109
Member Avatar for leroi green

hey guys, i'm working on this assignment in where I have to take a For...Next Loop and turn it into a Do While Loop. I think I've kinda got the coding down but when I try to calculate the rates the program freezes up. I got the code here, any …

Member Avatar for leroi green
0
135
Member Avatar for anbuninja

#include <cmath> #include <ctime> #include<iostream> using namespace std; int main() { srand (time(0)); int c1, c2, c3, c4, guess, guess2; c1 = 1 + rand() % ( 9 - 1 + 1); c2 = 1 + rand() % ( 9 - 1 + 1); c3 = 1 + rand() % …

Member Avatar for localp
0
132
Member Avatar for shadow_shooter

Hi, I want to scan a word from the user and store it in a char pointer. But I couldn't do it. The thing I just want as the following: char *word; scanf("%s",word); but, it doesn't work... please help for this simple problem. it sounds a bit noob, i know...

Member Avatar for Salem
0
2K
Member Avatar for nelledawg

Hi guys, I've got the code all written but there are a ton of runtime errors that need to be fixed, mainly with calculations and inputting data into the array. I also need to use pointers when referencing the scores array, and I cannot for the life of me get …

Member Avatar for Aia
0
234
Member Avatar for Rums

Hii..... Ok here goes my issue I am developing a recruitment tool intranet aplication for my company and when i post a resume i want a pop up which is same like when we upload a pik in sites liek orkut...its basically used in php i wanna know how can …

Member Avatar for phper
0
72
Member Avatar for santoo

Hi, I am using 3 radiobuttons which are disabled by default.I want to enable them when i check an other radiobutton on my form.what is the solution for this. plzz reply. thanks.

Member Avatar for AaronASterling
0
148
Member Avatar for flash121

Hello, I have a class called personalAccount (which is a derived class from another class, but i dont think this will matter in this case), which should have a static array of chars, but i keep getting an error int my current default constructor and i cant seem to find …

Member Avatar for flash121
0
142
Member Avatar for teffie

Hi, Im new to these forums and i need help with this application. Application Requirements In this application you are to create a Three Shells Game. In this game there are three cups or shells that are upturned. For each new game the pea is placed at random under one …

Member Avatar for JerryShaw
0
105
Member Avatar for lostforever

hi everyone i have TURBO C++ 4.5, can i compile my graphics program on it? if yes then how? if also possible then do suggest some good tutorials or books to learn graphics in C++.:confused:

Member Avatar for lostforever
0
78
Member Avatar for Ben10

Hello everyone! I need a C++ program that stores the results of product table from 1 to 10 in two-dimensional array... what i did : [code=c++]#include<iostream.h> void main() { int a[5][2],result; const int k=1; for(int f=1;f<=10;f++) result=k*f; for(int i=0;i<5;i++) { for(int j=0;j<2;j++) { a[i][j]=result; cout<<"a["<<i<<"]["<<j<<"]="<<a[i][j]<<endl; } } }[/code] BUT the …

Member Avatar for Ben10
0
88
Member Avatar for sonia sardana

To Create a toolbar we drag the pricturebox & then the image. Suppose I want that the text is there in place of image ,Is it possible ??

Member Avatar for sonia sardana
0
196
Member Avatar for luisator

Hi every one...I am modifying an application that make the Pc speaker have acces to the rtp stream comming from a telephone. The problem is, the rtp stream could be one of G.711U or G.711A or G.729 or G.729A depending on which codec was setup and the Speaker supports PCM_UNSIGNED. …

Member Avatar for jasimp
0
383
Member Avatar for kartouss

Hello, I am encrypting a video using AES...The file format that i am using is .avi. In order to play the encrypted video i need to save the header information of the video before encryption to be able to display the video as a video format(.avi). I got the header …

Member Avatar for kartouss
0
500
Member Avatar for it2051229

I'm creating a simple C# program that deals with pressing the DELETE key button in the keyboard. so what I created a key press event, but seems like the delete key doesn't work.. i tried it with other keys and it's working fine... why?? and is 46 the keycode for …

Member Avatar for Jx_Man
0
2K
Member Avatar for andyg55

Hi guys, I'm sure this is pretty simple really, but I can't get my head around it. I have a long equation that I'm using c++ to work out. It involves a random number generator, so each time the program is run, it replaces one of the variables in the …

Member Avatar for xylog
0
79
Member Avatar for onsir

Hi, all How to make connection to database more dynamically using hibernate. Example while my application running, I want to change connection to other server and database name but structure database is still same. I using jdbc I commonly using code like this [CODE] public static void getConnection(){ try { …

Member Avatar for jwenting
0
411
Member Avatar for timo_81

Hi people, I'd like to add/create labels dynamically at runtime. Just imgaine the folowing: I have recieved a value let's call it ' length' it has a a value already that was was calculated before. Now I want to create/add labels the amount of length. That is my code..unfortunately it …

Member Avatar for timo_81
0
222
Member Avatar for scaraffe

I was learning about structures in C++. I had a question: [code] 1.struct integer 2.{ 3. int i; 4. integer (int j = 0) : i (j) {}; 5. integer operator* (const integer &k) const 6. { 7. return integer (i + k.i); 8. } 9.}; [/code] In the above …

Member Avatar for Salem
0
104
Member Avatar for vishwajit

Hi, I want to configure php 4.3.2 on windows 2003 server. I installed binary but I am not able to view php pages on iis 6. Can anyone help please? Thanks in Advance Vishwajit

Member Avatar for vishwajit
0
77

The End.