7,373 Topics

Member Avatar for
Member Avatar for hq1

I will arrange my output in well-alligned columns, but I don't think I should use 3D char arrays since my teacher just wants us to stick with what we've learned so far. Check out my code. I'm happy about it, but I just can't get the alignment right. [CODE]//File: lab9.cpp …

Member Avatar for Dingbats
0
629
Member Avatar for hearthand

Basics are: Another area of my program takes in strokes and then uses the recogniser to interpret those strokes into a recognise result. The result of this conversion is saved and is accessible. This is the string part of my question. On another screen I have a panel which takes …

Member Avatar for hearthand
0
203
Member Avatar for omkar1987

i trying to to open a text-file in read mode and passing that file pointer to a function which will extract the text from that file pointer .... but every time i build and run the program i get the segmentation fault error at the start of the "loadtoFile" definition …

Member Avatar for WaltP
0
124
Member Avatar for BrianTurkish

[CODE]// 1. Find the frequencies of individual letters in a sample // text file. // 2. Display this information both numerically and graphically. // a) In A..Z sequence // b) In decreasing frequency sequence // Programming concepts and C++ Language elements used // a) vector of structs, b) sorting #include …

Member Avatar for ravenous
0
155
Member Avatar for dan_J@ej00nG

Hi.. This is my first time posting here, so i hope u can assist me. I have this code [CODE]<% '======================= 'Define the names of your functions '======================= Dim Stream Dim Contents Dim FileName Dim FileExt 'Const adTypeBinary = 1 '======================= 'Get the actual file name from the URL that …

Member Avatar for ArtistScope
0
136
Member Avatar for mbehnaam

[B]Hi, I am beginner in Python and I'm looking for a method to write to a file by using Index. This is my program:[/B] ************************************************************** infile = open("land1.txt","r") outfile = open('out.txt', 'w') text = infile.read() infile.close() search = "<CgPoint" found=text.find(search) while found > -1: print search, "found at location", found …

Member Avatar for TrustyTony
0
172
Member Avatar for Taggize

I'm finding issue with my current program. I built the program so that it reads an input code from a file and it is also supposed to display only the code's appropriate salary. However, for some reason, everything I've tried only results in all the salaries being pulled together, not …

Member Avatar for ravenous
0
179
Member Avatar for petercpwong

I was just wondering if it was possible to upload an image using XHR rather than a hidden iframe? If so, do all modern browsers support it?

Member Avatar for mehdi991
0
314
Member Avatar for aviavyne

Hello, i have a project which requires that i work with three files. two files are text and one file is .dat Currently I have been successful at creating the dat and one of the texts. The project is a bit menu driven and is about stocks, when the program …

Member Avatar for WaltP
0
189
Member Avatar for sungilcool

I am slow when it comes to understanding c++ and I don't understand the errors it gives I don't have much time, so please help me #include <iostream> #include <string> #include <fstream> using namespace std; // add other includes if needed //--------- class header - DO NOT MODIFY --------------// class …

Member Avatar for jonsca
0
150
Member Avatar for Red20XX

Hi everyone, I am doing a C++ project for school in the UNIX lab that requires inheritance. My main program is calculating linear regression for some plotted points and I'm inheriting a linear system solver from another program. The linear system solver is suppose to print the solved values to …

Member Avatar for Red20XX
0
351
Member Avatar for garevn

Hello, i am new in c programming it is just the second month i i deal with. I am really confusing about what i have to do with this exercise pls don't lough on me I hope for some help. That's what i have to do.. I have to modify …

Member Avatar for WaltP
0
653
Member Avatar for waleed.makarem

Dear All , The question is quite simple for all of you . I have a binary file . A description for this file says that : "first 2 bytes in the header is the number of records" I have opened this file and loaded it into bytes by this …

Member Avatar for waleed.makarem
0
234
Member Avatar for garevn

Hello, i am new in c programming it is just the second month i i deal with. I am really confusing about what i have to do with this exercise pls don't lough on me :( I hope for some help. That's what i have to do.. I have to …

