132,726 Archived Topics
Remove Filter ![]() | |
Does anyone know how to change the value of FS.Length? I keep getting that it's read only. I need to read a file, let's say it's 100 bytes in size. After some data manipulation, the file becomes 40 bytes. When I write the file back , it writes the 40 … Software Development file-system vb.net | |
I am using saveFileDialog1 and are trying to recognice what path that was selected when "Save" the file. I have begun some code below but are not sure what and if I will write something after saveFileDialog1-> ? [code] //Get The Path that was selected when saving the file String^ … Software Development c++ | |
HI .... I am a beginner programmer and we are required at college to create a very simple game as a console application :( We found a graphics library for that... thank God.... But we need a sound and video library... but please consider that it should be: 1. For … | |
Hello everyone! I haven't programmed in quite a while and now that I'm getting back into the programming environment for my robotics project again, I'm a little stumped on something: I'm getting this error message for an exception raised in my VAST python script for my robot. It goes like … | |
What are some limitations imposed by a fixed array size? can you please tell me A limitation of arrays is that they have fixed lengths. what does it means ? Software Development c++ | |
int patientstomemory(patientstruct (*patientstructpointer)[maxpatients]) { patientstruct patientstruct1[maxpatients]; patientstruct1= (*patientstructpointer); 1>c:\documents and settings\patrick\my documents\hgkbklhb\hgkbklhb\hgkbklhb.cpp(88) : error C2106: '=' : left operand must be l-value whats wrong? very important, working on semester project due monday Software Development c++ | |
If I am reading a .txt file with ifstream, what is the syntax to recognice if I have reached the end of file. From what I have heard somewhere before, I think it has with eof to do ? [code] ifstream File("C:\\File1\\"); std::string Line; while( getline(File, Line, ',') ) { … Software Development c++ file-system | |
I am working with the tutorial at: [url]http://www.netbeans.org/kb/articles/mysql.html[/url] The program works great. untouched the program displays the entire database that is a result of of query.getResultSet(). I added a combobox,textfield,and a button with an action. I dragged and droped an additional: searchEnityManager1 bound to the preexisting splashbookdbPU searchQuery1 (bound to … Software Development java java-netbeans oracle | |
Hi, (using MS VS2005) Recently I've found that in order for a function to be exported, dllexport *must* be placed in the same file of the function body. E.g. see the following case: [U]File a.cpp[/U] [code=C++] void dllexport a(); a(); [/code] [U]File b.cpp[/U] [code=C++] void a() { // function body … Software Development c++ | |
[CODE=C]FILE* f = NULL; fclose(f);[/CODE] Terminates with: 'No source available for "fclose@@GLIBC_2.1() " ' [CODE=C]FILE* f = NULL; ftell(f);[/CODE] Terminates with: 'No source available for "ftell()"' Why those functions does not return error value but terminate whole program? How can I safely tell if file is opened in C and … Software Development c file-system | |
hi, im learning to use python at the moment and i came over a question where it gives me a large csv file with names of companies and how much they are earning and i was asked to find the top 10 companies..i orignially did this: [code] import urllib import … | |
In this work you will materialise a algorithm that solves the problem of Stable Marriage. In this problem we aim at "n" men and "n" women and our goal is the contracting of constant marriages between men and women. Obviously each man can be wedded only one woman and one … Software Development algorithm c data-structure | |
answer the txt question but please don`t use using namespace std; and stuff like that because i think my compiler dosent work with new standards Software Development c++ | |
Hey guys, i have done C++ before but gave up on it :P. But i've came back to it and i'm wondering what is a good way to simulate a left and right click? i guess you would start with this: [CODE]#include <iostream> #include <windows.h> using namespace std; int main … Software Development c++ | |
how does the code thing work in order to put up a program? Software Development c++ | |
Well I tried to look for any posts on ranking arrays, but all I ever really got were stuff about Google's ranking system. Anyway, I have two arrays. One is arr[] which is the original array, and rank[] is the indexing array. So if I were to print arr[rank[0]], it … Software Development c | |
can u help me with this: write a program that u can write in it and evrey time u press (F1) program will tell u number of capital letters in txt if u press (F2) it tells u number of words(for exampel: 23 erf 3e has 3 words) if u … Software Development c++ | |
For the final project of the year i need to create a digital image processor that removes the noise and increase the contrast in a digital image. Here are the requirements for the project: Program Requirements Input data: The values for the two-dimensional array will come from a file (rawimage.txt) … Software Development image visual-basic | |
Hi All, I am need of using a excel file as a standard template and then use a list of .csv files to populate certain rows and columns of this standard template and save it with a different name so that I can always reuse the standard template and it … Software Development | |
i have Visual Studio 9 , 2008 and have published a program but it doesn't work on PCs that don't have Microsoft .Net Framework 3.5 installed. is there any way to make the program work without having to install the .net framework on the pc? Software Development vb.net visual-studio | |
I NEED HELP WITH A BIRTHDAY PROFILE IN C++ I have to create three classes: Person,birthdate, and date. Create seperate .h and .cpp files to seperate the implementation from the interfaces. 2. Create a list of attributes and operations for all the classes. 3. Implement the methods,attributes, and constructor for … Software Development c++ | |
this is what my program looks like but after prompting and reading my files, i get an infinite loop. the program compiles and i just put that simple cout statement just to see if anything will come out. can anyone see where i am messing up within my main that … Software Development c++ | |
I have the following file 1928282,Stephen LTD,31280938,L34 3128398,Stephen LTD,84327489,L34 I want to uniq on fields 2 & 4, the fields are comma seperated I cant figure out how to do this....any ideas? im pretty sure uniq does not support this Software Development shell-scripting | |
I'm having a little problem with a conversion error during compile. Here is the code: [code] #include <iostream> using namespace std; class costOfItem { public: costOfItem(float i_cost); void printMe(); private: const float price; }; // Free functions void displayPrice(costOfItem z) { z.printMe(); } void displayRefPrice(costOfItem &z) { z.printMe(); } void … Software Development c++ | |
[code=c++] struct if1 { string idnum;//id number for the student string lastname;//last name of student string firstname;//first name of student int examscore[maxexam];//array of all the exam scores of the student int hwscore[maxhw];//array of all the home work scores of the student }; void alphasort(if1 student[], int n) //the alphasort function … | |
I am trying to check the size of a file with this code. The file is named "OneFile.txt" and is of the size 230 kb. The MessageBox will show the number 37. If I change the file so it will be 460 kb instead, still the messageBox will show the … Software Development c++ file-system | |
[code] #include <iostream> #include <fstream> #include <string> using namespace std; void writeArray(); void readArray(); const int capacity = 4; //const int spec = 4; double numbers[]={12456.89,234.00,3456.78,21212.50}; //string A12345; //string A45678; //string B21223; //string B21435; string names[]={"A12345","A45678","B21223","B21435"}; int main() { writeArray(); readArray(); } void readArray() { ifstream infile; infile.open ("accounts.txt"); infile … Software Development c++ | |
I have a form (Form2) that I want to write text at the top of (In the blue field where you normally can can tell what the windows/forms name is) I thought it should be like this but I cant find "Form2" after this-> What I can find is Form2_Load … Software Development c++ | |
Hey all, I have recently become interested in trying to automate various MS Office applications using C++... I was writing some macros in Excel to update some databases that I work with, and decided it would be cool if I could sort of wrap the entire process in a C++ … Software Development c++ | |
hey there i have a question for you guys. my program reads a file and then save each line of the file into a multimap<string,int> containing the string and the number line. i have the convert strings in alphabetical order, like take into aetk, and thats where the problem begins … Software Development c++ | |
Hey all, I'm currently writing a program that will do various things with dates. The problem that I currently have is getting pascal to recognise dates in various formats (eg. 24/09/93 or 09-03-04 or 17 01 99, etc) when input by a user. This data needs to be read by … Software Development pascal | |
I have a dataGridView1. In a datagrid you can manually write columnheader names. (Each Column can have a name) What I wonder is how it is possible to programatically write a name for example column Numer 1 ? I have looked at the memeber of the class but cant really … Software Development c++ | |
the problem lies when the move checks to make sure it is valid, every move will display valid or not valid, and the code always displays not valid everytime [code=cplusplus] #include <iostream> #include <fstream> using namespace std; int initialmenu(); void initialboard(char board[][8]); int moveoptions();//function prototypes void appropriatemove(char board[][8], int move, … Software Development c++ | |
[code=cplusplus] #include #include int gcd (int , int ); void main () { int m, n; cout<<" Enter first integer:"; cin >>m>>endl; cout<<" Enter second integer:"; cin >>n>>endl; cout<<m<<"&"<<n<<" The GCD is:"<<gcd(m,n)<<endl; } int gcd (int x, int y) { if(y==0) return x; else return gcd(y,x%y); } [/code] Software Development c++ | |
okays... so i'm looking for some kind of a standard algorithm that doesn't take long. i thought going backwards, finding the first space, writing the last word and nulling (is that even possible?) each char, but that doesn't really sound good to me. I've seen some people say you should … | |
I have a checkedListBox1 wich consist of a many lines with text. What I am trying to do is to search trough this checkedListBox1 to see if "Hello" could be found in this box and if it is found, this Item(Line) will be selected. I am not sure what could … Software Development c++ | |
Hi, This program reads parameters from parameter line : program.exe data.txt result.txt (or somth.) , then takes date from data.txt and writes it to buffer, then program divides buffer to lines , writes to stack, and finally it should pop lines to file, but there is an error doing that... … Software Development c | |
Hi I am trying to display a table from Access in a Flexgrid. For some reason, the flexgrid only displays the first record from the table and doesnot show any other record! Can someone please help!! Here's the code: Set cmd.ActiveConnection = conn cmd.CommandText = "SELECT WFJob,JobTitle,FLSA FROM Delte where … Software Development visual-basic | |
hi can you tell me the anatomy of game in which the player picks a number and the computer must guess what it is. no code just give me a hint or two :D Software Development c++ | |
If I have this line in the code[icode]java.util.Collection search = searchQuery1.getResultList();[/icode] Is this a collection of <list>? and can I find out if search should be named"Search" or does it have to be instantiated of something? Software Development java | |
import java.util.*; public class changemakerj { static Scanner console=new Scanner (System.in); static final double PRICE = 10.50; public static void main (String[] Args) { double quantity,tprice,amtpaid,change1,chg$10,chg$5,chg$2,chg50,chg20,chg5,chg2,chg1; System.out.println("Enter the quantity:"); quantity=console.nextInt(); System.out.printf("Total price:$ %.2f.%n",tprice=quantity*PRICE,quantity); System.out.println(); System.out.println("Amount paid:$"); amtpaid=console.nextDouble(); System.out.println(); ; System.out.printf("Change:$ %.2f.%n",change1=amtpaid-tprice,amtpaid); System.out.println(); chg$10=(int)(change1/10); change1=change1 - (chg$10*10); System.out.println((int)(chg$10)+ ":$10.00"); chg$5=(int)(change1/5); System.out.println((int)(chg$5) … Software Development java | |
I've built a small PC app that resides in the Task Bar Tray until one of our employees sends a signal to it with a handheld device. When the PC app is activated, we connect to the SQL Server to retrieve records using Integrated Security on the PC:[code=vb]Private m_conn As … | |
![]() | I hope people don't mind seeing references to other forums here. I'm a regular at [URL="http://www.python-forum.org"]www.python-forum.org[/URL] but lately I've been having problems with the site. Last week, I couldn't post anything for two days, but that seems to be resolved. Now, I can't even log in. I get a "406" … Software Development python |
When I add buttons to a panel, the buttons seem to take a huge amount of space. How do I get rid of the space? For example: [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Tester { public static void main(String[] args) { JButton dayButton = new JButton("Day"); JButton … Software Development java java-swing | |
[code=cplusplus] #include <iostream> #include <iomanip> #include <fstream> using namespace std; void DisplayTitle(); void DisplayBal(double); void GetData(int& , double&); double ProcessCheck(double, double); double ProcessDeposit(double, double); double ProcessATM(double, double); double ProcessSvcChg(double); struct transrec { double credids; double debits; double service charges; }; const double CHARGE = 10, ATMFEE = 2; int main() … | |
I am writing a function which will check if the letter is in upper case , if so it returns true otherwise false. Following is the code, I have written, but what is wrong? #include<iostream> using namespace std; using std::cout; using std::cin; using std::endl; int isUpperCase ( char ); int … Software Development c++ | |
Hi World! I'd like to get out some data (voice) from WAV files in C#. I have to use the data as a double. I searched for the solution for hours, but I haven't found any useful stuff. :( Could anyone give me any idea how to do that? Is … Software Development c# | |
Hi there, I have a data set ([url]http://app.lms.unimelb.edu.au/bbcswebdav/courses/600151_2008_1/datasets/entertainment/moviestats_large.csv)[/url], and i was just wondering the best way of tackling the question stated below: Which director is the most productive? I an new to python and wondering if anyone could help me out a little on this problem. I have considered trying … Software Development python | |
Hi All, We have been using http_class in urllib2.py ,_http.py and calling its various methods like h = http_class(host) # will parse host:port h.set_debuglevel(self._debuglevel) h.request(req.get_method(), req.get_selector(), req.data, headers) h.getresponse() I am searching this class in the python directory but I could'nt find any.. DO we need to download this separate … |
The End.