199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alexbeav

Hi all this is the 2nd exercise I can't seem to figure out how to do.Exercise goes like this : One method of encryption is this : We pair the letters of the alphabet to the numbers 0-25. Assuming we have a text "T" and a keyword "K" of "V" …

Member Avatar for Dave Sinkula
0
145
Member Avatar for tomjohnson

Hello everyone, I have a bit of a problem. I am in the middle of developing a site that needs to use transactions. I have several different tables that comprise a single insert form. Table A, B and C all require transactions. From what I understand, mysql_query does not support …

Member Avatar for tomjohnson
0
108
Member Avatar for macy2323
Member Avatar for ryy705

Hello, Is it possible to write a php script and have it automatically excecute at a certain time everyday? I need to write a script that will do garbage collection on my database everyday. I do not have a whole lot of power over the hosting server and I can't …

Member Avatar for somedude3488
0
57
Member Avatar for lucamarcus

Am a new c++ programmer. I refer to the code " Bouncing Ball" which is a GUI, now there is a rectangle created, i managed to change the color the rectangle in the main window and what my may problem is how to make the rectangle fixed and not only …

0
98
Member Avatar for Goitse

Hi everyone I have been studying ASP and I seem to be getting the hang of it. I recently just did an application that adds new equipments to the database. Now my problem is that I'm trying to include a button which will search the database and retrieve the required …

Member Avatar for SheSaidImaPregy
0
492
Member Avatar for 51al

hi...my name is agus ..i'm from indonesian...i'm new here... i want to ask something... i have project but i dont know about my wrong and solutions....this is mY project [code=c] void OpenGLInit(void); static void Animate(void ); static void Key_r(void ); static void Key_s(void ); static void Key_up(void ); static void …

Member Avatar for Ancient Dragon
0
74
Member Avatar for phylon

this is a small example from the gsl example online I need to get the value from the "&evec_i.vector " into a 4x4 dimensional array such that abc[4][4]= vector elements how can I do this ? those 16 values will create the 4x4 matrix [code] #include <stdio.h> #include <gsl/gsl_math.h> #include …

Member Avatar for dwks
0
140
Member Avatar for fatihpiristine

my friend asked about masking real addresses shown in address bar... normally: [url]http://www.myhost.com/index.asp?username=someone[/url] he wants it like: [url]http://username.myhost.com[/url] how can we do this??

Member Avatar for fatihpiristine
0
272
Member Avatar for redaqen

Hey, again... I've got another assignment coming up and I'm having issues... again. Basically, my major stumbling block is figuring out how to set the int number = returned value of enterNewNumber. Also, is there any simple way I can store the digits of an integer as seperate numbers in …

Member Avatar for redaqen
0
137
Member Avatar for asilter

my program is written in c and compiled and linked with gcc. In normal way; i execute it by giving an argument after writing executable. [code] ./my_executable abc.dat [/code] and it works. i need to execute it in gdb debugger. how will i give this abc.dat argument to the gdb …

Member Avatar for dwks
0
100
Member Avatar for Justmehere

Can anyone tell me what the purpose of C functions which start with "__" ? Also another question is the same use of the "__" in defines like #define __HTTP_VERB_GET "GET"

Member Avatar for dwks
0
120
Member Avatar for basti

Hi guys, I'm very new to MySQL -- so, your help is very much appreciated. I have a table that has 50 fields. 2 of the fields are primary (named: item_number and catalog_year). There are about 1200 different unique items on this table. Now, what I basically need to update …

Member Avatar for Shaffer
0
2K
Member Avatar for koketa

Hello eveyone, I am kindda new to daniweb. I was hoping that someone would give me some hints on where to put the running total and how to quit once the user types 0 for hours parked(my teacher asked for this feature) I would enormously appreciate the help! A parking …

Member Avatar for koketa
0
161
Member Avatar for jliu66

Hi, My friends, I am new to python. I try to figure out how python knows the end of loop or the end of a block of codes in while... else code Here is the example: while E: Bt else: Bf here if Bf have 20 lines of code. How …

Member Avatar for Lardmeister
0
119
Member Avatar for omagebi

please help. im writing an app that will send and receive sms using vb.net. i dont know how to start

Member Avatar for flo-0001
0
76
Member Avatar for justapimp

I have a data table adapter that returns a single column and I would like to assign the column to a string variable. Can anyone help me on this. it seems very simple but when I use this syntax [code] GpsitDataTableAdpater provider = new GpsitDataTableAdapter(); string CarrierString = Convert.ToString(provider.getProviderByDevUID(1789)); [/code] …

Member Avatar for SheSaidImaPregy
0
164
Member Avatar for Paulville

Hi People I'm a newbie in c, I learn in c++, but I don`t really know to much. A friend make a code in c, working in a linux pc. And works perfect. I normally work in Micorsoft Visual Studio, but this c code, seems not to work well (88 …