Member Avatar for Trentacle
0
344
Member Avatar for dark3lf

Hello, I am writing a program in python that detects inserted usb drives using dbus in linux and copies all of the files from it over to a dir on the computer. Here's my code: [CODE] import dbus import gobject import shutil import os import subprocess import time def move_files(pth): …

Member Avatar for dark3lf
2
196
Member Avatar for Siberian

I recently inserted my USB Thumb Drive into my computer and found one of the folders and all the files within the folder with file names such as this $5[]%6$3$@#. I knew there was something wrong, so I extracted and reinserted the key again, this time I let Windows7 do …

Member Avatar for Siberian
0
170
Member Avatar for ChEeZeBaLL

I'm new to C programming and I am trying to write a simple ID3 tag editor for mp3s. An id3v1 tag is the last 128 bytes of the file, with 30 characters for the artist, 30, for the title, etc... So far I have written this program which saves each …

Member Avatar for Dervish1
0
1K
Member Avatar for ELewis08

I saw the same thing I'm about to post on here earlier, but the difference is that I wrote the program, but it doesn't do anything save compile. The code's a bit sloppy, and I'm just not quite sure where to begin with the bugs. The actual assignment is as …

Member Avatar for Khaled Qawasmeh
0
340
Member Avatar for Wolf CCMLG

I am having a difficult time with a BitStream class. I need to overload the extraction and insertion operator for the classes, but I am at a loss. Here is what I have so far. Any guidance is appreciated. [CODE] #ifndef BITSTREAM_H_ #define BITSTREAM_H_ #include <iostream> #include <fstream> #include <vector> …

0
76
Member Avatar for mocha8688

I have a text file to be read "Mary had a little lamb its fleece was white as snow and everywhere that Mary went, the lamb was sure to go!". The program should do the following: 1. count number of words in file 2. print all words, one per line …

Member Avatar for WaltP
0
145
Member Avatar for rutherfordln

Hi I need help!! My program is supposed to count word occurences from a text file and the output is supposed to look like this a 2 count 1 hello 1 test 2 this 1 words 1 but instead it does this : a 2 a 2 count 1 hello …

Member Avatar for Clinton Portis
0
1K
Member Avatar for yuri1969

Howdy, I need to print given path to a file. The problem is that my app is platform independent -> I can get a Win32 style path: [CODE]C:\foo\bar.dat[/CODE]. The problem is with printing single backslashes '' -> single char converts to "\char" style. I need to convert it somehow to …

Member Avatar for yuri1969
0
157
Member Avatar for gillivt

I am setting up a shopping cart using foxycart and asp.net(vb) FoxyCart sends me an xml feed by a httprequest (RC4 encrypted and URLEncoded) In order to test my receiver page (datareturn.aspx) I have created a sample test page in vb (sampledata.aspx) based on their own c# version. This loads …

0
69
Member Avatar for new SE

Hi all, i am working on converting the asp.net to pdf file.. now i'm using this code,but it give me an error "Type or namaspace name 'pdfConverter' could not be found".. is there any component i need to install..any help plz? [CODE]PdfConverter pdfConverter = new PdfConverter(); pdfConverter.PdfDocumentOptions.PdfPageSize = PdfPageSize.A4; pdfConverter.PdfDocumentOptions.PdfCompressionLevel …

Member Avatar for crishjeny
0
148
Member Avatar for shakssage

