7,373 Topics

Member Avatar for
Member Avatar for GPXtC02

What is wrong with this function? [code]// /////// // void GetData(int(IDs)[], float(Scores)[][4], int &i) { //GIVEN: One blank ARRAY, one blank 2D ARRAY, & a index variable. //TASK: Function retrieves data from open stream into multiple functions. Stores ID into one structure and all of the student's test grades into …

Member Avatar for GPXtC02
0
262
Member Avatar for EnderX

If this is in the wrong place, I apologize. I use ShellExecute only in Delphi, but I am aware that it may not be properly considered part of the language. I have a program that is supposed to generate a .csv file for an output report. However, my boss wants …

Member Avatar for Aborad
0
303
Member Avatar for cs_tx_usa

Please someone help me with this code. I keep getting an exception saying Unable to read beyond the end of the stream. What I am trying to do is reading a binary file that has a single data type and then writing them into a file. Any help is appreciated. …

0
81
Member Avatar for Shanomacadaemia

Hi, I'm new to assembler and I really need to make this work as it's crucial to my success in this course at college. Normally I wouldn't ask for help, but because time is such a factor now and due to my limited understanding of the language, I feel I …

Member Avatar for Shanomacadaemia
0
81
Member Avatar for deactivated

Hey everyone Maybe someone can help me with this. We are supposed to create a program that will read a .dat file and then output a new file containing the total number of rows in the data file, the sum of integers and the number of occurrences of the number …

Member Avatar for plgriffith
0
88
Member Avatar for Run.[it]

In class weve been shown how to read from a binary file and read from a text file but Im unsure how to write text to a binary file? Heres my attempt so far, Can you help? [CODE] #include <iostream> #include <stdio.h> using namespace std; int main() { FILE *namefile …

Member Avatar for Run.[it]
0
207
Member Avatar for cs_tx_usa

Hi all, My program reads a binary file (data type is single) and writes that binary file but the file size of the outputted binary file is exactly 4 times larger than the inputted binary file. I just don't know why. I would understantd if the binary file that the …

0
69
Member Avatar for boburob

Hi, I am designing a code breaker program that works out letter frequency in a text file and tries to codebreak using the frequency that letters appear in the english alphabet, however at the moment it is only outputting whatever is at the end of the decry array. Thank you …

Member Avatar for codeaa
0
794
Member Avatar for Ryuji5864

I am currently taking C++, and I just want to know why it says,"Illegal Else without if," and I would like to know how to fix it so I will not encounter this problem again. I would like to know where to put the brackets, "{ " Here is the …

Member Avatar for Ryuji5864
0
175
Member Avatar for alexgv14

I have a .txt log file and must of it is crap. But there are parts that display when a user logs in, and at what time the logged in. Below is a portion of the log file. For example, "user1" is a user logging in and "user2" is another …

Member Avatar for jrcagle
0
119
Member Avatar for behnaz

when we use this file: #include<graphics.h> #include<stdio.h> #include<conio.h>

Member Avatar for Ancient Dragon
0
106
Member Avatar for ducu25

Hi I don't know if this is the best place to post my question, but here is what I have and what I need to do: - I have 100 questions. Every question is in a cell (from B1 to B100). In cells A1..A100 I can say "yes" or "no" …

Member Avatar for vijeshally
0
145
Member Avatar for rickykoh1983

Hi. I have a program that allows users to enter their information. After they have entered their information and clicked on submit, the program will create another exe file so that when the user opens the exe file, they will be able to see their information. How can I create …

Member Avatar for RamPrasad710
0
234
Member Avatar for Lioshenka

Hi there!!! I am back with more problems, now in Java :) What I am trying to do is to make an application to read and output a random line from a text file, but everything I know how to do is to output the whole lot. How can I …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for shane'r69

I am posting a log file from HJT and was wondering if someone could take a look at it for me. I would like to get rid of the etrust pestpatrol program but it won't let me do this with uninstall. I also would just like to make sure I …

Member Avatar for K9servant
0
155
Member Avatar for ihtraa

am currently workin on RFID Technology and am stuck with the socket connectivity... there is a client which is an EXE file called RFID.exe now we need to create a server program to connect the client n read the msgs sent by the client application. in the server program v …

0
49
Member Avatar for carobee

how to untar a file with tar.gz extension in php script. i have written a php script for uploading a tar.gz file amongst many files. i have to untar this file. how will the command be like? till now what i have done is - consider for uploading i have …

Member Avatar for carobee
0
1K
Member Avatar for Ankita B

Hi,I wish to make a configuration file for db connection parameters. I read about properties file.I have made a properties file that contains the following info--- String jdbcDriver="oracle.jdbc.driver.OracleDriver"; String connectionURLThin="jdbc:oracle:thin:@ hostname:AIPUAT1"; String DbUserId="abc"; String DbUserpassword="abc"; and saved it as DbConnection.properties. i have also made a java file that uses these …

Member Avatar for Ankita B
0
141
Member Avatar for dexter1984

