199,114 Archived Topics
Remove Filter ![]() | |
how to write a c programme to print the numbers in following way 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 0 1 please help me | |
Hi guys i'm working on some code whereby the user inputs a distance and time they took spent running for days 1 to 6 and it works fine however I can't get it to display a message box if the user inputs letters instead of numbers. I've had a go … | |
The program will give the following output 55 45 36 28 21 15 10 6 3 1 0 Now, I have managed to print only the followings: 55 45 36 28 21 // This line with some kind of error though it ran. Now what should be the addtional codes … | |
hello.... i want to do the validations in registration form. but my validation is when the user enters the value in textbox that value automatically cheks that value is already in database or not. for example..........username textbox is there..now i am entering value first three letter "kal" then comes beside … | |
I have one combo box “cboitemname” and one text box “itemcode” in vb6 form,I have a table “stock” in sql server 2000 database where data about item name and its code is present, in rutime I want to disply item code of item that I select from combolist, how should … | |
![]() | Hi, I would like to know if it's possible to specify the "target='FrameName'" in response.sendRedirect("Home.jsp") by any chance? I tried this: [CODE] <!-- Security Check --> <form action="Login" target="_top"> <% if ((String) request.getSession(false).getAttribute("sessionStatus") == null) { response.sendRedirect("Login?pageTimeout=yes"); } %> </form> <!-- Security Check --> [/CODE] But it doesn't work... The … ![]() |
hi..can anyone explain to me?? i am very confused abt this two.. for example; iint m [] = { 3, 2, 5, 2 }; int k = 0; System.out.println("(a)" + m[ k++ ]; System.out.println("(a)" + m[ ++k ]; *i compiled..but i dun understand why is the result 3 and 5 … | |
wats roang in here .. [LIST=1] [*]<?php [*]ini_set('display_errors', 1); [*]//connecting to database [*]$error = "nu am putut sa ma conectez :("; [*]mysql_connect('localhost','root','')or die ($error); [*]mysql_select_db('dan') or die ($error); [*]//max display pet page [*]$per_page = 2; [*]//get start variabel [*]$start = $_GET['start'] ; [*]//cont record [*]$record_count = mysql_num_rows( mysql_query("SELECT *FROM news")); … | |
Hi all, I am looking for a method to make a html element empty (no innerHTML). This would be pretty easy if it weren't for IE. IE has the bug that innerHTML is read-only for tables (and some other elements too). So my function [CODE=javascript] function clearElement(id){ document.getElementById(id).innerHTML = ""; … | |
ei could someone help me with my problem. I got error running my projects on localhost. I dont know what caused this, but this problem occured when i replace my wampserver2.0c to the latest version wampserver2.0i. before there is no error it works fine. but now when i logged in … | |
hi ... i am making a program which can handle bank acount system. In which User can MakeDeposite,WithDraw money and CheckRemainingBalance. when user MakeDeposite then a certain amount should be saved and as how much times user MakeDeposit, it should be added in balance amount and as how many times … | |
Hello all. I've got this upload script, working just fine. [CODE] <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $errors=0; if($_SERVER["REQUEST_METHOD"] == "POST") { $image =$_FILES["file"]["name"]; $uploadedfile = $_FILES['file']['tmp_name']; … | |
![]() | Hi, I am getting 3 warning messages below: Warning: mysql_free_result() expects parameter 1 to be resource, null given in J:\xampp\htdocs\propertypages\resultsForSale.php on line 660 Warning: mysql_free_result() expects parameter 1 to be resource, null given in J:\xampp\htdocs\propertypages\resultsForSale.php on line 662 Warning: mysql_free_result() expects parameter 1 to be resource, null given in J:\xampp\htdocs\propertypages\resultsForSale.php … |
Hello. I've been trying to solve this problem but I can't and my head hurts already. Please help me. [code=c] #include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #define max 12 #define num 30 #define nam 24 typedef struct { char name[nam]; int score; int rank; }CONTESTANT; typedef struct { CONTESTANT CA; int next; … | |
hey guys i m trying to retrieve data frm Db.. Its a very simple query what cant understand whats going wrong with the code. It shows "[I]Parse error: parse error in C:\wamp\www\php\table.php on line 35[/I]" here is the code: <?php // creating table include "var1.php"; mysql_select_db('wiley'); $qry="SELECT movie_name, movie_leadactor, movie_director … | |
How would you draw a expression tree that is (a-2/(5 * b) plus 3) * (2 * d)? I am really confused on the first parenthesis. Thank you for your help. | |
I think my thread title is a bit incomplete. coz these are my questions.I need answers to these questions for the completion of my thesis. [B]I Know this is sort of a long message but im detailing the situation for better understanding of my questions.[/B] And because these thread is … | |
This is what I have of my code so far but I cant get it to work right, Can someone help me fix this I need to make a float function that converts celsius to fahrenheit but im not totally sure how to do it I also need to make … | |
I have a program. Here import java.awt.*; import java.awt.event.*; import javax.swing.*; class MarqueeTest { public static void main(String[] args) { MyFrame frame = new MyFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } } class MyFrame extends JFrame implements ActionListener { private ActionListener listener; private Timer t1; public MyFrame() { Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); setSize(d.width,d.height); … | |
I an trying to write a few java classes, which I wrote successfully, but when I am tryin to test it I get some weird errors and I cant figure out why, so i'd be very grateful for your expertise. The code for the GCD class is: [code] public class … | |
Ok so heres my story. Ive done basic programming before with serverside javascript which is not really used but effective when creating small backend databases and its kinda like vb script, so im familiar with basic concepts like funtions, arrays etc Ive been reading some books on C++ and ive … | |
Hey, I am just learning functions. I was wondering if you could tell me why this piece of code is not implementing the 'values' function. [code] #include <iostream> #include <windows.h> #include <string> #include <iomanip> void values(float value1[11]); using namespace std; float value1[11], value2[11]; int main() { cout << setiosflags(ios::fixed) << … | |
This is what I have already but I dont know if I am meeting the specs for my assingment... anyone have any input of what I should do? Assignment is Write a program that will ask the user for a temperature in Centigrade (Celsius) and convert it to the Fahrenheit … | |
I have be struggling to turn the below while loop into a foreach loop with no result, so I am asking for help here on how to do this. [code] $query = "Select * from TIME_TABLE Where Extract(month from DATE_FIELD ) = DATE_FORMAT(NOW(), '%c') and Extract(day from DATE_FIELD ) = … | |
Hey DW. Working on a nice poker application and need some help. Right now I'm trying to go through two arraylists, one of chars and one of sorted ints (representing the suites, and numbers of the cards) and delete duplicating numbs (and the char/suite counterpart in the other array). In … | |
hello everyone, i am trying to write a code that displays a table with 75 years. each year has to display the world population and the projected population for the following years after that by multiplying the current population by the yearly growth (1.17) but i am running into some … | |
I want to finaly learn what's up with pointers and arrays, so i made up this program: [CODE]#include <stdio.h> int main() { int cantidad_frases = 0; printf("Cuantas frases quieres escribir?: "); scanf("%d", &cantidad_frases); char *frases[cantidad_frases]; for(unsigned i = 0; i < cantidad_frases; i++) { [B]for(; *frases[i]; frases[i]++)[/B] { *frases[i] = … | |
Write a function called NumDistinctDict that takes a single parameter alist that determines the number of distinct values in alist. For example, the list [1,2,4,2,7] contains 3 unique values (namely 1,2,4 and 7). | |
So I want to make a class based RPG, as a project to help me understand how classes work. Unfortunately, I didn't get far. The below code is intended to make an instance of a character and have info in it like name, health, gold, exp, and the like. I … | |
Just testing out arrays on this one. MY project is to create a thermometer that converts Celsius to Fahrenheit or vice-versa. [code] #include <iostream> #include <windows.h> #include <string> #include <iomanip> using namespace std; int main() { cout << setiosflags(ios::fixed) << setprecision(2) << ios::showpoint; float value1[11], value2[11]; char gauge1, gauge2, gauge; … | |
How do you know when to use a function by wraping the content between parentheses "function(x) or through dot notation x.function() ? thanks. ![]() | |
Hey i'm a newbie.... Just started using php.... Been a month now !!! I use notepad++, firebug and a wamp server for all my development work.... Can anyone suggest good tools that'll make my work easier... and also a good debugger ..... | |
Afternoon: I am trying to create a loop to give me a series of random numbers. I need the random numbers to be between 100 and 999, this is necessary so I can divide the numbers by 1000 and then use this numbers for another program. My problem is that … | |
Hi there, I was hoping for some advice on how best to solve my problem. I'm creating a .csv file to store objects in, but the datamembers which are strings, require the ability to have commas within the strings. I have found out that I therefore need to enclose the … | |
I have no idea how to do this. Please help. This week's lab is to design a hangman game. Your program should be able to open a text file which contains a list of words (one word on each line of the text file) and read the words into a … ![]() | |
I'm learning C, but a friend of mine asked for help with this code. I have debugged it with C::B and actually it crashes when getting out of the switch and starting to print out the menu again, after selection the first option (1. Polinomio) I 'watched' the polinomio pointer … | |
Im creating a calculator in a dialog box I have created all my headers and resource files with all my buttons and edits ready. This is a part of my .rc file: [CODE]EDITTEXT IDC_NUMBER,3,7,100,14,ES_NUMBER EDITTEXT IDC_NUMBER2,130,7,100,14,ES_NUMBER[/CODE] I have made these so the user can input integers and then use them … | |
hello every one i m trying to minimize the form size but less than what it allows for me if i do like this .. it is okey this.Size = new Size(124, 36); but less than these values for the width and length it won't work.. i need to make … | |
Hi, I tried the following code to capture the contents of the foreground window to an avi-file. It works under Python 2.6 and OpenCV2.0 though it only takes about 210 shots and then crashes. I think it might be a memory problem. Any ideas? You need to resize the window … | |
HEy, I am new to C# and dont know much about it. I am facing a problem while running my code in Visual Studio 2008. The problem is that the screen disappears immediately when the program ends. please help me. Thanks in advance. | |
VC++ access MySQL query problem Hi guys, Could you help me out with ------------ string str1 res=stmt->executeQuery("select * from test2 where english='str1'"); ------------ anyone can tell me where is wrong with this query code?below is the error msg I got: 1>.\temp6.cpp(48) : error C2146: syntax error : missing ')' before … | |
i`m making Quiz program which asking State and you answer capital. here is code import java.util.*; import java.awt.*; import java.applet.Applet; import java.awt.event.*; import java.io.*; import java.util.Random; public class Quiz extends Applet { private String textfile = null; private TextPanel text_p = null; private Vector question = new Vector(); private Vector … | |
i need some help on this. I have the array numbers stored already but the array dosent display on the screen. Why? here is the code [CODE] # include <stdio.h> # include "simpio.h" # include "genlib.h" # include "strlib.h" # include <math.h> # define size 3 main() { int intArray[size][size]; … | |
Yeah i made a totally new program. However it still doesnt work. The error message says that it is an invaled conversion from int to int*. Here is the code. Please fix it and help repost it. [CODE]# include <stdio.h> # include "simpio.h" # include "genlib.h" # define SIZE 500 … | |
Hi: I posted yesterday about setting my loop to get random number between the values I desire. Now I got a bit of misunderstanding with my arrays. In the program now I am trying to calculate the average sum of the amount of numbers I get each series. My problem … | |
Hello, Could anyone please explain a reason why data could not be received from a POSIX message queue using mq_receive(), called from a different file. Following is my code for a test that i'm running to try and transfer data from one file to another. main.c [code=c] #include "recfun.h" int … | |
Does anyone know of a php based forum that is easily customizable to work with an existing user base so that members don't have to register or sign in a second time when they access the forum? I heard that this is possible with phpbb3 but I haven't seen anything … | |
[CODE][/CODE]part 1 find the most efficient way of making change for any amount of money up to $200.00. the most efficient way means the fewer pieces of currency. the following are the values of monies to use. $ 100.00 $1.00 $ 50.00 $.50 $20.00 $.25 $10.00 $.10 $5.00 $.05 $2.00 … |
The End.