199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for iamcreasy

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; …

Member Avatar for iamcreasy
0
205
Member Avatar for P00dle

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 …

Member Avatar for parry_kulk
0
194
Member Avatar for Godflesh

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, …

Member Avatar for Godflesh
0
85
Member Avatar for Cornholio

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 …

Member Avatar for Godflesh
0
26K
Member Avatar for pankaj.garg

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 …

Member Avatar for pankaj.garg
0
288
Member Avatar for veledrom

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 …

Member Avatar for almostbob
0
80
Member Avatar for borntowin_786

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 …

Member Avatar for vaultdweller123
0
155
Member Avatar for dilake

Is there any way to convert [B]System.Windows.Shapes.Rectangle[/B] to [B]System.Windows.Drawing.Rectangle[/B] in WPF ?

Member Avatar for dilake
0
61
Member Avatar for sbutt

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 &lt;Request&gt; attribute: TermId is too long</ErrorText></Err></Response>]]></ForwardRequestResult> </ForwardRequestResponse> [/code] And I want to extract a CDATA out of it …

Member Avatar for vivek4075
0
137
Member Avatar for dilake

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 …

Member Avatar for dilake
0
603
Member Avatar for johnyjj2

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 …

Member Avatar for johnyjj2
0
220
Member Avatar for Shmoil

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 …

Member Avatar for Shmoil
0
6K
Member Avatar for kanuri1

hi, pls help me how to generate crystal reports in asp.net using vb.net database is sql server.. any internet sites..

Member Avatar for pauldani
0
168
Member Avatar for samsons17

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 …

Member Avatar for jonsca
0
424
Member Avatar for especta
Member Avatar for samsons17

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 …

Member Avatar for xavier666
0
173
Member Avatar for hdef

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 …

Member Avatar for hdef
0
150
Member Avatar for avirag

Hi can anyone tell me how can i create bad sector in CD, so that nobody can copy my CD...?

Member Avatar for avirag
0
96
Member Avatar for mshravs

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 …

Member Avatar for pauldani
0
72
Member Avatar for Nfurman

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 = …

0
115
Member Avatar for makdu

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 …

Member Avatar for jonsca
0
2K
Member Avatar for telmessos

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

Member Avatar for telmessos
0
128
Member Avatar for Nfurman

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 …

Member Avatar for Nfurman
0
101
Member Avatar for lrh9

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. …

Member Avatar for lrh9
0
349
Member Avatar for rythman
Member Avatar for SCoder1

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. -- …

Member Avatar for thekashyap
0
101
Member Avatar for vivek4020

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

Member Avatar for sknake
0
2K
Member Avatar for ejazmusavi

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 …

Member Avatar for sknake
0
347
Member Avatar for Camzie

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 …

Member Avatar for sknake
0
141
Member Avatar for muralibobby2015

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..............

Member Avatar for muralibobby2015
0
141
Member Avatar for samuel_1991

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 …

Member Avatar for samuel_1991
0
671
Member Avatar for vrnadh123

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...

Member Avatar for amol_d
0
197
Member Avatar for kobi

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 …

Member Avatar for sknake
0
89
Member Avatar for lonelyday91

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 …

Member Avatar for lonelyday91
0
85
Member Avatar for guyroth

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 …

Member Avatar for irfanazam
0
593
Member Avatar for skwatamkar

how can insert an image to a ms-access database with using a java swing form and vice versa

Member Avatar for musthafa.aj
0
264
Member Avatar for SORelena

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 ^ _ ^

Member Avatar for musthafa.aj
0
151
Member Avatar for neha_38

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.

Member Avatar for prisonpassioner
0
178
Member Avatar for sarasara

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 …

Member Avatar for sknake
0
141
Member Avatar for jj.amonit

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 …

Member Avatar for jj.amonit
0
149
Member Avatar for fadia

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 …

Member Avatar for fadia
0
132
Member Avatar for Silvershaft

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 …

Member Avatar for Rajesh R Subram
0
1K
Member Avatar for TexITTech

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 …

Member Avatar for TexITTech
0
126
Member Avatar for oimenoi

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 ( …

Member Avatar for shifa888
0
211
Member Avatar for rciprogrammer

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 …

Member Avatar for shifa888
0
116
Member Avatar for dev_1710

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.

Member Avatar for freedos
0
101
Member Avatar for pysdex

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 …

Member Avatar for Ranx
0
92
Member Avatar for digitaldust

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 …

Member Avatar for woooee
0
145
Member Avatar for greatkraw

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 …

Member Avatar for woooee
0
109
Member Avatar for kbalamuk

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?

Member Avatar for AutoPython
0
96

The End.