Member Avatar for Salem
0
160
Member Avatar for thirunavukaras

Hai I am creating one web application i am using xml String with one containing xml Output to assign that temporary variable.. this my requirement I want to transfer one xml file to another or Redirected web page how to transfer xml file or large data to another page i …

Member Avatar for SheSaidImaPregy
0
86
Member Avatar for greglobal

Does anyone have a solution/c++ code to make bmp images transparent on the fly without having to carry out 2 bitblt operations with the image and it's mask ? We want to develop a game in which there are many moving objects which have to be rendered transparent at new …

Member Avatar for JRM
0
100
Member Avatar for rohit83.ken

this code removes comments please help in correcting the code //Program to print a file by removing Comments #include<stdio.h> void main() { FILE *fp; char ch; //clrscr(); fp=fopen("temp.txt","r"); while(1) { ch=fgetc(fp); if(ch==EOF) break; else { if(ch=='/'){ ch=fgetc(fp); if(ch=='/') { while(1) { ch=fgetc(fp); if(ch=='\n') goto label; } } if(ch=='*') { while(1) …

Member Avatar for Salem
0
205
Member Avatar for Dsiembab

Good evening, I have a webpage that changes the image when you mousover another image and I was wondering if I could preload the images to make it faster. it takes about 2.5 seconds to change the image. Should I set my meta tags to cache? The page is at …

Member Avatar for Dsiembab
0
95
Member Avatar for atrix415

I am trying to print this to a dialog box. The code prints to console and prints, 1,2,3,4....12 to the dialog box. Can someone give me some advice on printing to a dialog box the verses to the dialog? [INLINECODE] import javax.swing.*; // program uses class JOptionPane public class TwelveDays …

Member Avatar for masijade
0
441
Member Avatar for wegdan

i generate a jar file for my project but when i try to run it by d-clicking it i found this massage java Virtual Machine Launcher could not find the main class.program will exit

Member Avatar for peter_budo
0
116
Member Avatar for satish.paluvai

1)I need to compare two directories .if the files which r not same in the two directories i want to list them in a new text file can anybody help me solving this question 2)how to write in a file in a String format using java? satish.paluvai

Member Avatar for masijade
0
104
Member Avatar for acwbrat

I am new to Daniweb and I need some help with my programming code in Unix. I have written an if-else statement for Bash Scripting and it doesn't work. I have been told that variables would help with my code but I still don't see my program working. I'm suppose …

Member Avatar for masijade
0
84
Member Avatar for acwbrat

How do I change my file extension from me.cpp to me.out or me.cpp to me.exe using Bash scripting. Thanks!

Member Avatar for masijade
0
115
Member Avatar for craig5464