[CODE= cpp] #include <iostream> #include <ctime> #include <cstdlib> #include <iomanip> #include <fstream> using namespace std; const int MAX = 51; const int setArray = 5; float initialArray[MAX][setArray]; void createRationalNo (int, int); float RationalInfo (float[][setArray], int); void printArray (float[][setArray], int); int main() { cout << "No\tP\tQ\tQuo\tRem\tValue\n\n"; srand(time(NULL)); int setPQ = 2; …

Member Avatar for dougy83
0
115
Member Avatar for bushman_222

Hi all, I have a file that I want to transfer. I read it from a database and save it to a file, then I open if from the file and put it into a an array I then open it again this time as binary and send the packets. …

0
58
Member Avatar for jenna_baby

instructions [CODE] Skills needed: while loop, logical expressions, nested if-else statements Your assignment for MP3 is to calculate the monthly bill for a cell phone user given the following rate structure. Note that this is a simpler structure than in real life – you do NOT have to be concerned …

Member Avatar for ithelp
1
96
Member Avatar for RexxX

Back to where I was, now I'm learning how to use fgetc properly. Does fgetc read in a character? If so I can't find my error in my code and I'm getting a a segfault. Can you help fix it and explain why it doesn't work? Thanks [code]#include<stdio.h> //declare variables …

Member Avatar for Aia
0
221
Member Avatar for zclevenger

I have just started using python and am stuck on a particular project. I have been stuck staring at my computer not knowing what to do. I will post details below. What I am trying to do is use a CSV file named country.csv in which information about countries is …

Member Avatar for jrcagle
0
173
Member Avatar for lkk2116

I am new to python. Infact started yesterday and feeling out of place. I need to write a program which would transfer files under one folder structure (there are sub folders) to a single folder. I was going through COPYTREE in shutil. But some how I am not able to …

Member Avatar for jrcagle
0
101
Member Avatar for cosmos22

Using the code below, I tried to implement a second line of code to delete another file in the same folder. I got an error message as a result. I'm using messenger as an example: I tried to replecate this line: const char * pFileToDelete = "h:\\MSN Messenger\\myfile.txt"; into something …

Member Avatar for cosmos22
0
96
Member Avatar for Yuexuan

How to import excel file data to mysql database here is my uploading file coding how to use my uploaded excel file to get it data and store it at database Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim filepath As String = Server.MapPath("Files/") Dim …

Member Avatar for Yuexuan
0
380
Member Avatar for lordsvae

Allright, this is the deal, im trying to use Install Sheild to install a program I wrote in java. But I cannot make shortcuts on the desktop and/or START menu linking to the .jar file, it has to be a .exe file, so I need to make a simple .exe …

Member Avatar for vijayan121
0
96
Member Avatar for hyperzero4

Hello, I'm very, very new to C++ and I'm taking computer science course right now for fun. I really want to learn C++ but I'm having a lot of trouble with this new homework assignment and I'm hoping I just take it one step at a time so I completely …

Member Avatar for John A
0
4K
Member Avatar for timchippingtond