I'm trying to move functions that I have created in my .h files into the .cpp files of my winForm application. I don't really know how to get this to work. Example code in .h: [CODE]void loadCustomerDetails() { SQLiteConnection^ ObjConnection = gcnew SQLiteConnection("Data Source=SwiftService.db3;"); SQLiteCommand^ ObjCommand = gcnew SQLiteCommand("SELECT * …

Member Avatar for jonsca
0
433
Member Avatar for CGober

This code block downloads images from a website.. I used WebClient at one time and I had used DownloadFileAsync combined with my own event handler to send the main form the message that a file was downloaded. Now I am using HttpWebRequest to try and improve download speed, however I …

Member Avatar for alc6379
0
106
Member Avatar for bufospro

Hi all, I want to read a file. The file is like that : 20 20 1 5 6 20 21 1 2 3 21 22 2 4 6 20 20 2 3 5 20 21 6 5 2 21 22 1 6 7 .... and I would like every …

Member Avatar for bufospro
0
123
Member Avatar for JeremyJ

Hi, I need to download URL's to a file using C++ code. Does anyone know of a library, compatible with Windows, that will do this? I know about CURL, but after spending days trying to configure LibCurl using Cygwin I'm ready to give up. A friend has been able to …

Member Avatar for JeremyJ
0
930
Member Avatar for hmortensen

Hi, I'm waiting for a file, and then trying to delete it. This is what I have. [CODE] repeat file, msg = io.open("Done.txt", "r") until file file:close() os.remove("Done.txt") dbg=io.open("DEBUG.txt", "a+") dbg:write(file .. "|" .. msg); dbg:write("\n") dbg:close() [/CODE] It does wait for the file to be created (so I know …

0
44
Member Avatar for Eagles36

I am trying to read a txt file into a binary tree. I have the computer create the binary tree from the txt file. Once it adds to the binary it learns what you add. I got it to do the second portion I cant get it read it in …

Member Avatar for daviddoria
0
100
Member Avatar for SgtMe

I have made a python program which will create an OpenGL and render a teapot (GLUT standard teapot) with a shader that I specify. The shader is specified as follows: [LIST] [*]I have a file called "index.ini" which contains the file paths to a vertex shader and pixel shader file …

Member Avatar for SgtMe
0
484
Member Avatar for liran

( It is only in Python 3 ! ) ( The commands to operate this file are at Linux ! : I want to read a file, but it has to be through stdin ( In linux, with "< filename" ) ! And I want to write the same file …

Member Avatar for Gribouillis
0
2K
Member Avatar for Plastix!!

how can one read from a file (.dat or .txt) using and linked list. ie. file 1 -> after reading from this list then user enters 1 for next which would print another file. file-> and so on

0
47
Member Avatar for 5ophie2012

Help! I'm developing a program for a class and I'm a bit lost. My program needs to do the following: 1.) Open a text file using a file dialog box. 2.) Loop and read the file one line at a time using Readline(). 3.) Display every line which has text …

Member Avatar for kvprajapati
0
104
Member Avatar for pjh1985

Hi, i found this image uploader in another post but i'm having a few problems with errors or upload confirmation not displaying at all and was wondering if someone could take a look. [URL="http://www.daniweb.com/forums/thread144647.html"]original thread,[/URL]the file is a zip near the bottom of the page It seems the database code …

Member Avatar for cossay
0
73
Member Avatar for sajohnson05

Below is my file read. I am trying to output it in a table form and also i am trying to read any length of tilde document. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <?php $namefile = 'pilots.txt'; …

Member Avatar for sajohnson05
0
153
Member Avatar for onebetter