Please help me how can i implement Multilevel feedback queue scheduling. i tried something and got scrap liek this [code = java] package osp.Threads; import java.util.Vector; import java.util.Enumeration; import osp.Utilities.*; import osp.IFLModules.*; import osp.Tasks.*; import osp.EventEngine.*; import osp.Hardware.*; import osp.Devices.*; import osp.Memory.*; import osp.Resources.*; /** This class is responsible for …

Member Avatar for sam_tn
0
551
Member Avatar for JesseQ

/cry i am having troubles with my c++ program i was asked to [quote] You will modify your program to allow the user to enter their move as strings of “paper”, “rock”, and “scissors”. Modify how the computer’s move is stored such that it is also a string of either …

Member Avatar for Salem
0
313
Member Avatar for jobs

what is %r mean? [code=python] "%r tag requires exactly two arguments" % token.contents.split()[0] [/code]

Member Avatar for vegaseat
0
90
Member Avatar for bumsfeld

Is there a way to limit size of a list in Python, so it does not use all memory?

Member Avatar for vegaseat
0
13K
Member Avatar for Koldsoul

I am having issues getting this function to work. This is a currency conversion program that gives the user choices of input of three other currencies other than USD and converts it. It is supposed to be a value returning function, not a void function. The program compiles, runs fine, …

Member Avatar for Koldsoul
0
214
Member Avatar for helixkod

this is my current code: [code] #include <iostream> using namespace std; void celsius(double); //Main int main() { cout << "Now displaying the first 20 fahrenheit temperatures and\n" << "showing the Celsius equivalent.\n"; //Loop for displaying the table for (int couter = 0; couter <= 20; couter++) celsius(couter); return 0; } …

Member Avatar for zandiago
0
98
Member Avatar for FragFighter

Hey, I'm looking at developing an HTML-based game and have never done any HTML coding or game design. I am wondering if anyone has any suggestions as to what program I should use or what I should start researching and learning about (any books I should read?) Thanks

Member Avatar for FragFighter
0
140
Member Avatar for zandiago

This is what I've got so far: [CODE] #include <iomanip> #include <cmath> #include <fstream> #include<string> #include<iostream> using namespace std; int main() { double numA=0; double numB=0; double productB; double accumulator = 0; cout<<"Your two numbers to multiply are?"<<endl; cin>>numA>>numB; double productA = (numA * numB); if (numA>numB||numA%2==1)//check if larger and …

Member Avatar for zandiago
0
259
Member Avatar for mimi_breeze

hi everyone, i'm new to programming and will like to know how i can run my vb/access application on a server? Thanks for your contributions.

Member Avatar for hopalongcassidy
0
126
Member Avatar for gee1288

hey guys im tryin to do a conversion program im trying to convert pounds to kilograms i input 10 pounds and 4 ounces and it gives me a total of 4.65 kilograms but i want to split that up so it says kilograms and grams so it would be like …

Member Avatar for Ptolemy
0
93
Member Avatar for DREAMER546

hello .. after i write this program there's error i don't know why ? what's the wrong thing? [CODE]#include<iostream> using namespace std; class Account { private: int Acc_no ; double balance; public: void SetAccInfo() { cout<< " please enter your account number\n"; cin>> Acc_no ; cout<< " please enter your …

Member Avatar for DREAMER546
0
112
Member Avatar for sakura_fujin

hi guys how do you export your database to html format? my project goes like this: we built a simple music manager that adds, edits, deletes, searches and sorts records (that's track listings) excluding the multimedia part (i.e. play a track, etc.. our prof didn't require us to do that, …

Member Avatar for masijade
0
97
Member Avatar for noona

Hi, if we define a vector class, class vector { private: int size; int* array; ........... public: vector (int n=10); ......... } then we use it in main like this: int main() { const vector v(5); cout <<v(1) <<endl; return 0; } there's a problem with compiling this code, i …

Member Avatar for Narue
0
97
Member Avatar for nameless

Hey, I am creating a recruitment database and will be using a managed hosted service. I have read MSSQL is more expensive, but does this matter if I am paying someone else for hosting? The site is going to be in .NET, and I initially was planning to use MySQL, …

Member Avatar for Ramy Mahrous
0
99
Member Avatar for loimarie

hello...can anybody add a code to this program to make this a memory resident program...please... [B]*sound progam* jmp input beat db 8 nota dw 3531 nota1 dw 3032 nota2 dw 4030 nota3 dw 2728 nota4 dw 2425 nota5 dw 2023 nota6 dw 1520 nota7 dw 1313 music: mov si,0 balik_sound: …

Member Avatar for Ancient Dragon
0
134
Member Avatar for ambjorn

I am creating a c++ class which randomly puts a number of particles on a lattice and then lets those particles jump on the lattice in a random fashion. I have managed to implement this, but using the random number generators rand(), which I understand is not a very good …

Member Avatar for Ancient Dragon
0
121
Member Avatar for pyramid

Hello - I am working on one of my labs, but I am having difficulty with the results being inconsistent. The passing by reference is working. I tested random data and I don't understand why some works and others produces incorrect results. Data tested: 5, 9, 7 = perimeter of …

Member Avatar for pyramid
0
86
Member Avatar for Subcynic

I'm pretty new to C#, but I've used winsock in VB a lot in the past, anyways, the problem is, I can't get .GetData to work. [CODE]private void axWinsock1_DataArrival(object sender, AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent e) { string R_DATA; axWinsock1.GetData(R_DATA); }[/CODE] Gives error: 'Cannot convert string to ref object' Or [CODE] private void axWinsock1_DataArrival(object …

Member Avatar for truebot
0
820
Member Avatar for jobs

Can someone tell me what is the different between default_age and self.default_age? Only one default_age variable is created for all instance of class Student and self.default_age means very instances of class Student gets a variable default_age? How do you specify a static class(singleton class) in python? [code=python] class Student: default_age …

Member Avatar for BearofNH
0
181
Member Avatar for toncoolx

Hello there, I met a problem which is to update inputs in a text file, but every time I update is only insert the data, not update. May anyone give me some advises? Thanks~ [code] string input; ifstream fin; ofstream fout; string title,author,category; float price; fin.open("library.txt"); cout << "******Update Book******"<<endl; …

Member Avatar for Ancient Dragon
0
9K
Member Avatar for conan19870619

>>i have defined a stack class using single linked list and a template. as follow: template <class T> class genStack{ public: void push(T a){.....} T pop(){........} .... .... private: SLList<T>: lst; } i know when i want the stack to store int, i should declare a stack like this: genStack<int> …

Member Avatar for Ancient Dragon
0
115
Member Avatar for jagpreet

i have load two data files into a mysql table.now i want the compare the data from these two files (i.e want to compare a particular column of the table and want to get the difference between the values from these two files). i dont know how to do this.can …

Member Avatar for jagpreet
0
119
Member Avatar for rogenie

Okay, I got abotu 5 problems solved today and I am on the hardest part! Basically my code ask the user to enter series of random numbers and then use sentinel to mark the end of numbers needed to be entered. Now I want to be able to tell my …

Member Avatar for Duoas
0
943

The End.