199,114 Archived Topics
Remove Filter ![]() | |
This program here is supposed to count the number of occurrences blanks, tabs and newlines within the respective text you type within the program. However, after I compile the program and run it on ubuntu's terminal, all I am able to do is punch in text, space, enter etc... endlessly … | |
Quick question: what does "if(c == '\n') mean in this context? Is it just using '\n' as a reference for a numeric value within ASCII? which in that case would be 10, so if 10 is entered, this is when nl increments up one? { int c, nl; nl = … | |
Ok firstly I want to show you my code here: [B][COLOR="Red"]Trader.h file[/COLOR][/B] [code] const int NumSeller = 1; const int NumBuyer = 1; const int NumBids = 10; const int MinQuantity = 1; const int MaxQuantity = 30; const int MinPrice =50; const int MaxPrice = 100; class Trader { … | |
I am trying to learn CGI programming in PERL. I have a simple test page that I want to try out, but when I upload it and try to display it as a web page, all I get is the source code. Can anyone help me out? I'm not sure … | |
I have two files with an unknown list of integers in ascending order. What i want to do is send the contents of the two files into another file in ascending order. We dont know the contents of the two numbers files. so for example File 1 may have the … | |
I wonder why this does not insert data :-O [CODE=JSP] <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import = "java.sql.*" %> <%--@page import = "dbfiles.*" --%> <% //VDbManager mgr = new VDbManager(); String sqlApp = "INSERT INTO application VALUES (NULL, 810, 2010-08-26, 2010-10-27, 30, \"Dummy Leave\", \"Dummy Reason \", \"Applied \")"; Class.forName("com.mysql.jdbc.Driver"); Connection … | |
i'm having trouble creating a craps game for school, i'm a light weight c user and any help would be amazing!!! | |
I am creating a page of articles for a site i'm working on. The current page i'm creating needs a list of articles by date. I want to have it list the year the article was posted as a header then list only the entries for that year underneath. I … | |
Hi there, recently I wrote a small C program utilising the Windows API to communicate with a device over the serial port (COM1, a real serial port of my PC). This worked fine, but I am aware of the fact that those real COM ports are replaced more and more … | |
I'm having a hard time getting this to work! I currently have 3 dropdowns. The 1st one will open up the 2nd 3rd ones. The 2nd one has just 1 value and the 3rd one has about 60 values the user can choose from. Then they fill in a text … | |
Can anyone help me with this problem, I have 2 textboxes in which i load 2 text files. And now in the third textbox i need to display the word frequency ( the word and how many times is been used that word in those 2 texboxes). And finally calculating … | |
I am trying to create an email form that allows the user to subscribe or unsubscribe to an email list. It goes bad at line 25. This is what I have so far: I can not figure out how to write the unsubscribe part. I used if/elseif/else: 1 <?php 2 … | |
I'm not sure if this should go here but as i'm making my program in C# i thought i'd give it a go. I've been using 'Add New Data Source' in visual studio 2008 to get information from Access databases. This has always worked fine but recently buttons like 'Add … | |
Hi folks, I wonder if anyone out there could help me with something. I have a folder containing many cnv files that look like this: * Sea-Bird SBE 9 Data File: * FileName = C:\CTD Data\Alg173\stn001.dat * Software Version Seasave Win32 V 5.38 * Temperature SN = 4977 * Conductivity … | |
Hi there, On executing the above code I'm getting the error "segmentation fault". Is it possible to manipulate a string variable which already contains a data?[code]#include<stdio.h> int main() { char *str="Hello"; char * str1 ="World"; strcpy(str,str1); printf("%s",str); }[/code] | |
Have been programming in Turbo C for some time using an XP platform. I have recently bought a new computer also with XP and Turbo C programmes will not run on it. Has XP been modified recently? Is there any solution other than going back to 98? Thanks Cliff | |
In my experiment.cpp i have Test *tests[maxTests]; as private data. How do i access this in my runExperiment function to call functions from the test class or its derived classes? | |
Hello. I am trying to get a chart to display a chart image inside a gridview. This image will be populated with data relating to the particular row. The image currently shows but all series collections will not appear and the image is showing data that only relates to the … | |
if i have 10 pages and each of the page has the same navigation bar, i don't think duplicating the code again and again in every page is the right solution... what do the pro normally do? ** i tried to use a frame inside one of my div tag … | |
hi there, i have a check box in a form. to this form i am loading information from the database(mdf file). and also in the checkbox checkchange event i have a code to do something. when i load the data if the checkbox value in the database is true then … | |
cant get this to display on webpage. Apache is setup correctly. Getting error "[COLOR="Green"]malformed header from script. Bad header=04/19/2010: date.pl[/COLOR]" where am i going wrong? [CODE]#!/usr/bin/perl use strict; use warnings; use POSIX qw(strftime); my $cur_time = strftime "%a %b %e %H:%M:%S %Y", localtime; print "$cur_time\n"; open PS, "/bin/netstat -nra 2>&1|" … | |
this snippet below is my code. It's supposed to be a memory game, but i have some problems making it work, I've made a button_1 that generates 6 random numbers in random order, those 6 numbers are supposed to tell the "p1 - p6" (pictures (2 of each to make … | |
Hi, I have some data stored on an XML file and I am trying to read a specific part of it. Here is a line from the XML:- [CODE] <photo id="4539802593" owner="***" secret="***" server="4032" farm="5" title="Stone Bridge" ispublic="1" isfriend="0" isfamily="0" /> [/CODE] Below is the bare bones of code I … | |
Hello, I'm new to C++ but after reading two books regardin this language I made this part of a program. While those two files (.h and .cpp) were concatenated in the main cpp file the program worked without errors, aldo it did not return anythig. As I split the program … | |
The users of my web application are complaining that the 20 min default timeout is too short and they don't want to have to keep logging in. I have tried changing the timeout from the default 20 mins but whatever I set it to it seems to have a max … | |
So im going to try and write a simple instant message program using MFC. Basically, Im wondering the concept of how the client server process works. I need to write a server that is its own seperate .exe, then a client which contains the gui and the information to contact … | |
Never use the function [inlinecode]gets[/inlinecode]. Why? It is unsafe. Since the maximum string size cannot be specified, it is always susceptible to buffer overflow. This snippet shows one way to do a safe version of [inlinecode]gets[/inlinecode]. It reads characters from the [inlinecode]stdin[/inlinecode] into a string up to the specified size … | |
Hi, I am having problems inserting data into a table using a stored procedure. When I click the button to insert the data nothing happens at all. I added a [B]server.transfer[/B] after the insert to see if it was falling over before the end of the query/insert. My code behind … | |
Hi All, I have a microsoft word document, and I have got class to handle the manipulation within those documents (I call it "Word"). My code goes this way: ------------------------------- sub form load set W = New Word ' W is the Word object if usingW = true then 'open … | |
Hey, Ok i needed quick help on vectors in C++.I have a vector which consits of a complete bidlist for Traders i.e Askers and Buyers. Now what i want to do is,Get the first ask bid and compare that with the Buy bids,via the price and quantity. The traders have … | |
Let see, who will solve this problem before i can... Problem is that values are getting update but in response, it is not showing the update values back on page. [CODE]<strong>Update multiple rows in mysql</strong><br> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="newdb"; // … | |
im presently using two buttons in a form and a webbrowser control. button1-Navigate to the page button2-Fills user,pass and then submit like this [CODE] private void button1_Click(object sender, EventArgs e) { webBrowser1.Navigate("http://www.xxxx.login.aspx"); } private void button2_Click(object sender, EventArgs e) { webBrowser1.Document.GetElementById("username").InnerText = "aaaaa"; webBrowser1.Document.GetElementById("password").InnerText = "bbbbb"; webBrowser1.Document.GetElementById("login").InvokeMember("click"); [/CODE] and it … | |
Hey, Ok i needed quick help on vectors in C++.I have a vector which consits of a complete bidlist for Traders i.e Askers and Buyers. Now what i want to do is,Get the first ask bid and compare that with the Buy bids,via the price and quantity. The traders have … | |
I'm doing my project in asp .net(vb .net coding). Its about Disambiguate Doctor's profile I want to display the data without any redundancy... I have to take a[B] particular field [/B]from my table and [B]compare strings[/B]Can Anyone guide me Thanks in advance:S | |
I am beginner php programmer.How can i create dynamic link without using database in php page. For example I have creat a form. When user enter the data and click submit. I want to display submit page in same page. My form page is: [url]www.mysite.com/form.php[/url] and i want to create … | |
![]() | Hi i am doing C programming in netbeans and when i compile and run my program i get a message in the dos console that says i need to use the nodosfilewarning to disable the cygwin warning i am getting. I have attached a screenshot as it is a rather … |
hey sorry for my lame entry, but I have such a problem: I have like 30 textbox controls on form, and I want to refer to them by name, but I want to pass name as parameter I tried some stupid things but no result, any ideas? thanks in advance | |
I hope you can help me. I'm working on a program that will open any Access database that might be on the system. The problem I'm having is that I cant get get the SQL statement to show all the tables within the database. The code im using is as … | |
acutally above code is sorting employee class objects based on EmpID or based on EmpName but my requirement is if know the comparator (on which basis sorting should occur) @ runtime how can we achieve that :)[code]package CollectionsOps; import java.util.Arrays; import java.util.Comparator; /** * * @author King@java */ class employee{ … | |
Hello, I need help with something it drives me nuts. I have an application which send XML to a web server through a POST method. This part works excellent. But where I have issues is with receiving the standard response from the web server for OK or error. Instead of … | |
can anybody give me some pointers on how to create folders/folder in C/C++? | |
I want to walk a directory and ignore all the files or directories which names begin in '.' (e.g. '.svn'). Then I will process all the files. My test program walknodot.py does not do the job yet. Please help. [CODE]#!c:/Python31/python.exe -u import os path = "C:\\test\\com.comp.hw.prod.proj.war\\bin" for dirpath, dirs, files … | |
[CODE] SELECT Customer_Info.CustName,Customer_Info.Address,Customer_Bank_Info.CustChequeNo,Customer_Bank_Info.CustAccountNo from Customer_Info,Customer_Bank_Info WHERE Customer_Info.AgentID=Customer_Bank_Info.AgentID [/CODE] THERE ARE TWO RECRODS ARE AVAILABLE IN Customer_Info TABLE AND TWO RECORDS ARE AVAILABLE IN Customer_Bank_Info BUT WHEN ABOVE QUERY IS EXECUTED IT SHOWS 4 RECORDS IT REPEATS THE QUERY THAT'S WHY SAME RECORDS FROM THESE TABLE ARE RETRIVED FOR TWO TIMES. … | |
Has anyone noticed that when you do a "find on this page" in Internet Explorer (7 and 8), which causes the page to scroll down, the onscroll event isn't fired? I have a situation where I need the onscroll event to be fired under those circumstances. Does anyone know a … | |
is there any website where i can find some Linq Excercise.. or you guys can setup a scenario.. | |
I have interesting question. Why this code is legal in C, but not legal in C++ ? (tested with GCC 4.2 compilers) [CODE=C] void Function() {} int main () { Function(1); return 0; } [/CODE] We can simulate same C++ compiler error in C compiler by changing function definition to … | |
[B]I enter 3 identical records in an sql database table. Normally this should not have happened as the DBMS must check for identical records. Now when I try to delete or update these records, an error message is shown. What to do?[/B] | |
Dear all I have given a code snippet please help me out to sort out this issue <code> <script type="text/javascript"> function interval_setting(){ var clear = 0; clear =setInterval("xmlhttpPost11('index.cgi','tracker_shower','Latest_frame','Tracker_loader',clear,'','','')",20000);} </script> </code> Please reply cant i pass variable clear like this ? Cause in xmlhttpPost if i give single quote to that … | |
The Above Code has Runtime Error. Type ' Product' is not defined. Pls help me.[code]Imports System.Data Partial Class insert Inherits System.Web.UI.Page Private SelectedProduct As Product Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not IsPostBack Then ddl1.DataBind() End If SelectedProduct = Me.GetSelectedProduct() Label1.Text = SelectedProduct.empno … |
The End.