132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pete212

Hello, I am trying to learn C and would like to create a program that opens a text file (already created) and reads out the words contained within onto the screen. Not to sure where to stat with this, please can someone give me some ideas? Thanks in advance.

Software Development c
Member Avatar for pete212
0
84
Member Avatar for scream2ice

i have text file with a series of words in it. some word contain the expression '.zip' , i'm trying to rerad the characters of the file and replace the .'zip' with '.rar' this is my prog, bu it's not responding [code=cplusplus] #include <iostream.h> #include <fstream.h> #include<stdlib.h> #include<conio.h> void main() …

Software Development c++ ios
Member Avatar for scream2ice
0
155
Member Avatar for lostandfound

Hi all, When connecting to an Access database from a VB front end usig the ADO control is there any problem caused by the connection being permanently open or am I better to open and close the connection for each transaction. Will there be any difference for a mySQL database. …

Software Development visual-basic
Member Avatar for lostandfound
0
82
Member Avatar for binoj_daniel

hi, I want to export data to Excel from Dataset and DataGrid and format the output excel file like "Auto Fit" for coulns, Bold headers and also control the Cells. Please dont suggest using Interop Calls. I understand that we can use the RenderControl to write to the [COLOR=#008000]htmltextwriter so …

Software Development dataset vb.net
Member Avatar for binoj_daniel
0
118
Member Avatar for TheFueley

This one of those typical Rational number programs. It takes a user-supplied fraction and then another. Then it does the 4 basic math operations on it. Finally it compares the fractions to each other. I have the program working fine. I just want to know how to fix this warning …

Software Development c++
Member Avatar for TheFueley
0
182
Member Avatar for Black Magic

Hey guys, I was just reading again about classes and their functions and i made some code, the thing i want to do is have a function, eg. [CODE=C++]void Cat::Sleep()[/CODE] and have it to have three cout's and choose one of them to say at random, Heres my code. [CODE=C++]#include …

Software Development c++
Member Avatar for Black Magic
0
97
Member Avatar for q8_dreamy

Hi can any one help me please, How can I go to a control according to text of specific one for example if I have drop down list contains 2 items 'Yes' & 'No' I want to to go to textbox1 if answer is Yes and go to Textbox2 if …

Software Development vb.net
Member Avatar for Jx_Man
0
126
Member Avatar for hacker9801

Hey all. I'm making an online game. It uses XML maps, and I was wondering... what's the best way to transfer an XML file over a socket? I want my server to send an XML map whenever it's requested, but I dunno how I'd get the xml from the other …

Software Development c++ client-server xml
Member Avatar for Salem
0
161
Member Avatar for demroth

I have been reading some of the posts on reading integers from files but I have not seen any on reading integers from formatted files. I have a file which is a 6 X 6 matrix consisting of integers separated by tabs. I want to read each number into an …

Software Development c++ file-system
Member Avatar for demroth
0
144
Member Avatar for miss.A

I have to create an application that calculate parking garage fee by using VB.Net and use timepicker for time in and time out. For each hour it cost 3$ and it calculate minutes as 1\60. I start coding but I face problem with how can I calculate the fee and …

Software Development vb.net
Member Avatar for miss.A
0
155
Member Avatar for imtnan

Hello all, I am badly in need of a simple to use Matrix library for C++ that can handle complex data type.. I am working in Bloodshed Dev C++ under windows XP. Waiting anxiously if anybody can be of help!! Imtnan

Software Development c c# c++
Member Avatar for iamthwee
0
67
Member Avatar for picass0

i using seekp() function to change the pwd, but it can only change the first row of peter's pwd. Wat i wanted was to change only the pwd that belongs to only mary if marry has login. How can do it? need some advice!!! this is wat my text file …

Software Development c++
Member Avatar for Ancient Dragon
0
152
Member Avatar for heshan

Hi, If I execute the following code I will get the the output as 2. What I need is to execute the string str. Is there a way that I can execute the string str , as it is so I will get the output as 5. [ICODE] def add(a,b): …

Software Development python
Member Avatar for Ene Uran
0
109
Member Avatar for whoknows101

I kepp getting errors in my following code [code=c++] #include <iostream> #include <queue> #include <ctime> using namespace std; template <class TYPE> void randomInit (TYPE array[], int size, int mod) { for (int i = 0; i < size; i++) { array[i] = rand()%mod; } } // Prints Array template <class …

Software Development c++ queue
Member Avatar for whoknows101
0
304
Member Avatar for scream2ice

i'm trying to write a program that reads a text from the user(keyboard) sentence by sentence and then prints the 'morse code' of them char bay char on a text file. I'm just testing it for the letter 'c' to start with, but it doesn't seem to be working well …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
129
Member Avatar for Aamit

I want to read the registry of usb [COLOR="Red"]HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USBSTOR[/COLOR] in this Name Type Data start REG_DWORD 0x00000003(3) when double click it gives value in Hex 3 How to read this value 3 or data 0x00000003(3) How to create this code in c language??? How to do it guys If any …

Software Development c
Member Avatar for Narue
0
96
Member Avatar for dgg32

What is the difference between char* and string? I mean, if char* can also use string's functions or can there be "=". Thanks all the same.

Software Development c++
Member Avatar for Ancient Dragon
0
94
Member Avatar for arun2008

Hello Everyone, I am encountering a problem, please read below. I have a VB application installed in a system that has MS office 2007. This Vb application generates a word document i.e MS 2007 version. The problem happens here, when this 2007 version word document is sent to another system …

Software Development vb.net
Member Avatar for arun2008
0
120
Member Avatar for Waseemn

Hi All, Please keep the laughing until the end of this request. The new assignment that I have to work on, is a string sorter. I am to ask the user to enter how many names does he/she need to sort, should be a number between 2 and 25. Then …

Software Development c++
Member Avatar for ithelp
0
101
Member Avatar for a2008

Hi, I was hoping someone could shed some light on this for me. I am stuck on an assignment. I have spent 3 weeks on it and have almost finished it. I have so much going through my head at the moment I just need some help. Please. I do …

Software Development c++
Member Avatar for Nick Evan
0
148
Member Avatar for abdulraqeeb33

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package server; /** * * @author 007 */ import java.io.*; import java.sql.*; import java.util.*; import java.util.Random.*; import java.net.*; import java.lang.String.*; import java.io.InputStream; import java.lang.Object.*; import java.net.ServerSocket.*; public class aptserver implements Runnable{ …

Software Development client-server java
Member Avatar for abdulraqeeb33
0
244
Member Avatar for superjacent

I'm self studying C++ and I'm actually back-tracking a bit in order to clarify things. My question revolves around why in the following code is the [icode]cin.fail() == true[/icode]. [code="cpp"] #include <iostream> using namespace std; int main() { char getdata; cout << "Enter one character: "; cin >> getdata; cin.get(); …

Software Development c++ queue
Member Avatar for superjacent
0
309
Member Avatar for emilio

is there a way to uncheck all buttons at toolstripmenuitem without doing it separately for each button like this[CODE] toolStripMenuItem7.Checked = false;[/CODE] ?

Software Development
Member Avatar for emilio
0
80
Member Avatar for kyriakos70

Hi, I have a project in VB 2005 and I have inserted a flash movie (.swf), the item from the vb toolbox ax shockwave flash active x object returned an error "error activex make sure it is properly registered" so I create one through code : [code] Imports AxShockwaveFlashObjects.AxShockwaveFlash Public …

Software Development asp.net flash vb.net visual-basic
Member Avatar for Byaptia
0
288
Member Avatar for bballj32

I am trying to solve a problem from a lab challenge. I'm having trouble on how to output the table and it must be done in [B]top-down design.[/B] Use a two-dimensional array to solve the following problem. A company has four salespeople (1 to 4) who sell five different products …

Software Development c c# c++
Member Avatar for Agni
0
281
Member Avatar for gazoo

I have this program that suppost to ask user to select option: [option] a. Start a new list b. Add a Node to the end of the list. c. Add a Node to the beginning of the list. d. Add a Node at a specified position in the list. e. …

Software Development c++ linked-list
Member Avatar for Agni
0
108
Member Avatar for mister03

Is ther a way to get the text for each tray icon that is visible ? For example if you hover you mouse over any icon some program shows you some Text. Like the NotifyIcon property .Text = "Im working...."; I like to know if ther is a way to …

Software Development
Member Avatar for mister03
0
103
Member Avatar for aditya_amb

I am designing an application that can display and changes values of database. I can display values from database to textbox. During runtime when User makes changes in a textbox, my program cannot detect the changes and retains original values only. Could you please help me on this. :) ? …

Software Development vb.net
Member Avatar for aditya_amb
0
127
Member Avatar for bradszy

Ive posted this on another forum, and haven't gotten very far. I had a few skillful coders give it a go, and no luck. We got errors... I'm trying to make a console app... Transparent, or translucent. (See-through) Ive tried: [CODE]#include <iostream> #define _WIN32_WINNT 0x0500 #include <windows.h> using namespace std; …

Software Development c++
Member Avatar for bradszy
0
218
Member Avatar for guvengunes

Write a function that fills in a given matrix with the given numbers so that the sum of all columns and all rows should be equal to the same number. The prototype for the function should be void fillMatrix(int mat[][MAXSIZE], int numbers[], int rowSize, int colSize, int sum); For example, …

Software Development algorithm python
Member Avatar for jrcagle
0
101
Member Avatar for blade321

from livewires import * x= read_number() y= 1234 while x <> y: print read_number() Why wont the loop stop when i enter 1234 ? any help greatly appreciated!

Software Development python
Member Avatar for jrcagle
0
109
Member Avatar for L31chH4rdT

Hey guys, I am having trouble getting data from a file into a linked list. I'm very new to c++ and am finding it difficult to understand but am trying my best. I need to get a text file and insert each character into a seperate node in a linked …

Software Development c++ linked-list
Member Avatar for Gerlan
0
113
Member Avatar for linux0id

Hello everyone! I have a function to get data from a database. I want to put it into matrix of some sort so that I can have something like a spreadsheet (multiple columns and rows, depending on data). It needs to be dynamic. Ok code so far - [CODE]//--------------------------------------------------------------- template …

Software Development c++
Member Avatar for linux0id
0
125
Member Avatar for echoestroy

I need a do while loop in this but when i try to put one in it errors alot could someone show me the proper placement please. i use dev C++ compiler [code] //Login #include <iostream> #include <string> #include <conio.h> using namespace std; int main() { cout << "\tWelcome to …

Software Development c++
Member Avatar for echoestroy
0
104
Member Avatar for legendofme

I need help figuring out how to do error checking with military time. So that if the value is over 59 (ex 1372) it gives an error message. My C++ knowlege is fairly basic

Software Development c++
Member Avatar for CoolGamer48
0
108
Member Avatar for krdgopinath

Hi Everyone, I have the data like below in CSV file Column1,Column2 A,3 A A,4 A L,5 AIM,6 If i sort the above mentioned date in excel, here is the sorted output: Column1,Column2 A,3 A A,4 A L,5 AIM,6 But if i tried to sort above data by using Sort …

Software Development shell-scripting
Member Avatar for eggi
0
94
Member Avatar for Afi83

[B]Hi there[/B] I am really new in C programming (about 3 weeks). Before I begin my question I have to excuse because of my bad English. My question is on reading a file that contains double and integer type numbers. For reading file I use fgets() that read a line …

Software Development c file-system
Member Avatar for Afi83
0
437
Member Avatar for rysin

Hey guys. Ive got a problem with a simple hello world script. Im a perl beginner so bear with me. Im running mandriva linux if it matters. Also this file is saved under /home/rysin/documents. Code [CODE]#!/usr/bin/perl print "Hello World\n";[/CODE] When I go into the command line and use the perl …

Software Development perl
Member Avatar for Uninverted
0
101
Member Avatar for Xctive

Here i need to write this code for class and i am getting the missing return statement error. Heres my code : import java.util.Scanner; import java.text.DecimalFormat; public class derived extends Foreign { Scanner keyboard = new Scanner(System.in); private String date; public void vertDisplay() { super.vertDisplay(); System.out.println("Date = " + date); …

Software Development java
Member Avatar for Xctive
0
79
Member Avatar for Run.[it]

..for manipulation in the main part of the program. Basically Im trying to create a Class function that asks the user to enter in 3 different teams and their nationalities and then redisplay them when the main calls that function. [code=c++] struct squadre { string teamn; string nat; } clube …

Software Development c++
Member Avatar for Run.[it]
0
130
Member Avatar for bokr66

Hi, I have a problem with showing text in different fonts, fontstyles, colors, alignments and sizes in richTextBox in C#. I read some articles on Internet about this, but I was't satisfied with them. Many thanks in advance. regards, Bojan

Software Development c#
Member Avatar for bokr66
0
179
Member Avatar for farifari

HI everybody, can anyone tell me how to change the value of label in the exe file run format,, i mean to let say i have value,,,, length is label and 10cm is text box for length in a form. after running the program or in the exe file,,, user …

Software Development vb.net
Member Avatar for chrisgamuyao
0
102
Member Avatar for metalx1000

I'm new to Python and even new it GUI with Python. I'm using Glade to create my GUI. My problem is that when I click a button in My GUI inter face the GUI freezes until the process is complete. I'm been told that I need to use "threading" to …

Software Development gui python xml
Member Avatar for metalx1000
0
208
Member Avatar for avnerharel

A component developed in C# is used by application written in VB 2005. The component includes a field for data entry of numeric values, the field becomes active for data entry upon a mouse (touch-screen) click. When the component's data entry begins I want to activate a virtual keyboard on …

Software Development c c# c++
Member Avatar for avnerharel
0
302
Member Avatar for rysin

I have [CODE]#!/usr/bin/perl @line = <STDIN>; print @line;[/CODE] and when I hit control D, control c, or even control z it just ends the program. Im on a linux machine. Any help?

Software Development perl
Member Avatar for rysin
0
80
Member Avatar for Waseemn

Hello, I am sorry if I am boring you, but I know of toupper() and tolower(). Is there a toProper() in C++? Proper case is the first letter of the word is in uppercase while all other letters of the word are in lowercase. Is there a way I can …

Software Development c++
Member Avatar for Narue
0
90
Member Avatar for KK Murage

Hi I'm still in the basics in c++ and I really need some help in coding my 1st semester's project. I am required to create a program that is to be used at a tollstation to keep account on the number of vehicles using the road, the fees charged and …

Software Development c c# c++ user-interface
Member Avatar for Narue
0
155
Member Avatar for NinjaLink

Hey guys, I'm here once again! I need help for something that is simple, but I'm not getting the results I should be getting! I want my output to look like this: [B]Enter hours worked: 44 Enter pay rates: 10 Hours worked: 44 Pay Rate: 10 This week's salary: 460 …

Software Development c++
Member Avatar for CoolGamer48
0
133
Member Avatar for sickly_man

hello everybody. the project im working on asks me to propmt the user once to change the background color and once to change the foreground (text) color. right now my program prompts the user...but not with the message i have in the data segment...it spits out some unattractive code. could …

Software Development assembly
0
244
Member Avatar for sfurlow2

If I have a 40,000 word dictionary in the file: LatinDictionary.txt How would I output that file to the screen?

Software Development c++
Member Avatar for Narue
0
86

The End.