In C++ on MS Windows XP. Actually using MS Visual C++ in VS 2003 .net (v7.1) and VS 2005, on XP Pro with SP2. How can I find the full pathname which is attached to a file stream? I have code like: [CODE]bool DataModel::readGrades(char* filename) { std::ifstream tablestream(filename); if (!tablestream) …

Member Avatar for Narue
0
147
Member Avatar for Jennifer84

I have managed to create a file (Sample.txt). So what I need now is to put the contents from array (ReadLines[]) to this file, line by line and the file name should be what is written in textBox3. [code] array<System::String^>^ ReadLines = gcnew array<System::String^> ( textBox2->Lines->Length ); ReadLines = textBox2->Lines; …

Member Avatar for Jennifer84
0
111
Member Avatar for Beks

Hi All, Please bare with me as I'm new to this forum and to web design. I was asked by my boss to design adn upload a new website via ftp, which I can do. I realised this morning that it is not as simple as just that! Basically, here's …

Member Avatar for Walkere
0
148
Member Avatar for kursist

Hi, I am new to bash scripting. I have some questions here, Can anybody help? I have a text file which has the following format. UserNam User full name road and house nr. post nr, city phone, mobil Department, job The first thing should be to open file and find …

Member Avatar for kursist
0
109
Member Avatar for VersEtreOuNe

[COLOR="Red"][B]Circle.h[/B][/COLOR] [code=c++] #ifndef CIRCLE_H #define CIRCLE_H #include <iostream> #include <fstream> using namespace std; class Circle { friend ostream& operator <<(ostream& output, const Circle& aCircle); friend istream& operator >>(istream& input, Circle& aCircle); public: Circle(); Circle(double radius, int id); Circle(const Circle& aCircle); void SetCircleRadius(double radius) { _circleRadius = radius; } void SetCircleId(int …

Member Avatar for vmanes
0
103
Member Avatar for jaepi

Hello there! Is there any way you can create a file with no extension with a size of 700mb? I tried using the [I]edit[/I] tool in the command line but it can't create that size. Thanks!

Member Avatar for DimaYasny
0
57
Member Avatar for VersEtreOuNe

What I need to do i something like this: [B]ClientData.h[/B] [code=c++] #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string> using std::string; class ClientData { public: ClientData(int = 0, string = "", string = "", double = 0.0); void SetAccountNumber(int); int GetAccountNumber() const; void SetLastName(string); string GetLastName() const; void SetFirstName (string); string GetFirstName() …

Member Avatar for WaltP
0
142
Member Avatar for hallinan

hi I'm doing a banking project using binary files I need to write into a binary file and read and calculate the amounts within it. I open a file by asking the user for their name and searching and a file. I am having trouble reading the integers into a …

Member Avatar for zhelih
0
141
Member Avatar for dami06

Hi, I'm trying to upload a some files to a webpage im trying to crete but its giving me an error once i click the upload button it gives me this type of error [B]Uploading information to the system from a file Student data is being uploaded. DATABASE ERRORExecuting SQL …

Member Avatar for dami06
0
102
Member Avatar for civic

hello! so in XP there was this option of File Types when you went to a folder>tools>options...>file types and from there you could change a particular file to become a chosen icon ie. FLV files being a custom icon. just wondering if anyone knows where "File Types" is now because …

Member Avatar for Laser
0
110
Member Avatar for rockmania

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton …

Member Avatar for jwenting
0
179
Member Avatar for jliu66

Hi, my friends, I have a question to ask you. I am dealing with thousands of csv files in one directory. Some of csv files are empty with file size 0. How can I skip those empty files when I open csv files otherwise it causes execution error? I have …

Member Avatar for jliu66
0
88
Member Avatar for arkansan

Here is my Hijack log. I ran it at 12:53 or :54...This file won't go away. It's a temp file. ~DF8241.tmp another one is ~DFE2H.tmp Here is the log............................................................... Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 12:47:27 PM, on 2/1/2008 Platform: Windows XP SP1 (WinNT 5.01.2600) MSIE: Internet …

Member Avatar for MoralTerror
0
257
Member Avatar for kux

As i knew the <stdarg.h> header should have the following function int vfscanf(FILE *stream, const char *format, va_list ap); but under Visual Studio 2005, after including the header and calling the function i get 'vfscanf': identifier not found if the function is not declared, can u tell me some simmilar …

Member Avatar for WaltP
0
157
Member Avatar for Shveetis

Hello everyone.. I am trying to retrieve a URL of applications from a text file... My text file contains 3 URLS for 3 applications say for example : C:/ABC.java C:/JVM.java C:/Tomcat.java I have tried implementing a code for the same but when I try to copy the URL into a …

Member Avatar for Phaelax
0
109
Member Avatar for P90K

hi i want to close an excel file. i have already this code [CODE]Windows("datamppm.xls").Activate ActiveWorkbook.Close savechanges:=True Application.Quit End [/CODE] but when ik click te button to close the excel file. excel gives an "error" that there are item on the clipboard. en then i have to chose yes or no …

Member Avatar for P90K
0
156
Member Avatar for ysong

Tried to zip multiple files on the fly in java servlet with zip package (ZipOutputStream), so users can download the zip file by calling the servlet. It works fine for small files. But occasionally the browser stops the download before completion when users invoke the servlet action, and the zip …

0
57
Member Avatar for mjoshi

Hi, I have written a program that copies one file to another while making format changes to some lines The relevant part of the code is the following" [code] while(fgets (cbuff, 80, f1)!= NULL) { if ( (isdigit(cbuff[5])) && (isdigit(cbuff[11])) && (isdigit(cbuff[17])) ) { strncpy (c1, cbuff+1, 5); c1[5] = …

Member Avatar for Ancient Dragon
0
100
Member Avatar for rajeevkshr

Hi all, How Can i Download a Upload Word Document in PHP.Anybody Can help me For me Doing This.

Member Avatar for nav33n
0
71
Member Avatar for poojagupta

My question is to calculate the mean of a comma separated dataset stored in a file. The program will be run on a system with no floating point library. Obey the following rules: 1.Maximum 100 values in dataset 2.Each data entry in the dataset is a byte (0 - 255) …

Member Avatar for Narue
0
114
Member Avatar for Ankita B

hi, im making login page using jsp.user names and password entered are matched wit the db. have placed db connection code in a java classlogin.java...The directory path is webapps->myfolder->all jsp and html files webapps->myfolder->WEB-INF->classes->test->login.java I entered the url in browser also perfectly fine..[url]http://localhost:8085/myfolder/mainpage.jsp[/url] i set the PATH and CLASSPATH variables …

Member Avatar for ~s.o.s~
0
180
Member Avatar for JAYHOUSTON

both my dvd drives are not working...device manager says devices working properly but nothing happens..dvd's or cd's dont play.. below is the log.. Logfile of HijackThis v1.99.1 Scan saved at 9:31:45 AM, on 1/31/2008 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v6.00 SP2 (6.00.2900.2180) Running processes: C:\WINDOWS\System32\smss.exe C:\WINDOWS\system32\winlogon.exe …

Member Avatar for caperjack
0
165

The End.