64,152 Solved Topics
Remove Filter ![]() | |
Hi, How to make at code that calculator will operate with 3 numbers (Example: 15 - 2 * 5) and that [U]multiplication and division[/U] have precedence over [U]addition and subtraction[/U] ? At that code it operates just with 2 numbers: [CODE] int num1; int num2; string operand; float answer; Console.Write("Please … | |
Ok, here's another problem which i really need help. One suggestion from our panel suggested if we can have a module which do not allow deleting a record (one or more) in the database which are Administrator type. Those records cannot be deleted whether through 1. the program itself (via … | |
Hi Guys, I am a relative new member in this forum , My name is Javin Paul and I am Java programmer. I have question related to garbage collection in Java Does garbage collection occurs in PERM Area of Java Heap ? As per my knowledge PERM area is used … | |
hi, i'm new to python. i want to read from a text file (as attached) and i want to plot a scatterplot. i want to plot lane as X-axis, EyVt and EyHt as Y-axis. i have a sample code but i need help on how to get python start reading … | |
Hi, I'm new to Python and having difficulty opening my .py file (ex1.py). In the command prompt I cd to the folder containing the file and when I try to open it nothing happens. The prompt just gives me a new line. It looks like this... 1. I open the … | |
I am confused, I seem to be losing the variable item.Size when i go from one for loop to the next....why? When i show item.Size the first time it shows all the #s, the second time I get straight 0s? [CODE]for (unsigned long int q = 0; q < tableCount; … | |
I have a question about function precedence. How does the compiler decide which function to call in quasi ambiguous situations? Is it laid out in the standard or is it implementation dependent? If you look at the attached code you'll see I'm outputting the value contained by the myint object. … | |
Hello, My friend and I are learning to program by creating and solving little challenges for each other. In the most recent one, he hid something in the resources of his program. I can find and save the resource off manually using .NET Reflector; but I am trying to do … | |
Hi, I have the code below for a login script. I not finished it yet and i moved from Dreamweaver to Netbeans a while ago and all my code has lost it's indentation and formatting. I am missing some curly bracelets i am sure of it but cannot find where … | |
Hi! I would like to make transparent my two JScrollPane components. Could please someone explain me why the code [ICODE] scrollPane1.setOpaque(false); scrollPane2.setOpaque(false); imagePanel.setOpaque(false); beads.setOpaque(false);[/ICODE] does not work? Thanks! [CODE] public SelectablePanel() { beads = new BeadsCollection(NR_OF_BEADS); imagePanel = new ImageSelectionPanel(0, NR_OF_BEADS_SIZE); p = new Point(); JInternalFrame jif = new JInternalFrame("Title", … | |
if i were to do this in a program, would it possibly overwrite data/memory that is already being using by my application? int main() { char *pointer = "hi"; pointer = "weeeeeeeeeeeeeeeeeeeeeee"; return 0; } | |
i really want to know that ...Is Quality of software relative???? if yes then how??? i couldnot get it???? | |
Pretty much what it says in the title, _orgDrspath = std::string, newDrsName = std::string [CODE]std::cout << "Opening original " << _orgDrsPath << std::endl; // Store all bytes into a variable called exe std::ifstream inFileDrs(_orgDrsPath, std::ios::in | std::ios::binary); inFileDrs.seekg(0, std::ios::end); size_t len = inFileDrs.tellg(); int newLen = 1024*1024; char *theDrs = … | |
If i may ask, Is it possible to update multiple rows in a database at once. if yes, how? I have a dbase of almost 100 people. Each one has a unique reference number like this: NPHCDA/MSS/109 but i want to update the records of the hundred people and include … | |
I I'm trying to create an application in real mode that uses the flags to store the results of calculations and other stuff. I'm trying to do this to take up less memory. So can someone please give me some example code or tell me how to do this. I … | |
Hi everyone! I want to design a biometrics system. already, i've got it working to an extent. i can now save individual details with their images and thumbprints but i want to do a validation on the thumprints so no one person can be registered twice. thanks | |
Hi, I am trying to write a simple c++ script to learn more about file manipulation. First script is adding some info a file as a structure and second one is reading from the file. However when i try to read from my file it always shows the found values … | |
Hi, I'm a relative newb to Python and I'm starting my first major project - a logarithmic graphing system. I'm using tkinter for the GUI part of the design, but I've run into a problem. Basically, I want my graph (a tk canvas) to appear in the same (root) window … | |
Hi, I have a sign up form that generates a activation key and emails it to user and they cannot login until account has been activated etc. I know how to do the MySQL query to check if activation key already exists and have a function that generates a random … | |
Why do I get the extra "3" in this replacement? $s='This is 3a and 3b'; $pattern='/3([a-z])/'; $replace='[$0]'; preg_replace($pattern, $replace, $s) gives 'This is [3a] and [3b]' I thought $0 refers only to the match in the parenthesis. Same with $replace='[\0]'; I want: 'This is [a] and [b]' Thanks for any … | |
Hi! Can someone tell me on how could I display the data from my SQL to a ListView? I only have one column to display. Thank you very much and God Bless! :) | |
Hello! I've created a script that allows you to create a 'page' by saving the relevant information to a MySQL database. One script will generate all of the pages that are created by the id # that is passed to said script. Of course. When saving the page's information MySQL … | |
I have been googling all day today and I've been trying to find some small, i know it won't be small, amount of code that will allow me to skin my VB.NET project. I don't want to do much to it as far as skinning. If you google GeekSquad MRI, … | |
Hi all, I've scoured the internet for examples that would allow me to figure out how to apply functors in my specific case, but I just can't seem to make the shift from the examples I find to figuring out how to use it for my own code. Here is … | |
![]() | Having an issue switching a listview from Tile to Details View with groups. When the list view has groups and the Default View is Tile, when changing the view to Details the first Group is not shown. Its under the column header. I jerry rigged it with creating a global … ![]() |
Hi to all! In the following code I am trying to implement a non-directed graph using adjacency lists. Even though there are no compilation errors, I don't get any results. When I am debugging the code it seems that there is a problem when I try to insert a second … | |
Hey guys! Its me again. I'm working with a SQLite database, and I want to list every entry inside a listbox (only the "Name" row). I know that I can list everything inside a DataGrid, but I don't want to list everything (: Also... sometimes, when you open a window … | |
ok so the program gets a list of numbers, and it counts how many times a number is entered. [CODE]for(int i = 0; i < numList.size(); i++){ for(int j = numList.size() - 1; j > i; j--){ if(numList.get(i) == numList.get(j)){ count++; numList.remove(j); } } System.out.println(numList.get(i) +" " + count); count … | |
Hi folks I'm trying a auction script that can be accessed in this link: [url]http://www.argoestores.com/V607/index.php[/url] it works well on this hosting plan when i try to use the same script in windows 7 using wamp the page renders like this: [URL=http://img232.imageshack.us/i/imgah.png/][IMG]http://img232.imageshack.us/img232/8066/imgah.png[/IMG][/URL] the script needs a folder to be chmoded to … | |
Hi there, I am looking for some help on PHP/MySQL please :) I have a site where you add an item via a form which is then put into a mysql data base. I was wondering if there was anyway so that on this inital form there could be a … | |
Hi. I have an external file where I have the results of a dictionary: [CODE]google.com {'facebook.com': 230, 'yahoo.com': 9, 'fifa.org': 67, 'msn.com': 3} yahoo.com {'apps.facebook.com': 13, 'msn.com': 9, 'myp2p.eu': 2} [/CODE] The results show the search engines, the links have been clicked from the search engine and the number of … | |
Hi everyone, I'm building a microblogging system like twitter and I need help in optimizing the database structure. I have tables "user_info", "posts" and "friends". Each time when user logs in, lets say user X, all latest posts of friends of X should be displayed. So it means that when … | |
Sorry about the title, but I thought it would be interesting. Here is my problem. I am supposed to convert a certain input into a desired output. The input is 2 201101190930 F76.4 201101191330 C16.3 The first number is the number of strings in the file. It then goes YYYYMMDDHHMM … | |
Hi I need to create an application that converts an image to an icon. This is for a school project, and I know there are libraries in VB that do image conversion, however I have to make the conversion process myself. My first task is to convert an JPEG into … | |
If I wanted to call the RUN prompt and the Command prompt in my application, what exe's would I need to reference? | |
I have another modification to make to my Random Image Script and I'm hoping someone can help me with the punctuation. I need to add an [usemap="#Map"] to the code on line #7 below: [CODE]<?php //This will get an array of all the gif, jpg and png images in a … | |
Hi, I need your help... I need to get the value selected by a user from the HTML page and pass this value into my servlet program for processing. So I did something like this: Part of my jsp code: [CODE] <select name="tool" id="tool"> <option value=kim>KIM</option> <option value=ontomat>Ontomat Annotizer</option> <option … ![]() | |
Hello, I have a program with the following variable: [CODE]char dateCode[13];[/CODE] and the this type of data is held by the variable -> 2011006+0000 Now if i want to print only 2011006, and ignore the + and everything after, is there a way to do that in c++? Would i … | |
hi, i have wrote the following code.... [CODE] private void button_MouseEnter(object sender, EventArgs e) { if ( button.Enabled== false) label1.Text = "Please Select the area to scan"; else label1.Text = "It will scan the specified area"; } [/CODE] and used mouse enter handler.The problem i am getting is it give … | |
So I have started learning Java for my senior project at school and I would really like to make a tower defense game as my project. I have been looking for tutorials that would help but I am having trouble finding some. I have been using [url]www.javacoffeebreak.com[/url] and I've been … | |
I have an app put together that reads from a text file using streamreader. I have it coded, maybe not the best but it returns only the first line in the text file. I'm trying to get it to select a random line each time a button is pressed. [CODE] … | |
Hello, i'm justarting out with OOP with Java and i'm looking for a bit of help with a bit of code as i can't quite work out why it wont work as i'm still learning. Here's what im being asked to do [I]write a public method called requestPositionsAndMove() which takes … | |
Hellow everybodi... I succed to finish my first web site on local machine and i bought a host services and a domain name. After uploading files and mysql database I have only a huge blank page on index ....something it not wright.... Please help .... | |
Hi Thanks for the replies for my previous question. I m beginner to coldfusion and I will explain my whole problem in detail now. My client had developed an application in coldfusion and we are using that. Actually there is no login system for that application.The user can enter into … | |
| |
[code] class A: def __init__(self): print 'A()' class B(A): def __init__(self): A.__init__(self) print 'B()' class C(B): def __init__(self): B.__init__(self) print 'C()' c = C() [/code] Cans omeone help me explaining what am I doing wrong here? I`m getting an error like: [code] B.__init__() TypeError: unbound method __init__() must be called … | |
Hi, Can enyone helpsme.Im new to C#. i gt this error. Embedded statement cannot be a declaration or labeled statement My code is [CODE] foreach (Form form in Application.OpenForms){ if (form is productResults) productResults pr =(productResults)form; } [/CODE] PLZ...help me. | |
Hello all, I am just learning AJAX because I find it interesting but my first example does not work the way I planned it. Here is the code: This is my HTML file named ajax.html <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <meta name="author" content="" /> <title>Untitled 3</title> <script type="text/javascript" … | |
How can i trigger Leave Cell event for Msflexgrid through command button click or textbox lost focus. | |
my problem is so simple guys, how do i make [B]3 textboxes[/B] connect to a database of users using [B]adodc in a different form?[/B] [B]so that if you entered your userid, username and password you could log in.[/B] i cant post my code now but ill try later on. |
The End.