199,114 Archived Topics
Remove Filter ![]() | |
Hi, I have an undirected graph, I wish to find 3 shortest paths, my code below gives me all possible paths, can anyone give me some advice to find 3 shortest paths ? my idea of finding 3 shortest path is 1) since i have all possible path, i can … | |
Good morning folks...I have a pseudo concept question. I have a trio of unix text files that I need to load into an Access database, and then do a comparison for matches (knowing one field will never match). My original idea was to create a VB application to parse the … | |
Hi Everyone, i have recently started learning assembly and so far i do enjoy it , however my recent problem has me stumped ... The question is : ask the user to enter a keystroke and then determine whether its a decimal # or lower case char or printable symbol, … | |
Good day to everybody! I just want to know on is there any function/solution in vb6 that offers the best/most fastest way to autocomplete listview when type in a textbox.The data should be from SQL Server using ADO connection...Ive seen this function(I've not tested it yet) from [URL="http://www.vbforums.com/showthread.php?t=438622."]http://www.vbforums.com/showthread.php?t=438622.[/URL] [code=vb] Private … | |
Last year I built a generic list, everything was good. This year I'm adding classes to the list. These classes have lists. Everything is okay until the program ends, then it crashes. If I comment out my list destructor the crash doesn't happen. So I'm assuming the destructors aren't unraveling … ![]() | |
I have two forms Login and Main Menu. I want to retrieve the username from the textbox1 from login and put it in the status strip in the main menu. However, when i change the modifier of textbox1 with this code [CODE]TextBox textBox1; public Login(TextBox txtBox);[/CODE] or any other code … | |
Hi everyone. I have a problem. I need to write a program where I can draw elements just by pressing the buttons on the form and I can do some operations with figures which I drew like (spin, delete, maximize/minimize). The task was given to me: use keys on keyboard … | |
i need help in making the size of the array to n size in queues.i have made a program help me in it. [CODE]////##############///// #include <iostream> using namespace std; #define MAX 5 class queue { private: int t[MAX]; int al; int dl; public: queue() { dl=-1; al=-1; } void remove() … | |
[CODE]#include <iostream> #include <string> using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void displayInventory(); void inventory(); void exitGame(); int playGame(); int main() { //Menu Text. cout<< "\t******Menu******\n\n"; cout<< "Please choose one of the following:\n"; cout<< "1 -Play Game.\n"; cout<< "2 -Exit.\n"; int choice; cout<< "Choice: "; cin>> choice; string … | |
Below is my code. My assignment is to write a code to ask the user to enter the amount of people in the class between 1 and 25. Then enter that many names and it will list the first and last name alphabetically. ex. jon matt kate = jon matt … | |
can anybody share, the best encryption and decryption technique in PHP. here i just found 3 ways. are that any better technique? [QUOTE][ICODE]<?php //1 $password = 'mothafucka'; $sSalt = '8*S&AsEc4qUs'; $sHash = hash( 'whirlpool', $password . $sSalt ); echo $sHash."<br><br>"; //2 $password = "palancau87"; $password = sha1($password); $password = md5($password); … | |
Greetings, I'm hoping that i can get some help on an exercise I'm doing dealing with multidimensional arrays. I want to move around a board and calculate how many steps I've taken on the board. Input asks for the seed number and how many steps to take. I just don't … | |
Hello All, Not sure this is the right forum, but I have a Visual Studio question. I am used to using code::blocks as an IDE. My current instructor likes to use Visual Studio 2008, so I am trying to adjust. One big difference I have found is that when a … | |
I'm a C++ student, and I'm almost there on this assignment, except I can't get the search function to work correctly. The search function should accept a search input from the user, then list all the items related to that input. In this case, its all the tasks related to … | |
Hey all, I'm fairly new to C++ and am trying to write a program that continues asking the user for a number until "0" is entered. I am supposed to count the number of positive, negative, odd, and even numbers that the user has entered once the program is terminated(0 … | |
who has a program of grading system in visual basic? thanks for your concern!!! | |
I am having some basic compile issues defining a BorderBrush. [url]http://msdn.microsoft.com/en-us/library/system.windows.controls.border.borderbrush.aspx[/url] states that you define a borderbrush like this: myBorder1 = new Border(); myBorder1.BorderBrush = Brushes.SlateBlue; but in my code, when I try border1.BorderBrush = Brushes.SlateBlue; I get Error 1 The name 'Brushes' does not exist in the current context … | |
i need help on how to convert ucs2 to utf8 i dont want to use any functions that instantly converts the 2 what i want to do is that from what i have read about this topic that ucs2 has 16 bits i want to convert the 16 bits to … | |
Here are 2 simple files I am unsucessfully trying to combine and make the .exe. The errors i get are: Multiple definition of '_fun1' and '_fun2'. I am using the Cygwin gcc compiler. Please advice, Thanks. [CODE]#include <stdio.h> #include "functions.c" int i = 35; int fun1(); int fun2(); int main() … | |
Hi, I don't understand how to write unix shell commands in python. I have this txt file were I want to delete duplicates. It looks something like this: RTGR.txt FRTO.txt RTGR.txt SDOP.txt QWJL.txt SDOP.txt FRTO.txt FRTO.txt ...etcetc... I think I'm suppose to import os and then I want to use … | |
Hello! Im writing a program that outputs some triangles and such. And I want to count the written *s. If anyone would help i would really appreciate it. Code: [CODE]#include <iostream> #include <string> using namespace std; int main() { char znak; znak = '*'; int st_vrst = 0; int ploscina_trikotnika, … | |
I got this error, when the bullet collides with the enemy. [CODE] 341, 458 null 341, 458 null 341, 458 null 341, 456 java.awt.Rectangle[x=340,y=75,width=50,height=50] 341, 456 java.awt.Rectangle[x=325,y=45,width=50,height=50] 341, 456 java.awt.Rectangle[x=479,y=15,width=50,height=50] 341, 454 java.awt.Rectangle[x=340,y=76,width=50,height=50] <CUT THIS OUT. ABOUT 1000 LINES LIKE THE ONES ABOVE> 305, 352 java.awt.Rectangle[x=222,y=36,width=50,height=50] 305, 352 java.awt.Rectangle[x=299,y=6,width=50,height=50] 341, … | |
[CODE]private void rbWeek_CheckedChanged(object sender, EventArgs e) { if (rbWeek.Enabled == true) { DialogResult dChangeCycle = MessageBox.Show("Yes to start new billing cycle from today's date. No will make no changes to next billing Date.", "Next Billing Date Change", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (dChangeCycle == DialogResult.No) { } else if (dChangeCycle == DialogResult.Yes) … | |
Hello once again. Ive been tasked with writing a program the calculates the number of legos needed to create a pyramid. I have to do this in an array for a specific level ie...level 4 requires 16 legos to complete, as well as the total number of legos to complete … | |
Okay so I have figured out a simple solution but the problem is it might not always work; so I want to combine it with something else to make sure my applications only run on the computer that ran the application first. Basically I retrieved the host name of the … | |
I am a newbie who just graduated. I found my first job and begin to review some legacy codes And I find out there are a lot of macros which could be replaced by function (somebody especially c coders may think macro is a better choice) Not even that, I … | |
I have the following code to generate an array of random numbers. How can I get it to print the array like [5,89,76,34,2] instead of printing down. I don't think it is actually printing the array just the numbers. [code] import java.util.Random; public class RandomIntArray { private int[] numbers; public … | |
i have this code for adding a node after the previous node, but valgrind is saying that there is a memory leak of 16 bytes, can someone please help me identify where the leak is? i think i didnt assign a null pointer somewhere but im not sure exactly where … | |
In writing a logging program for a SDK Engine, I have come across some problems. The logging function works fine when called with test programs, but when I run it in a full test of the SDK Engine, no file is ever created. I added some testing lines to make … | |
I need to make this code set "str" as "Recent" if the "str" got no value. Right now i have to use this: [CODE]<form> <select name="users" onChange="showUser(this.value)"> <option value="">Select album:</option> <option value="Recent">Somealbumname</option> </select> </form>[/CODE] but its really annoying to have to use the select, i want the code to load … | |
ok for one... I must say I'm a noob at classes, but have made some pretty good apps using nothing but functions. I'd like to get into classes though, and every time I try, I end up misunderstanding 1 or 2 things and messing the whole thing up... <:\ can … | |
calculate value of PI from the infinite series Ï€ = 4-4/3+4/5-4/7+4/9-4/11 +..... write a class with two data members aproxivalue(double value ) and percision ( integer value ) where precion is the number of terms of the series used to compute the value of approxivalue : 1- default constructor permits … | |
Hi, Here is what I want to do: I already have a php login system and I want to integrate a private messaging system into it. Does anyone have any recommendations of Private Messaging scripts? Thanks so much, Max. | |
Please take a look at the following code. When I do not put my pointers in an array the code works. See the commented out section. I thought it would be nice to do an array as I could then have more control over my output. I could also add … ![]() | |
Hi I am somewhat a noob when it comes to php and have stumbled on something I cannot see how to do. I have a script which plugs into joomla and extracts orders from redshop using direct mysql access. This means that the source code is all mine on my … | |
hi i'm a vb.net programmer trying to learn C# for now. Let me ask you about simple questions in C# How do you do this in C#? this is a vb.net code: [CODE] TextBox1.Text = 1 [/CODE] | |
I need autofill script but i dont know where to begin I have mysql databese table like this (records aprox. 400): id | product name | barcode | quantity | price ------------------------------------------------------------- 1 | procuct 1 | 0000001 | 21 | 12 2 | procuct 2 | 0000002 | 23 … | |
I'm having a bit of trouble figuring out what i'm doing wrong with my overloaded operators Header file [CODE]#ifndef SavingsAccount_H #define SavingsAccount_H #include <string> using namespace std; class SavingsAccount { friend istream &operator >>(istream& input, SavingsAccount & ); friend ostream &operator <<(ostream& output, const SavingsAccount & ); public: SavingsAccount(); SavingsAccount(string, … | |
Hi guys, I have a difficult problem to solve. I have a list with 4 columns of values as follow 750.633 379.039 652.524 1112.63 930.491 452.16 842.753 1191.78 882.063 446.411 787.56 1183.43 434.362 410.174 325.863 1145.34 954.426 445.297 865.449 1183.74 1233.67 194.909 1155.27 908.305 1505.97 917.95 1441.07 1698.01 852.882 133.219 … | |
Hi everyone, i want to make search on my website,the search is made through rss base. please guide me how i get rss websites through for my local search. i want to get product name and product price for the search result. | |
Hello everyone, I need some help understanding some concepts and possibly with my logic on this problem. We are supposed to create a program that asks users for their name, id, and grade average. The set is supposed to be where the exception is thrown. When the user enters their … | |
I'm new to generic programming and I just cant figure out what is wrong in this . The program is supposed to make a linked list using class. I have used 2 classes so that a single object of class LL can be used to manipulate a linked list . … | |
Hi Frendz, How to send free SMS to mobiles using php? I'm trying lot of codes but all is going to vein. | |
I am working on a project called Payroll Management System... and am using C as the platform. The project will look to ADD..VIEW..DELETE..& EDIT employee details. All this will be done by the Administrator. I have been working on it a bit lately.. and i know before i seek help.. … | |
Hi, Can anyone help me as to how I would handle recurring invoices in PHP I have it making invouices with a due date... but say I wanted to mark an invoice to auto invoice every month... how would the script work and what data is needed to do that? … | |
Hi, I find in all books and websites that in order to run a Python script from the command prompt, I have to run something like this [CODE]python example.py 1.3[/CODE] where [B]example.py[/B] script is provided with an argument of 1.3. However, it is not working for me in Windows 7 … | |
Hey all I need to convert audio file of wav format into text file in order to feed it as input to an encryption algorithm(IBE encrypt method of [URL="http://www.shamus.ie/"]Miracl[/URL] library takes only texts as input) and have to reconvert the decrypted text file to audio format. Could you please suggest … | |
I'm using ArrayList. But the problem is that the indexOf function is not working in a for loop. It's showing 0 for all the elements or objects. Code goes like that for a FOR loop : [CODE]for(or_data or : counts.or_gates) { if (or.isHit(x, y)) { mutual=counts.or_gates.indexOf(or); set_move_cursor(); or.addX(dx); or.addY(dy); System.out.println("Got … | |
I am having a problem with trying to copy a "char array to an int array". I have a code to randomly picked an amount of character and (in progress) print out how many occurrences, even if it's not in there a letter has. For now I'm only doing upper … | |
Well I noticed recently that the more unusual bool operators arnt there. How would I use them? Ex: xand, NAND, nor, etc. |
The End.