199,114 Archived Topics
Remove Filter ![]() | |
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" … | |
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 … | |
how can i export a database from access to excel but in a tabular form(calendar form)?tnx!!! | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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?? ![]() |
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 … | |
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 … | |
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" | |
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 … | |
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 … | |
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 … | |
please help. im writing an app that will send and receive sms using vb.net. i dont know how to start | |
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] … | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
How do I change my file extension from me.cpp to me.out or me.cpp to me.exe using Bash scripting. Thanks! | |
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 … | |
/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 … | |
what is %r mean? [code=python] "%r tag requires exactly two arguments" % token.contents.split()[0] [/code] | |
Is there a way to limit size of a list in Python, so it does not use all memory? | |
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, … | |
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; } … | |
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 | |
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 … | |
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. | |
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 … | |
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 … | |
![]() | 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, … |
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 … | |
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, … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
>>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> … | |
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 … | |
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 … |
The End.