199,114 Archived Topics
Remove Filter ![]() | |
This code is supposed to print all the numbers from a text file...but for some unknown reason, it is only printing the last pair. [CODE]#include<stdio.h> int main() { freopen("in.txt", "r", stdin); int result=0, column=0, row =0; while(scanf("%d %d", &row, &column) != EOF); { printf("%d %d", row, column); } return 0; … | |
I had a couple of posts on getting this thing to work. I finally got a small test program working, but now this, the actuall program, doesn't. I don't understand the error either(Will include it at the end of this post). Here is my code, with the line throwing an … | |
Hello! I have some probs with this code, somehow it dont loop 10 times as it should, just one? How do i make python use a testfil.txt that already exist? I dont want to remove the old data in the file just add new data to it? In this code, … | |
Hi, I have jest started learning Python. I would like to get some help on writing a script that would delete a set number of lines from a text file which looks like this : 1846440556 1846440521 1846440491 1846440505 1846441137 1846441102 1846441080 1846441331 1846441323 1846441315 ... ... Thanks in advance … | |
Hi, i have couple of doubts.. 1) How do i use MSComm Component in a module...i could gather that i might have to use 'class module' for that..but not able to make that work. 2) if i use a class module..how to pass parameters to a class...as i would like … | |
Hi, I have files in a folder. When I list those files in my PHP site, all the hyperlinks shows full path of the file on status bar of the browser. e.g When mouse over hyperlink, it shows "..../personalFolder/hello.doc" How can i solve this problem? I think this is a … | |
Hello friends, I am a new babie to codeigniter. I am working on a maintenace task.And I am getting the error as frontend_make_url_name this function not found. Can anybody is there to help me? For helping I am pasting my code below. [CODE] <?php class User extends Controller { var … | |
Is there any way to convert [B]System.Windows.Shapes.Rectangle[/B] to [B]System.Windows.Drawing.Rectangle[/B] in WPF ? | |
Hi All, I have a following xml: [code] <?xml version="1.0" encoding="UTF-8"?> <ForwardRequestResponse xmlns:m="http://webservices.kuoni.ch"> <ForwardRequestResult><![CDATA[<?xml version="1.0" encoding="windows-1252"?><Response Version="2.5" From="KUONEKA0" To="CETS" TermId="XXXXXX" Date="18062009" Time="163523" Type="ERROR" Confirm="X" Agent="XXXXXX" Lang="EN" UserCode="X" UserType="X" UserName="X" UserFirstName="X" Mode="X"><Err><ErrorNr>9999</ErrorNr><ErrorText>Fehlerhafter Request</ErrorText><ErrorText>element <Request> attribute: TermId is too long</ErrorText></Err></Response>]]></ForwardRequestResult> </ForwardRequestResponse> [/code] And I want to extract a CDATA out of it … | |
We are required to Display Live View from a Camera in a WPF Application. A TV-Tuner is being used to capture the video. We had already achieved this in WinForm (VS2005) using DShow. To implement this in WPF we are using the same code (code used in WinForm) except that … | |
Hello! I try to follow steps mentioned here ([url]http://www.speechforge.org/projects/cairo/install.html[/url]). The first thing is about JMF. I downloaded jmr-2_1_1e-linux-i586.bin (the other thing is that I've got 64 bit computer). I found [url]http://www.luniks.net/luniksnet/html/java/jtvd/doc/jmf.html[/url] . I executed bin file in /usr/lib as it is written in this mini-howto. Then I edited /home/mainaccount/.bash_profile file … | |
i have a school assignment where I need to create a countdown timer to attach to a scoreboard i made. the code that is attached is a program i found that is a stopwatch and will count up. im looking to get the timer count down from 2 minutes and … | |
hi, pls help me how to generate crystal reports in asp.net using vb.net database is sql server.. any internet sites.. | |
how to make a my program to finish repeated the loop when the user enter the sentinel value?? for example the "-1"... this is my attempt..but still something wrong here.. [CODE] #include <iostream> using namespace std; int printreverse(char letter_box[],int i) { for (int x=i; x>=0; x--){ cout<<letter_box[x]; } } char … | |
hi How to allow enter only 5 char in Tedit without using tmask? Thanks. | |
how could i make a triangle thatgot spaces/hole at it's centre.. : for example like this : ---------------- * --------------*----* ------------*--------* ----------*------------* ---------*********** -->> which the "------" is actually the space... i've tried working with this code but its not working :( : [CODE] #include <iostream> using namespace std; int … | |
The program gets the hexdump of a file and saves it in a text file (temp.txt). The program should then get the contents of temp.txt and two other text files (virus1sig.txt & virus2sig.txt) and display them. The problem is only the contents of virus1sig.txt & virus2sig.txt are being displayed. Thank … | |
Hi can anyone tell me how can i create bad sector in CD, so that nobody can copy my CD...? | |
i have an image along with a form, to be saved in the sql database. but how should i do it. here is the code that i used to save the form in the database. [CODE] Protected Sub save_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles save.Click Dim ConnStr … | |
Hello again. Default.aspx [CODE] using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class contact : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; ShowCaptchaNums(); } protected void Country_SelectedIndexChanged(object sender, EventArgs e) { if (Country.Text == "United States") { State.Enabled = … | |
Hi all, I am new to c#. I am trying to read a text and find a string from that text file. I want to get the text between two particular line number . Intially i want to get two particular string's line number . then the text between these … | |
Hi all, I would like to learn how I can read a MySQL table and move the records to an Excel file. While replying, please consider that I am at the very beginning of c# and write everything "Idiot proof" Thanks telmessos | |
Hello again I have two drop-down lists on my web application. #1. Country list #2. US states list By default #2 is disabled [CODE] protected void Page_Load(object sender, EventArgs e) { State.Enabled = false; } [/CODE] I need to enable it only if user will choose "United States". My trial … | |
And I can't get anything I write to work. I'm so far off course I think I just need a working example of import hooks in action. I've looked for examples on the Internet, but they only show what looks like correct code. They never show that code in action. … | |
Help making arithmetic exception getting the square root | |
Hi, I've been working on this project off and on. I am very close to completing in. What it is is a program that calculates temperature from fahrenheit - centigrade - Kelvin. Please feel free to help. Here's my code sorry for the length of it: [CODE]//-- Shaun D. -- … | |
Hi I have a textbox and a listbox. If i write something into the textbox and press the enter key, i would like the content of the textbox to appear in the listbox. What is the best way to do it? Thanks in advance | |
Hi I have project which involve a database and a folder in which i will store the images which paths are stored in database. When i make a setup copy of my project and run it gives the following error. COULD NOT FIND FILE 'C:\DOCUMENT AND SETTINGS\ADMINISTRATOR\ISO.mdb' while i have … | |
Hi there Iam new to C# and I need help with creating a dynamic web form using C#. It should have labels, buttons, one combobox, picture boxes and textboxes. The user should be able to select a member from the combobox or the user can add a member to the … | |
hello.... i want to do text fadein ,fade out using javascript onload page. actually i want to display text which is in database that text will appear in front end with fadein and fadeout effect. anybody plz help.............. | |
Hi everyone, I have a problem in MS SQL. Due to academic nature, I am supposed to use a query to find out the present applicable tax rate (GST, Good & Sales Tax) without altering the table. The table has 3 tax rates, 1: WEF (With Effect From) 2004 Jan … | |
Hi, I want to create a virtual partition inside a hard disk. This partition should be usable for booting purpose. Please help me out in this regard by providing me source code in C/c++. Bye... | |
Hello, i have a problem with a timer , on my program i have 2 different classes under the same namespace when i start the timer from the form class, the tick event happen on the elapsed interval. but when i call the timer from the other class the tick … | |
i have to do a code that takes the word from the user and seperate them from uppercase and lowercase. i had done the code, but the words that are printed out are not as aspected (symbols) [CODE]#include<iostream> #include <ctype.h> using namespace std; int main(){ int i=0; int total_char=0; cout<<"enter … | |
I would like to insert to some table's columns input in UTF-8 characters. 1. what property of the column should I change to support this action, should it be 'Collation' or other property (like 'encoding' as well)? 2. I am using Microsoft SQL Management Studio. How can I change property … | |
how can insert an image to a ms-access database with using a java swing form and vice versa | |
Hello guys I write a program and of the functions that write function calculates the speed of the CPU of a computer Got a problem here and I did not know how to write it?? Can you help me ...? Thank you ^ _ ^ | |
Hello! I have a question regarding game programming. Currently i am doing a course in .net3.5. How to develop a game using c#? Can anyone provide(code) with a game done in .net. What are the educational qualifications to be a game programmer? Thanks in advance. | |
Hey all I have a php script that I need to be running 24/7 on a linux platform. I have a dedicated server with centos 5 that I have access via ssh. The php script is written so that it loops indefinitely. However, it inexplicably hangs after 30 - 60 … | |
I don't know if this is even possible. My site is designed for use on mobile phones. My users have to enter in a lot of numbers, temperatures to be exact. So, the numbers could be positive or negative. And ranging from -40.0 to 150.0. Decimaled. My users would also … | |
Hi all.. This function should work recursively.. Meaning call the function inside the same function. So i'm supposed to write a recursive function that takes a single parameter from type integer and decrements that number until it reaches zero. Ex. If the user entered 7, he'll get this output: 7 … | |
Ok, straight to the point here's the code: [code=cpp]#define UWM_KEYBOARDHOOK_MSG \ _T("UMW_KEYBOARDHOOK-" \ "{B30856F0-D3DD-11d4-A00B-006067718D04}") UWM_KEYBOARDHOOK = RegisterWindowMessage(UWM_KEYBOARDHOOK_MSG); [/code] I put only 2 lines which makes the error Compiler output [code]1>.\DLLMain.cpp(25) : error C3861: '_T': identifier not found[/code] I tried to insert the _T to different places and search internet and … | |
I need some assistance with three things in my code. My problems are: Next and Previous buttons do not loop through the array, instead they throw exception errors when they get to the end of the array. Second my image that is required does not show up, my instructor said … | |
Hello, I am trying to make this code to combine the varchar string using fetch technique. The purpose for the code below is to combine all of the results and display back as 1 record instead of multiple records. We have SQL 2000 server. Thanks guys [code=sql]CREATE PROCEDURE get_all_clumns_name ( … | |
Hi I am currently porting (well really totally re-writing) a project to run on WM6 devices. I need to initiate a GPRS data connection (or any internet data connection really, shouldn't matter if its GSM or CDMA) before I can get the data I need (actually sync. a database over … | |
I m IT student, I want to make project in vb.net plz, [B][U]sugest me latest topic[/U][/B] on which i make project. | |
I am very new in VB.Net. I can read the integer with no problem at all but I just cannot extract the equation I enter. I enter A+B, I can read it no problem, but how do I extract the equation information to make the two number to add together … | |
Hi everybody, I would like to implement a task but I'm not sure the best way to do it. I have some objects each of which has an attribute that represent the object coordinates as a tuple. I would like to find the neighbors of each object, that is the … | |
why do I only end up with one object in the list i want to keep appending I am sure the answer is simple, thanks studRoll = [] def GetInteger(i): try: return int(i) except: return 0 class stud: def __init__(self, a, n, m): self.age = a self.name = n self.mark … | |
How do I access windows environment variables using Python? eg. if I have the following: set junk=C:\temp\junk how do I access 'junk' from python? |
The End.