199,114 Archived Topics
Remove Filter ![]() | |
I have this problem to solve for preparing for the olympiad and i'm not quite fond of the functions so that i want to do it classically but i find it harder.Here it goes: "During a desert operation a group of soldiers were lost from different squads.After the storm passed … | |
my makefile: [code] DRIVER_SRC = PumaDriver.cpp PumaBody.cpp PumaMotor.cpp base_manipulation.cpp serialPort.cpp DRIVER_INC = PumaDriver.h PumaBody.h PumaMotor.h base_manipulation.h serialPort.h silvermax_commands.h All: $(DRI_SRC) $(DRI_INC) g++ -Wall -Wextra -g3 -fpic `pkg-config --cflags playercore` -c $(DRIVER_SRC) g++ -Wall -Wextra -nostartfiles -shared -rdynamic -o libPumaMotorDriver.so PumaDriver.o PumaBody.o PumaMotor.o serialPort.o base_manipulation.o install: cp *.so /usr/local/lib uninstall: rm … | |
Hi I am writing a function which gets values. These ones will be used in my sqlite query [code] def updateDB(tel, month, price): mytel = (tel,) myprice = (price,) connection = sqlite.connect("mydb.db") cursor = connection.cursor() sql = 'UPDATE mydatabase SET %s = ? WHERE number = ?' cursor.execute( sql % … | |
Hi, I'm working on an events section for a website and have run up against the following problem: I would like every event registered to have its own web page on the site. What I would like to do is to have a template with basic layout, etc., and then … | |
i want to show a msgbox when i click on the webbrowser control on my form.. how do i do it? why isnt there a mouseclick event in the webbrowser method listbox? | |
Hi I wonder how it will be possible to get the current date and time. I have looked around and there are many different ways to retreive this. I wonder what could be a good way to do that. As for now, I would like to return a string for … | |
I need some help. I have been problems getting my programs to recognize variables outside of the subroutines even if I make them public. Ive been able to work around the problem until now. I am working with arrays. It wont let me declare the array outside the subroutine and … | |
Azul(Hi) i created program on php where i can output data set of any table by submitting query. i need help to input i mean to load data into the table from the HTML file can any one give help please thank you. this is the program i created, so … | |
i know what is the maening for method overloading ....can any one explain me method overloading with real time .NET example plz | |
if anyone using abstarction and interfaces in your applications can u share that code.....just want to know when we go for abstraction and interfaces in .net applications | |
Hey, for our project purpose we had to collborate java with vb using JNI.because in our project there is a idle checking procedure for the client from server which cannot be done with java.... can anyone help us with java code or JNI code.... | |
Hello, I have a program called Date. While this program compiles and runs, I have noticed something weird. I have an output line that displays my values twice. Sample Run: The word date output is: February 12 2009 [B]The numeric output of the date is: 2/12/2009 The next incremented date … | |
If I have a list of 5 random integers, is there a simple way to iterate through the list and see how many of each number there are without using 25 if/elif statements. For example my list might contain [3, 7, 10, 10, 14]. How would I determine that there … | |
I have to write a program the accepts a fully parenthesized like "((3*4)+(2-(4/2)))", or (3+5). It builds a tree for the expression, without the parentheses. So the tree for the (3+5) would be - "+" is the root, and the 3 is the left node and the 5 is the … | |
Hello I wanted to compete with myspace.com because they are monopolizing the computing industry, and I am indeed jealous. I wanted to know if anyone here knows a lot about database programming, and can help me learn how to program something that has the looks and feels of myspace in … | |
Metro supermarket is a new supermarket opening in Riyadh. It offers attractive discounts for its customers. Write a program that will display to the user his new total price after discount. The program should read the total price from the user, calculate and display the new total price based on … | |
[code]Imports System.Data Imports System.Data.OleDb Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim conn As String = "Provider=Microsoft.Jet.OLEDB.12.0;Data Source=G:\Visual Studio Projects\test\dbtest.accdb;Persist Security Info=False" Dim cmd As String = "SELECT * FROM Table1" Dim adapter As New OleDbDataAdapter(cmd, conn) Dim topics As New DataSet("Table1") … | |
Mmm, I just love these error messages, I don't understand them what-so-ever and I can't interpret them. (Unsure where the post should be in the forum) I'm getting this error message at build time (Using VC++): [code=cpp]1>Linking... 1>main.obj : error LNK2019: unresolved external symbol _DirectDrawCreate@12 referenced in function "long __cdecl … | |
i was wondering, is their any way to do something, say msgbox, when an exe is ended via the end process in the task manager? thanks in advance! | |
Hi all, I've written some functions that seem to be able to handle parallel AJAX requests. However, I am not sure if they would work under all circumstances. My idea was to create a separate object for each AJAX request in order to bind the right handler function to the … | |
[code=perl]#!/usr/bin/perl use warnings; use strict; push @INC, "C:/Perl/Modules"; print "What is current download directory? "; my $dir = <STDIN>; opendir DH, $dir or die "Can't open directory..."; my $parent = $_; while ($parent = readdir(DH)) { next if $parent eq "." or $parent eq ".."; if(-d $parent) { opendir DI, … | |
I've been trying to solve this problem for a while now with no luck. I want to monitor an input buffer(cin) for a keypress. The catch is, I don't want it to hang if the buffer is empty. [INLINECODE]getch()[/INLINECODE] and [INLINECODE]peek()[/INLINECODE] won't work because one waits for a keypress and … | |
Hello again all!!! I just have two quick questions... 1.) Is it possible for one to run a program through the "system(command)" and have the output come out on top of an SDL program? Like if I had a background of some sort and typed "system(echo "Hello!")" could I have … | |
I am trying to order a list containing integers. I want them sorted in numerical order from lowest to highest. I tried using sort but got the list baxk exactly as it was. [code=python] x = [5, 3, 7] x.sort print x [/CODE] What command would I usr to make … | |
Hello, I'm new nere and very much a beginner with python. I'm trying to make a blackgame program not to play but to test strategies, like I used to play this wristwatch game and always double at 12 and surrender at 17. Which is bad strategy but I swore it … | |
i want to see all the function calls from the very first to the very last one. is that possible? i tried call stack window but it shows the ones in the scope of the break point. | |
Ok, i have read alot about this bugs now, and nothing seems to help. Hope someone have a step by step solution for me, or atleast can give me some more insight hehe ;) Here is a few intel on my work. Im working in netbeans on my labtop, uploading … | |
I have two methods. One method was to set location of 2 points x and y. Another method was to copy that location. I used arrays. Well the program compiles but it doesn't display my values properly. Error message says: [D@af9e22. Does anyone know what this is? Thank you // … | |
I have a form with a readonly textbox, some layoutpanels with some buttons in it and together they make up a calculator. (Yes I know this is YAC (yet another...)) but I have fun while still learning! When I click the buttons and manipulate the Text property of the textbox, … | |
Hi, I am brand new to the DaniWeb Forums. I'm also very new to VB, and I taking my first course on it. I nearly have a large project done, but I have one main issue that I have not been able to resolve on my own as of yet. … | |
Hello, On my project that deal with online payment system, i want that when a user is buying goods from a website called e.g www.buy.com and want to pay using my payment website called www.pay.com when the user from www.buy.com choose to use my payment solution i want to redirect … | |
Television(boolean power, int channel, int volume); Keep getting error "missing method body or declare abstract" Can't understand why? Help please :) If you need to see all code ask TOM | |
...and it's due by midnight tonight. But I've mad a huge effort. Can I get any help? I'm trying to stay alive in this class. :'( File attached. | |
well i'm trying to get my shuffler to work but i keep getting one. any ideas? #include <cstdlib> #include <string> #include <ctime> #include <iostream> using namespace std; const int number_of_cards = 52; void shuffle(int list[], int size) { srand(time(0)); for (int i = 0; i < size; i++) { int … | |
My book isn't getting into my head yet.... i have one project left in my C# class, where we are to create a base class. That class, from what i understand, is to contain common characteristics. (sports teams happen to be our theme). So i could have coach name, and … | |
In python how to write a simple while loop?I am a C++ expert but i am starting to learn python. Lets say i need to write a while loop asking the user if he wants to input a number and if the user says yes, the program will input the … | |
Good time of the day for you) I've got a simple question, but just unable to find an answer.. How to make dialogue item (button/scrollbar) visible/invisible? I've tryed ShOwWindow, but i can't point it to my button. Please help | |
Hello, how does division works in nasm assembly language? I want to get the least important digits from a binary number. ex: 1001b /10= 100.[B]1[/B]b. The bold signed one is what i like to get. Any suggestions? Further explanation: What i want to do is convert a binary number into … | |
[CODE] public void deleteDvd(String title) { String DvdCompare; Dvd dvdObj; Collections.sort(dvds); for(int i = 0;i< dvds.size();i++) { DvdCompare = dvds.get(i).getdvdTitle(); dvdObj = dvds.get(i); if(title.equals(DvdCompare)) { System.out.println("Dvd is in system"); int index =Collections.binarySearch(dvds,DvdCompare); dvds.remove(index); //delete method in arrayList } else if (!title.equals(DvdCompare)) { System.out.println("Not found Dvd Object"); } } }[/CODE] I'm … | |
I have a combo box that is populated from entries in a SQLite table. The entries are city names. Here is the code for the data binding: [code] cbb_City.DataSource = data; cbb_City.DisplayMember = "Accounts.City"; cbb_City.ValueMember = "Accounts.City"; [/code] It gets the values just fine but it has an entry for … | |
[U][B]Question detail as show as below:[/B][/U] How to design a simple grading system which able read data of a group of students. The data includes students’ names, nations, and marks of four subjects. This data is stored in a text file created by a text editor (notepad etc.). The system … | |
Hi all dotnet lovers, I wish to develope software for my college. This is desktop+web apps. I wish to go for .NET tech. I am puzzled how to use and integrate various technologies. My desktop app will run at office for regitration of students and accepting fee, offering various legal … | |
I have class: [code=c++]template <class T> class Graph; And I have a function: template <class T> void Graph<T>::erase_greater(T needle) { if(TEMPLATE TYPE IS "STRING" OR "CHAR") { do nothing; } else { if(TEMPLATE TYPE IS ONE OF THE INT TYPES) { if(strlen(var1) > strlen(var2)) { USE Var2; } else { … | |
Hi, I have to zoom a div. an image is placed as div background using css. while doing zoom in, what i did is increased width and height of div by 25px, but image which placed as div background is not streching. Also, when i zoom it, the text placed … | |
hi ! i'm very new to assembly and learning bit by bit but unfortunately i'm asked to write a program which encrypts a string using caesar cipher encryption method and then print that encrypted text and save into the address. i'm very hopeful that somebody will definitely solve my problem … | |
anyone explain me replication uses with example in c#.net | |
Hi frnds, I m new to ajax. I have implemented the ajax autocomplete <ajax:autocomplete source="tag" target="make" baseUrl="autocompleteTag.htm" className="autocompleteTag" indicator="indicator1" minimumCharacters="1" parser="new ResponseXmlToHtmlListParser()" /> this my partial code. The problem is that when i press any alphabet say suppose "a", i get all names starting with "a" say amy, admin, anuj … | |
I can't figure out how to perform a calcuation in a query and have the result output for use in a chart within a report. Forgive me I'm a newbie ![]() | |
Hi there, Say I have the following while loop, that loops on the condition that a lne (a string) is received from a file: [CODE]while ( getline( inData2, line ) ) // Increment rows till none left { if ( !line ) { cout << "No data entered. Please enter … | |
While i thought this would be really simple im really struggling on filtering a gridview twice! I can bind data to my gridview on the choice of my first dropdown box from a dataset but i would like to then filter those results from a selection in a second dropdown … |
The End.