64,152 Solved 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 … | |
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^ … | |
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, ',') ) { … | |
I m retreiving some data by using cursor inside which i m calling one recursive user defind function to retrive all child data which is linked to parent. While executing i m getting error stating : [B]Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)[/B] How can … | |
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 … | |
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 … | |
[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 … | |
I use an array for the first time in a while loop without declaring it(as php does not need it) [code=syntax] $variable_array[] = $fetch_array['column']; [/code] As the while loop is repeating it increases the number of the array. Am I doing this right? Should I have before the loop some … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
I'm trying to get this script to work and it is only giving me a blank white page, can someone take a look at it and see if you can tell whats wrong with it. [code] <?php // Show simple format of the records so person can choose the reference … | |
I am trying to insert tables into a database that I created at runtime, I am using MS SQL Server Express, and I have tested this query and it works, in the sense that a table is created. However the small text field (stringText [char]) only has a length of … | |
Hi guys, Both cursor works if i don't use them in one Stored procedure. Both cursors return TRUE for(cursor_x%found). But, insert into process doen't work in cursor_1. Is there any structure problem? Thanks [code] CREATE OR REPLACE PROCEDURE ADD_RENTAL_SP IS -- cursor1 CURSOR cursor_1 IS SELECT ...... rec1 VARCHAR(15); -- … | |
[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() … | |
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 … | |
Hi, it's me agin. I would like to know if it's possible to customize a tabcontrol, so that I can have the tabpages shown horizontally when alignment is set to left or right. If so, could someone give an example, or a link, of how to accomplish this? I've been … | |
Hi, Where is the mistake? It doesn't work. thanks [CODE] CREATE OR REPLACE TRIGGER A_ACCOUNT_EKLEME BEFORE INSERT ON A_SIPARIS CURSOR CURSOR_TARIH IS SELECT TARIH FROM A_ACCOUNT where TARIH = SYSDATE; FOR EACH ROW BEGIN IF CURSOR_TARIH%NOTFOUND THEN INSERT INTO A_ACCOUNT (TARIH, PRICE) VALUES (SYSDATE, '1'); END IF; END; [/CODE] | |
hai everybody, i have a problem in jsp that i should access my application only by login. in my project when i give this url in my address bar "http://localhost:8080/jsp-examples/InvMgmt/test/stockrequisition.jsp". it directly goes to the stockrequisition page. i dont know how to use the session variable. here i am sending … | |
hi i want only that part of a picture which is visible in picturebox the picture may be larger than the picturebox but i want to copy only the visible part anybody help thank u vey much | |
hi i have two forms in the first form i used form2.show and in the second form from1.show but i want to reload form1 again on button click event in form2 is it possible to reload the form as it was first appeared thank u very much | |
Hello, I'm developing a web theme. Before the last div tag(Which simply has an image), I have added a java script which is calling a remote server for an image output. the last div tag image doesn't get loaded until the javascript execution completes. Please let me know a way … | |
here is what i have to do: [url]http://www.sendspace.com/file/og252q[/url] this is what i have so far. [url]http://ayman86.pastebin.org/34381[/url] its pretty much the code in the pdf file with defined functions of quick sort, bubble sort and better bubble sort im not sure how i implement "size of array increment, and number of … | |
![]() | The following code given to me in another forum, as a "simple photo gallery" code, but I'm still experiencing problems with it. I don't know how to make the two pages interact correctly. I am assuming the [REF] etc sections are causing the problems, but I don't know what they … ![]() |
hello friends, im a php developer, am buliding a online memorial site.where the customers will register their Date of birth in a registration form .it will probe through mysql db.and i hav to send a mail for their birthday wishes in forcoming years automatically from php scripts..is it possibel.. give … | |
Hello, I have a project to make a text comparer. I've downloaded almost 90000 texts from a site, parsed them and stored the texts in a file(150MB). So now, a new text is in another file and should be compared with the others, and return a result of 20 most … | |
Man, I'm so new. I'm trying to script something for a game. so here's what I got: [code] program twars; const Color = $FFFFFFFF; FISTS = 0; DEAGLES = 1; MP5 = 2; AK74 = 3; STEYR = 4; SPAS = 5; RUGER = 6; M79 = 7; BARRETT = … | |
Hai all, I ran into a strange issue I never experienced before. Pointers are passed to function, the function allocates memory to them with calloc, and right before the return sanity checks if the pointers still != NULL. That check succeeds, but upon returning and sanity checking in the calling … | |
when working with strings, I can check if it has a value by doing something like if (s == "") but how do I accomplish this with integers? I thought maybe initializing to a dummy value like 0 or -1, but what if those values might be valid? should I … | |
I have a question about using define(). I am using this function for other constants across my script ,but am looking at developing a set of language files. For example I was thinking of having one eng_defined.php and one fr_defined.php each containing the same named constants but the output would … | |
Hi All I have a table (contactDetails) in my database (Sql express) with username,password, email, contactNo, bySMS and byEmail columns. I have 2 radiobuttons in my application smsRB and EmailRB, when the user registers he must select either smsRb or EmailRB. if smsRB is selected, a "Y" is inserted under … | |
Hi i was wondering the best way to time how long a function/program takes i cant work out how to do it. I tried fiddling with the time module yet i keep doing the wrong things. | |
Hi everyone and thanks for reading! I have a MySQL database with a table called "lessons". Inside lessons there are about six or seven fields holding information about piano lessons. The table looks like this: [CODE]vid int(10) (Primary Key) title varchar(50) date date teaser varchar(500) description varchar(2000) vurl varchar(50) extra … | |
hey guys. just wondering what it means when a function has this in it.... void add(string title, string authors[], int nAuthors); the [] next to authors. what does this mean? | |
Hi, I'm creating a web database as a bit of learning project. In short it's going to a on-line menu viewer, where people can upload (type in) their food/takeaway food menus. The problem I'm having is with the design and as each outlet can have a differing number of starters/mains/deserts … | |
[code] # This is meant to draw Start and Stop buttons and a label # The Start button should start a loop in which the label # is configured to change colour and text. # At each pass through the loop the variable self.stop is checked: # if True the … | |
I attempt to create a string variable to a setter() that is used as query property What am I missing in the procedure to implement a simple query on the database? It stops here. [code] searchList1 = java.beans.Beans.isDesignTime() ? java.util.Collections.emptyList() : searchQuery1.getResultList(); [/code] [code] @Action public Task searchSplash() { if … | |
At the time of login Redirect to one page particularly.In my site Users can view some of the pages without login. My question is If i am in x page.At that page i want to use login page.After login I want to return that x page.But its constantly navigated to … | |
Hi My question is: i made a program that counts up and up continuously in the background but i want it to print what number it is up to when you press a certain button such as ENTER. I have tried using raw_inputs() but all that happens is it keeps … | |
I have a list for exemple: a = [ 9,6,5,4,1,0,0,7,6] . By this function I want to delete all element which content zero and delete all element which content duplicate. But it doesn’t do exact what I want. [CODE]def rensa(a,b): j=0 for i in a: if a[j]<= 0: del a[j] … | |
Is there any difference between C and C++ pipes implementation? Is there any C++ library that makes using pipes easier? I ask those questions because there are many 'wrapper' classes in C++ that wraps C (like string, vector etc.) Is there anything that 'wraps' pipes? <Thanks> | |
Hi, I could use a little help if anyone would be willing. I have some vectors which I am using to store input from a text file. Now I want to be able to store user input into a vector and output it to that file so that it replaces … | |
i need to have a hyperlink on the page having the graph code which, when clicked takes me to another page.. what should i do..please help.... thanks in advance.. :) | |
iam having some elements in xmlfile , and i want to fill tat element's values in aspx file's dropdown. how to do. Ex: iam havin <font>Times New Roman</font> in xmlfile. now i should fill "timesNewRoman" in a dropdownlist . how to do. | |
I'm trying to carry out the following delete statements [CODE]DELETE FROM images AS i WHERE i.image_id = 803 AND i.plant_num = 2277 LIMIT 1 DELETE FROM images AS i WHERE i.image_id = 804 AND i.plant_num = 2277 LIMIT 1 DELETE FROM images AS i WHERE i.image_id = 805 AND i.plant_num … | |
Hello, ive recently been making a program, and am trying to do some file i/o so that it can log information. Ive been trying to do it via a class. Well, i ran into a problem just clearing the char arrays (for my purposes they need to be cleared to … |
The End.