Msn wont run, startup or anything and it sucks :( MalwareBytes’ Anti-Malware log Malwarebytes' Anti-Malware 1.24 Database version: 1016 Windows 5.1.2600 Service Pack 2 12:17:53 PM 8/2/2008 mbam-log-8-2-2008 (12-17-53).txt Scan type: Full Scan (C:\|D:\|) Objects scanned: 93499 Time elapsed: 31 minute(s), 21 second(s) Memory Processes Infected: 1 Memory Modules Infected: …

Member Avatar for jholland1964
0
341
Member Avatar for sajohnson05

I have a code that needs to read in a file and has a parameter file. I need to know how to put in <=,<,=,>=,> operators that will be in my parameter file. I beleive that it needs to go in this line: $search=explode(':',strtoupper($params[0])); but not sure if it will …

Member Avatar for sajohnson05
0
99
Member Avatar for moroccanplaya

so far the user can select a file that he want to open to be copied, is there a way of letting the user selecting multiple files to be copied to one file? i was thinking of looping around asking the user to add another file if the user wanted …

Member Avatar for moroccanplaya
0
95
Member Avatar for kapilsolanki84

suppose i hv 1 txt file in which i hv declared 1 path name of particular file. i wan to recall that file by using pathname from thaT particular file.say for eg: input file(path.txt) having pathname as "C:\\gp442win32\\gnuplot\\binary\\gnuplot -persist","w".now i wan to call this file in c code in order …

0
68
Member Avatar for berwick53

I've been learning C/C++ and I'm currently doing an ATM project. It all works fine but I would like to improve it so when i quit the program and it will load the data used previously. currently I use a struct like this [CODE]struct database { int pin, sort, account, …

Member Avatar for taylorc8
0
178
Member Avatar for arctushar

Hello I have created a file name connect.php and code of this file is as below [CODE]<?php $db_server = 'localhost'; $db_username = 'myweb_user'; $db_password = 'Aunhy125$%'; $db_table='main_table'; ?>[/CODE] To connect database I used to include_once() function. What may be the problem for this. Or what would be be best way …

Member Avatar for madCoder
0
60
Member Avatar for rebellion346

So, when I run the program and try to list all the information I get an interesting error message that pops up: ----- Debug Assertion Failed! Program: ...ocuments\Programs\C + + Programs\Checkbook\Debug\Checkbook.exe File: f:\dd\vctools\crt_bld\self_x86\crt\src\tccpy_s.inl Line: 19 Expression: (((_Src))) != NULL ----- Though I have an idea that it probably has something …

Member Avatar for rebellion346
0
233
Member Avatar for pipskikostka

I have one template page that I am using to show information about 8 different projects. some projects require .wav files on the page. So on those pages that require .wav's i want to show the sound file for them to play, and on those pages that dont require sound …

0
71
Member Avatar for ganeshhsk

The problem that im facing is, the below code is working correctly and retrieve the pdf format files correctly and displaying it in the iframe. but it is only working in eclipse internal browser but not in firefox or internet explorer. what will be the reason for this.... Source code: …

0
51
Member Avatar for anbusatish82

Hi ALL, Am using the below vbs script to get the full path or absolute path, from the current directory path. The current directory path is "D:\JAMER\TestCases\Hammy\TC2_Enabled_both" The below script is used to get the full path of the current working directory to the file ScriptingFilePath.txt for later references, [code] …

Member Avatar for AndreRet
0
199
Member Avatar for Pari13

Dear All, Have good day, I am trying to attatch file like yahoomail attatchement ,it means displaying name of file and Remove link after Button_click event fire. [CODE] protected void Page_Load(object sender, EventArgs e) { LinkButton1.Visible = false; label2.Visible = false; } [/CODE] [CODE] if (FileUpload1.HasFile) try { FileUpload1.SaveAs("e:\\parimal\\" + …

Member Avatar for crishjeny
0
472
Member Avatar for dlannetts

hi, i have to pieces of php code that i need to place into one but am unsure how to do it, firstly i have my peice of php to upload a few statistics: [CODE]<?php include 'mysqlconnect.php'; $db = mysql_select_db("upload_frenzy", $con); if (!$db) { die('Can not Connect to Database: ' …

Member Avatar for Dragonbaki
0
171
Member Avatar for Anuradha Mandal

What is worng with this code? This code shows... setw.obj : error LNK2005: _main already defined in filel.obj Debug/filel.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. filel.exe - 2 error(s), 0 warning(s) [CODE]#include <iostream> using std::cerr; using std::cout; using std::endl; #include <fstream> using …

Member Avatar for Ancient Dragon
0
191
Member Avatar for pgr_DW808

I'm having a little bit of trouble. I have been working on this code for a while and no matter what I do I just can't seem to align the data correctly. I can really use some help. The information for the stocks and the output of the program is …

Member Avatar for pgr_DW808
0
132

The End.