199,114 Archived Topics
Remove Filter ![]() | |
Hi, I'm trying to find out why my code won't run. I passed my years variable to the function to multiplied by 365 and stored in my time variable which should be printed out. Should "toDays(21)" be declared in my function instead? <!DOCTYPE html> <html> <head> <script> var years; toDays(21); … | |
I'm trying to figure out how to use '%s'. I looked it up in the python docs but it never actually shows how to use it. This is the line I'm working on right now just to figure it out. It is the first one of different variations where the … | |
import java.io.*; public class Mac extends Laptop { public static void main(String r[]) { new Mac().crunch(); } //insert code here } class Laptop { void crunch() throws IOException { } } The question is simple. Insert a code that will make the program compile. Answers are: `void crunch()` or `void … | |
**Hello C++/C Programmers there,** Please help with my program in C++, my program is always have 2 errors every time I compile and run it. My program is about string permutation which has main menu first. Here is my codes: #include<iostream.h> #include<conio.h> #include<stdio.h> int count=0; void permut(char stra1[],char append[]) { … | |
Hi. I have a class called step and in it i have a method `public IEnumerable<string> Execute(IEnumerable<string> input) ` when i trying creating a thread i did it as below List<string> l = new List<string>(); l.Add("a"); l.Add("r"); l.Add("d"); step s = new step(); Thread t3 = new Thread(s.Execute(l)); t3.Start(); give … | |
hi how to convert int into object in java kindly explain me with simple example have a nice time | |
char c[]= "JOJO1993"; char *p =c; printf( "%s", p+p[3] -p [1]) ; this is a code snippet. p is a pointer and when it is used as *(p+3) means 4th character. but my question how can a char pointer can be used as pointer to first byte of any object … | |
I use dr java for linux to run my code. I've been running into a bunch of errors recently while running this simple program. The code compiles fine but whenever I run the java file, I get the error; Static Error: Undefined name here's my code; (I've got two files, … | |
kindly help me n tell me in 2 dimension array wen we r taking words as input then cin would be used or getch..???plz replay.me waiting | |
Hello everyone. I'm in need of some help on how the compareTo method works. First I'll give you some background about it. This program was written in eclipse and it's a homework assignment. I'm trying to compare two Time objects and see which one is greater. here's the code import … | |
My program wont compile because of this one function, can someone explain to me why it is says "forbids comparison between pointer and integer" Any help would be appreciated void ReadBitPattern (ifstream& infile) { int x; x = cin.get(); if(cin.get() == "0") { for (int index = 0; index < … | |
anyone can help me please! i have a problem in coding... i want to restrict some buttons of my form if the user is not a admin i already tried this code.. sql = "SELECT Position FROM tbllogin WHERE username = "txtUsername.text"" NewDataSet(sql) if .ds.Tables("a").Rows.Count= "Administrator" Then employeeFile.btnDelete.Enabled = True … | |
Hi, I'm using InvisionPB to construct a query and basically generate a custom table. The following is what I have. I can get the query to echo prior to the switch/case but can't get it to display within the case itself. Any ideas? $this->DB->build( array( 'select' => "m.name", 'from' => … | |
Hi I am trying to write a small C++ program using nested loops so that when the program executes I have the following output displayed [code]** **** ****** ******** ********** ************[/code] Here is the code I have written. I seem to be having a problem with proper loop execution. I … | |
Hi, i need to create a binary matrix (one which elements can only be 1 or 0) in openCV. The nearest that I was getting is creating a matrix which elements are 8-bit values using the CV_8UC1 dataType. There must be another dataType which specifies that the matrix elements are … | |
I have to do an assignment for class, I have it all complete as far as the math needed but i need to output to a file and can't seem to figure it out. I have to print out prime numbers and I'm trying to follow the example on this … | |
hi, I installed both codeblocks ans codelite as suggested but these two IDEs are much different from the simple turbo c and I am having some similar problems using the two.:- during the first session i created a workspace and a new project(a console application) a main.c was created by … | |
Hello, I'm trying to create exchange rates list with the data source of my National Bank, and my national Bank make it very complicated, data are stored with SOAP, and first of all I made rate.php that pull and show all data from web service od National Bank but like … | |
hi i have a datgrid bound using a dataenvironment and i need to filter it using specific fields | |
I have a chat script but when you submit it without writing a message it submits the only the name of a person. How can i stop this? here is the code : <? session_start(); if(isset($_GET['logout'])){ $ip=$_SERVER['REMOTE_ADDR']; //Simple exit message $fp = fopen("log.html", 'a'); fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." … | |
Gah. I wrote all this code thnking that it would work properly, but it doesn't. [code] //#13 //Reads N days worth of stock prices,and spits out the highest increase. //Created 6/30/03, 8:38 PM class StockWatcher { public static void main (String args []) { double today = 0.00; //price of … | |
please everyone i want to know the advanced setiings between two forms. i want by database like Encarta software or others.that means when i click the first form i want to appear the second form only. so please help me. thank you. | |
i have tried hard but dont know wy im getting this error , error comes in line 8 class CPop { CBSVector<CTour> pop; CBSVector<double> probability; int popsize; double TotalFitness; CTour Elite; **CTspGAParams GAParameters;** } error C2059: syntax error : 'constant' error C2238: unexpected token(s) preceding ';' [POP]// Pop.h: interface for … | |
I've playing with pygame a little and reading about it and i tried to make a simple rock paper scrissors game. I can't seem to get fullscreen working. Everything i've tried or read didnt work. Can u please help me? thanks | |
Hello guys I want to make my file upload form appear similar on all browser.I current use the code below.This will show differently depending on browser <form action="upload.php" method="POST" enctype="multipart/form-data" > <input type="file" name="image"/> <p><button name="submit" type="submit"></button></p> This is not a secret to anyone:D How can i make the following … ![]() | |
Is there anyway on how can i get a more accurate coordinates? i'm doing a project for our school, the problem is i dont know how to get the right coordinates that i would like to create. Thanks in advance :) | |
Greetings, If i as for example have this: This is my main window Class MainWindow Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click Dim Other As New Window1 Other.Show() End Sub End Class This is the window that opens when button is clicked Public Class Window1 … | |
Hey, I want help guys ! I'm trying to create some kind of user control to be used as mdi container, I'm trying to create something like access form where you can create a subform within a form and then load another form into this subform. can anyone guide me … | |
pagelisting.php............. <html> <head> <h3 style="text-align:center;background-color:yellow">THIS THE LISTING PAGE</h3> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <?php include("home.php"); ?> </head> <body> <form action="" method="post" name="form1"> <br/><br/> <a href="fillup.php"><tr><th>Contacts</th></tr></a> <br/><br/> <input type="text" name="searchtext"/> <input type="submit" name="submit" Value="Search"/> </body> </html> <?php include("database.php"); $var=$_POST['searchtext']; if(isset($_POST['submit'])) { $sql="SELECT * FROM information WHERE fname LIKE '{$var}%'"; $q=mysql_query($sql) or die("some … | |
i wrote this program it c++ in response to this question "total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk (which will need to be a value rounded up to the nearest integer), the cost of producing the milk … | |
kindly let me know how to open an excel file in c++ | |
Can anyone teach me how to remove the background image in the form? i am trying to create a system that willn change its background color using option buttons but with the background image in place, the change in back color is not visible........ Please help me. Your immediate reply … | |
I am using [Video overlay](http://flowplayer.org/demos/tools/overlay.html) How to close **Video overlay** when video is finished? | |
![]() | Hi, I'm looking for pictures that can inspire me to design a login page.. the login page is going to be full screen window (no changing that), and all I know is that I gotta put 2 input boxes there (username & password) and a button.. (we don't show any … |
Hi- I need to create a program, or maybe a script of some sort, or even a browser extension possibly. I'm not sure... need some direction. Once logged into a webpage, I'll do this manually, I need to-- auto refresh the page every XX amount of seconds Detect a change … | |
HI, How can I read from a txt file using threads in C#, regards | |
Alright, so I am designing a program that contains binary trees to function as a parser. I have encounted a very strange problem that is causing my program to fail while it is running. I have done several tests and narrowed down the incidents. Ok, so this results in a … | |
[Pictures](http://postimage.org/image/qnqrsvenn/) the picture explain it all. | |
I have a DBF file with 1400+ rows and 32 columns and I need to write this to an Access DB table. The Access table was created by modifying the original structure of the DBF table in which I removed 12 unnecessary columns. I have been successful at loading the … | |
I tried to run the basic code to create and open a window . The code is as follows : #include <iostream> #include <SFML/Window.hpp> int main() { // Create the main window sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window"); // Start main loop bool Running = true; while (Running) { App.Display(); … | |
Hi all, In the program I'm working on, I am making a form that submits data to an Access 2007 database. I can connect to the database fine and run a select query, but when I try an insert query I get an error: "statement contains the following unknown field … | |
I was wondering why the compiler keeps telling me #include <iostream> #include <fstream> #include <iomanip> #include <cstdlib> #include <string> using namespace std; const int PatternSize = 8; typedef int OperandArray[PatternSize]; // the major data structure, the BitPattern class class BitPattern { public: // default constructor, sets all bits to zero … | |
Hi, I'm working on a site and but have come to an halt. http://adam.synology.me/help1.png today I have a dropdown list (circled in red) which lets the user choose a row of data from my database to visualize in the area to the right in various graphs and such. I would … | |
Hello everybody, I know it's a beginner's question (since I'm new to PHP), my question is how do you deploy your PHP website on the Web? Do you know any tool to host my site? This site FYI is a simple forum, that is to say, it's database-driven. So I'm … ![]() | |
Hi all, I have a terribly frustrating issue I'm trying to solve and wondered if anyone would be able to help? I have a simple HTML / CSS website hosted on my webserver. This website has a basic web contact form that allows a user to fill in their details … | |
Hi, i have a JComboBox in a small java program. if i see the properties of the JComboBox i can see SelectedIndex = -1 SelectedItem = null But i can't the name of each item and i have 5 items normally. Where can i see them in the properties? Thank … | |
![]() | Hey guys, I'm really stuck on this problem. I think you have to do backward recursion, but don't know how to go about it. I just need help with the algorthim for the function "backtracking". Find the best cheapest way to get from city 1 to city 2. I have … |
I'm in a class where the professor has just thrown us into the world of C with no help at all. So I would really appreciate any help anyone can give. I know Java and Visual Basic pretty well, so I'm not completely new and lost, I just don't understand … | |
Good Morning, I'm a little difficulty in writing and implementing a function that read a list of words of variable lengths and convert all letters to upper case. Ask the user to enter the size of the list. I shall use an array as pointers. So far, I have this, … |
The End.