199,114 Archived Topics
Remove Filter ![]() | |
Hey everyone. I'm trying to create a webpage where everything you click, it reloads in the main content div with the new page. Heres an example of what im talking about. This is my main content. [code] <?php switch ($Content) { case register: echo "<a href=\register.php</a>"; break; default: echo "Welcome … | |
I have a program that creates a linked list and is required to count the number of elements in the list. This is what I have thus far. [code=c] #include <iostream> using namespace std; struct listrec { int value; struct listrec *next; }; listrec e1,e2,e3; int listsize(listrec); struct listrec* temp; … | |
This is what I have. I know I am missing something can you help [code = python]import string def main(): print "This program replaces 4 lettter words in a file with xxxx" # get the sequence of words from the file fname = raw_input("File to analyze: ") text = open(fname,'r').read() … | |
Hi All, I have been working on this all night. I have to convert degrees to celcius and vice versa. I keep having 2 errors. "possible loss of precision". I am new to java, but also I think I am having serious mental issues at this point. Here is my … | |
I made a dynamic 2D array using 'calloc', but when I try to fill it, I get the following error: [INLINECODE]name lookup of `j' changed for new ISO `for' scoping [/INLINECODE] Here's the part of the code where it stops: [CODE=c] for(int j=count;j<prod;j++); { ct[j][0]=50+(j-count+1)*offset; //error here count++; } [/CODE] … | |
[COLOR=purple][B]I NEED HELP WITH THE 4-QUEENS PROBLEM.:rolleyes: [/B][/COLOR] [B][COLOR=#800080]I HAVE TO BUILD A PROGRAM FOR 4 QUEENS SOLUTION USING C.......:?: [/COLOR][/B] [B][COLOR=#800080]FOR MY DATA STRUCTURE PROJECT.[/COLOR][/B] [B][COLOR=#800080]CAN ANY1 HELP ME WITH THE SOLUTION FOR THIS....... I NEED THE PROGRAM......[/COLOR][/B] [B][COLOR=#800080]THE QUESTION IS THAT: [/COLOR][/B] [B][COLOR=#800080]U HAVE A 4*4 CHESSBOARD. PLACE … | |
Last quarter our last assignment was to create two programs that gernerate silly sentences from words contained in a file. I was able to create the program with a map, but have no idea how to do it with a hash map. Since it was the end of the quarter, … ![]() | |
hi everyon i'm new and i need some help. I've been taking a class in C++ and i downloaded the C++ 2005 express edition to my laptop to work on it at home, and the header file iomanip.h doesn't work. I bet this is probally an easy fix but help … | |
dear people! i have made a program to calculate the smallest and largest of numbers trough a reference funtion. i am stuck in a very small part. in main function i should do like if somebody dont enter anynumber or enter a number bellow 0 the program should say NOTHING … | |
My program is reading from a file that has the following lines (plus quite a few more....) the name of the txt file is palindromes.txt. [code] Able was I ere I saw elba Go hang a salami I'm a lasagna hog Dennis and Edna sinned Satan oscillate my metallic sonatas … | |
I have a general question about compilers, I just want to know the opinions of people that have been using them for a while. I want to know what is your favorite one (the name and version) and why you like it the best. | |
Can anyone spot the semantic error in this triangular number calculator here? It correctly reports 21 as being a triangle number but incorrectly that 15 is not a triangle number. However if you input 15 as the first value entered it correctly says that 15 is a triangle number!! [code] … | |
hi Please help,i have installed Visual studio .net 2003. i code in C#, when i write my code, for example "Console." imidiately before i complete the statement it closes the application requesting to restart the application, and i wrote my code on a notepad making sure that the code is … | |
Does anybody know how to use integers larger than the "long long int" type? I have tried using arrays of ints, but mathematical functions are impossible. Thanks in advance. :cheesy: | |
Hi, I am using the following items in my s/w.... ------------------------------------------------------ Reporting Toolkit: Crystal Report (CR 11). S/W Front End: Visual Basic 6.0 with Service Pack 6 Back End RDBMS: Microsoft Access 2000 ------------------------------------------------------ I am almost done with CR 11 and its integration into my s/w. Great Thanks !! … | |
I am writing a program that allows the user to insert numbers and then the program sorts them into ascending order. I have this accomplished, however, I also need an array to count the number of times each number the user inserts occurs. For ex: Say the user inserts 3 … | |
I'm following a shopping cart tutorial and this snippet is confusing. I have a vague idea, but can some one pls explain what this means? [COLOR=red]// setting up the web root and server root for[/COLOR] [COLOR=red]// this shopping cart application[/COLOR] [COLOR=red]$thisFile = str_replace('\', '/', __FILE__);[/COLOR] [COLOR=red]$docRoot = $_SERVER['DOCUMENT_ROOT'];[/COLOR] [COLOR=red][/COLOR] [COLOR=red]$webRoot … | |
I don't know a heck of a lot about PHP, but enough to get by usually. This one has me stumped. [url]http://www.signwire.com/dimensional-letters/metal/signage.php[/url] is showing up as a live page on five unrelated computers. The problem is that the page does not exist on the server, at least not in the … | |
I want to captured my actual game as a video, Can someone tell me some freeware for this. and one thing more can i record a movie with my actual desktop?!with moving background or movie on the screen? | |
Hi I am new to C++ and I would be grateful for some help with the following: [code] #pragma argsused int main(int argc, char **argv) { AnsiString Line; int Index; Line = ReadStringPr("Enter your text. It must not finish with a space character." ); Index = 1; while (Index <= … | |
I have this code (example) [CODE] const char g_sz_className[] = "myWindowClass"; LRESULT CALLBACK WndProc(HWND hwnd, UNIT msg,WPARAM wParam, LPARAM lPraram) { switch(msg) { case WM_CLOSE: DestroyWindow(hwnd); break; case WM_DESTROY: PostQuitMessage; break; default: return DefWindowProc(hwnd, msg, wParam, lParam); } return 0; } int WINAPI WinMain(HISTANCE hIstance, HISTANCE hPrevIstance, LPSTR lpCmdLine, int … | |
please i need someone to help write a program that receives some sets of binary numbers and convert to decimal..... using C++ | |
Hello *, I was writing an assert() stmt when I realized the following (see code). Can anyone explain why/how. My final aim is to be able to write an assert stmt for verifying that my function (a demo function) works fine. I heard from someone that there are special assert-macros/comparision-operators … | |
Hello I have two forms currently. One is "normal" and the other is set to topmost and invisible. I want the topmost form to capture all keyboard input, but the form underneath should still be operational (have methods called, values changed, have it's buttons clicked etc) That in itself I … | |
Hello every one i am working on a project ,in that i need to send a mail from client to Admin or client to client .I have seen some samples in net but they are not working main problem is javax.mail. *; is not importing Can any one help me … | |
Okay I need to find a way to mix up a word (a String) recursively. I have just been trying some stuff: [code] import java.util.Random; public class JumbleRecursive { public static void main(String args[ ]) { String word = "test"; System.out.println(jumbleRecursive(word)); } public static String jumbleRecursive(String word) { String a … ![]() | |
#include<iostream> #include<fstream> using namespace std; void main(){ ifstream inf("data.txt"); char name[30]; while(!inf.getline(name, 30, '|').eof()) { char jersey_number[10]; char best_time[10]; char sport[40]; char high_school[40]; inf.getline(jersey_number, 10, '|');// #read thru pipe inf.getline(best_time, 10); // #read thru newline inf.getline(sport, 40, '|'); // #read thru pipe inf.getline(high_school, 40); // #read thru newline cout<<"jersey number: … ![]() | |
Hello I have successfully exported a recordset to an Excel template and saved the template as an xls file. However, when I open the Excel file all the worksheets are hidden. Does anyone know why and how to stop this from happening. thx Wayne | |
Hello everyone, I have an Access question. I have two date fields (field 1 & field 2), and both are formatted for "General Date". Since they are used in a calculation of Date and time, I need both segments to be entered. What expression can I input into the "Validation … | |
Hi I'm new to this grp. I'm working on Vb6.0 apps. Here i've a problem, I'm using Dir(filepath) to retrieve the file from specifies path and i want to retrieve similar files from the same folder. I wrote Dir$ in the end of while loop. here is how my looks … | |
hey guys, i'm using Borland 6 c++ in windows xp, now that we got that i have a problem with my program, i have recently created a password function in a programm that works so that when they try to type in their password it shows the * instead of … | |
Trying to learn VB.NET, I have a question about the following code: [CODE]Public Class WageCalculatorForm 'handles Click event Private Sub calculateButton_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles calculateButton.Click 'declare variables Dim hours As Double Dim wage As Decimal Dim earnings As Decimal Const HOUR_LIMIT As Integer = … | |
Hello, I have just installed Microsoft Visual Studio 2005 and it has the folowing to select, under C++ projects selection: ATL; CLR, MFC and Win32. Now Id like to know what are ATL, CLR and MFC and what is each of them used for, Anyway does anyone know when will … | |
can any body tell how to delete all the tables in a user ata a time | |
[B]Any expert can solve this??[/B] Error message will occur during execution, is something related to sql. the program will show an error on objcommand.executeNonQuery. Can solve this? Imports System Imports System.Data Imports System.Data.SqlClient Public Class Form1 Inherits System.Windows.Forms.Form Dim objConnection As SqlConnection = New _ SqlConnection("server=(local);database=uni;" & _ "Integrated Security=True") … | |
hiii all! i want to add a customer feedback feature in my application in which customer send an feedback through email. hw can i send email in vb 6.0. plz help nihar | |
I'm having a bit of a problem getting my javascript to run in Firefox (version 2.0). It works fine in IE6. Here's the HTML: [code="HTML"] <td> Black Eyed Susan </td> <td align="center"> <input type="text" name="blackeyedsusan" value="" size="3" maxlength="3" onChange="javascript:calculatecharges();"/> </td> [/code] And the script: [code="JavaScript"] function calculatecharges() { var totalPackets … | |
I'm trying to find the min/max of the number of years played and the min/max batting average of a list of players in an input file inputted in by the user that looks like this, the file is read and checked and then the program goes and gets the name, … | |
Hi can any one give a solution. I want a program in c# where in a form two text boxes will be there. 1) if we give or write some input in 1st text box it should be stored in a text file and in second text box the input … | |
hi..i'm new in using ASP.NET application. Please guide me as i've only about 30% knowledge on developing web application in .NET ok..my problem is.. i have a textbox.. i wanted user to create multiple option by entering each option per line in the textbox... in other words..if user want to … | |
I have a little annoying problem and I really need help. I need to convert a char* to TCHAR* and I can't... I have tried everything and nothing seems to help... TCHAR text1[ ] = ""; char *key; key[0] = 'a'; key[1] = '\0'; text1 = _T(key); //Does not work … | |
Having a diificult time with date range in a pawn database: Any suggestions | |
I'm developing a site using mysql and php. For the backend database I use mysql and my htm page consists of both HTML and PHP scripts. It was suggested that I use 3 tier architecture to seperate the business logic and the presentation layer. My problem is , how do … | |
somebody help me pls... my task is to search a value that matches to my csv file. my csv file contents is like this: 0,"100","WA" 101,"201","BC" 202,"302","EC" this should be the scenario. enter value: 205 output: BC pls include the codes.. i am just a beginner.. thanks in advance.. | |
Short version of my question: __________________________________________ How can I detect a keypress in Java without using a GUI? Long Version: __________________________________________ I am writing a program that users System.out and System.in for its input and output. As you are no doubt familiar, if you are in the middle of typing … | |
[CODE=c]#include <stdio.h> #include <string.h> #define MAXLON 10 #define N 6 int main(void) { int opcion, elocal=-1, evisitante=-1, resultado, lista_puntos[N]={0,0,0,0,0,0}, i, o, ganador; int resultados[N][N]= {{-1, -1, 0, -1, 2, -1}, { 1, -1, 1, -1, -1, 1}, {-1, -1, -1, -1, 0, 0}, { 1, 1, 2, -1, -1, -1}, … | |
Hi all, I'm new to J2EE programming. I have a simple doubt . I have already created a lookup method for EJB bean in Session bean . My question is how to call a method of an [B]ENTITY[/B] bean (say insertRow) from [B]SESSION[/B] bean method(Say invoke_insertRow) . Please provide me … | |
Hi Folks I am in a difficult situation right now. Please help me. There are several stores and several employees. employees can work in multiple stores and stores have multiple employees the time they work are calculated based on the time they log in and log out. for this purpose … | |
Hi people, i have a login via my Access DB - thanks to paladine Now i want the following When the user has logged in and they are taken to the Default.aspx page i would like a 'Welcome [UserName goes here]' feature showing who they have successfully logged in as … | |
Hi friends, I have written a C program which involves some iterations of numbers that I input in a table. >> Now I want to know how to import these values say from excel or some text instead of me inputtin them.... Any suggestion wil bw very helpful. Thanks and … |
The End.