1,605 Topics
![]() | |
I am trying to write a simple php program that will up load files smaller then 200000000 bytes to my website, but I keep getting an error when I try to run it the initial HTML code is: <html> <body> <form action="upload.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" … | |
So I have figured out everything with this program, except one thing which is escaping me. I have created a General Tree(or sometimes called left most tree) where the node points to its left most child, and the child points to its right sibling and also its leftmost child. Creating … | |
When I test my stack with an int when I do pop all it seems to return is the address of the thing that I want and not the value, which makes sense since I return something by reference.. but I just cant seem to figure out what to do … | |
Hi folks I have a server written in C++ over ACE infrastructure. I'm using the ACE logging tools and here is how I create it in the main thread: std::ofstream* output = new std::ofstream (name); ACE_LOG_MSG->msg_ostream (output, 0); ACE_LOG_MSG->set_flags (ACE_Log_Msg::OSTREAM); I'm working with a multithreaded system and logging is working … | |
Okay so I have a program that tests for collisions using a complicated and 80% accurate method, but I want 100% accuracy. Like someone posted earlier about shapes colliding into each other, I realized that there will be cases where my method wont work. However, I've looked into a calculus … | |
Hi all, I have a disk file define as [CODE]TCHAR szTempFile[MAX_PATH];[/CODE] What I want to do is, read that file into memory stream. To a buffer. How can I do it. | |
Hi, I'm tring to write a script that as to be executed by root on linux... This script execute other bash script normally like root, the problem was that I have to log what my script do. I choose the logging library... Perhaps I have to write the log in … | |
I'm having issues with my 3d programs mostly, especially games. a few days ago, they suddenly started getting about 1-2 fps, while reporting that they get 12-15 fps, which is considerably lower than what they had been getting. I haven't installed anything for some time and assume that something is … | |
Okay, these processes have always ran at normal priority, but now they have jumped up for some reason. I can't change the priority manually w/ task manager b/c windows says that they're critical system processes. I need to return them to normal priority b/c they seem to be robbing my … | |
[B]error follows:[/B] [code]The email was sent. Warning: fopen(C://Program Files/xampp/htdocs/samplemuthu) [function.fopen]: failed to open stream: Permission denied in C:\Program Files\xampp\htdocs\samplemuthu\mail2.php on line 58 Warning: fread(): supplied argument is not a valid stream resource in C:\Program Files\xampp\htdocs\samplemuthu\mail2.php on line 59 Warning: fclose(): supplied argument is not a valid stream resource in C:\Program … | |
I am trying to get a script to work on a new server. The script was written by someone else, but it doesn't seem to work after I changed to another server. The script involves the submitting of articles, and uploading of a photo to each article written and submitted. … | |
The server should be called as follows: # ./bashwebserver.sh port [root] Where port is a mandatory argument to specify the port number the server should listen on, and root is an optional argument to specify the web server's root directory. P.S: ● If the root directory is not specified, use … | |
I don't want my programs to access the file system at all means no file creation, no deletion not even the a single stream for accessing files. how can i do that | |
I have a debug assertion failed problem with akrip code. That code is downloadable from [url]http://akrip.sourceforge.net/simple.c[/url] I have add a new code to function RipAudio(...) where i want to add new folder and name the file to it. [code] void RipAudio( HCDROM hCD, DWORD dwStart, DWORD dwLen, int song ) … | |
[CODE=c] #include <stdio.h> #define M 21 #define N 2 #define INPUTFILE "C:\\Documents and Settings\\Duy Anh Bui\\My Documents\\Uni Stuff\\Eng Computing\\Sourcecodes\\Exercise 2\\in.dat" #define ARRAYFILE "C:\\Documents and Settings\\Duy Anh Bui\\My Documents\\Uni Stuff\\Eng Computing\\Sourcecodes\\Exercise 2\\array.dat" float Quadratic(float,float,float); //Quadratic Function Prototype int main () // Start main() { float a[M][N] = {0}; // Array a … | |
i got my code to finally compile but, now im getting 5 linker errors that i have no idea why im throwing them the errors are: [code=cpp] football.obj : error LNK2019: unresolved external symbol "public: void __thiscall Football::SearchMatches(struct Match * * const,int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int)" (?SearchMatches@Football@@QAEXQAPAUMatch@@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function … | |
well my struct is fix but i have new errors i hve never seen before : here are the errors [code=cpp] football.cpp(194) : error C2664: 'void Football::SearchMatches(Match *,int,std::string)' : cannot convert parameter 1 from 'Match *[2000]' to 'Match *' football.cpp(205) : error C2664: 'void Football::SearchMatches(Match *,int,std::string,int)' : cannot convert parameter … | |
I have written this code in Jsp file . [code=JSP]<% Connection con=null; Statement st=null; PreparedStatement ps; String nm=request.getParameter("tnm"); String loc=request.getParameter("tlc"); try { Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://localhost:3306/rahul","root","root"); st=con.createStatement(); try { ps=con.prepareStatement("insert into dept(deptname,location) values(?,?)"); ps.setString(1,nm); ps.setString(2,loc); ps.executeUpdate(); out.println("Value inserted "); } catch(SQLException e) { out.println("sql is not executed"); } } catch(Exception ex) { … | |
ok i have wrote this program and been trying to break into a class called football , but i keep getting an: error error C2228: left of '.Season' must have class/struct/union i have tried moving my stuct around in and out of the class but im not sure how to … | |
ok after somet time im now ready into breaking my code apart into 4 class Sports,NBA,NFL,MLB, here is the original code [code] #include <iostream> #include <fstream> #include <string> using namespace std; // definition of strct that will hold all information of match struct Match { string Season; string Team1; string … | |
Hi. I am using WAMP5 Version 1.7.2, which includes : 1. PHP Version 5.X 2. MySQL Version 5.X 3. Apache Version 2.X 4. Php-MyAdmin But it does not recognize DB.php file, I dont why...I get the following error [B] failed to open stream: No such file or directory in F:\wamp\www\XXX[/B] … | |
Here's my HijackThis log. There was an error during startup that said a dll couldn't run and the bolded one was the same dll. Comments? Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 2:04:13 PM, on 5/1/2008 Platform: Windows XP SP2 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16640) Boot … | |
Hi, I need help with a Golf Stats Program I am trying to complete. It is a dat file. My averaging functions are not working. Can someone suggest what I can do to correct the problems with both averaging functions? main [code=cplusplus] #include <iostream> using std::cerr; using std::cout; using std::cin; … | |
Hey guys, I have been working on this program for my entire semester. I got it down to do what I want I think... except when I compile it, I get no errors or warnings (using Dev) and when I execute it runs through half of it and it stops … | |
I have to make this assignment: Visit this link for the JPG of the assignment so you know what exactly I'm supposed to do.. [URL="http://i25.tinypic.com/21owwg5.jpg"]http://i25.tinypic.com/21owwg5.jpg[/URL] I've done much of the program but I keep getting an unhandled exception when i run it. Here's the code: [code=c#] using System; using System.Collections.Generic; … | |
I am trying to get the ST.java (Server Thread) to communicate with the CT.java (Client Thread), i am stuck at this point, i dont know rather it is something to do with the port # and host, or if it has anything to do with the Server thread, please reply … | |
I have this data, but when i sort it different from what i want. I want to sort in descending order like this 2 30 1 20 3 15 [U][B]jest.txt[/B][/U] 1 20 2 30 3 15 [U][B]after compile[/B][/U] 1 15 30 15 15 15 [code=C++] #include <fstream> #include <string> #include … | |
Hi there and thank you in advance for your help in advance. I am having problems with my page replacement program with taking the integers from an input file and putting them into an array. I need it in format [Next page in] | | | | (current pages between … | |
How can i read in data in different functions without losing the stream's place in the file. i.e function a and function b both open a data stream to read in first and last names from a file. however function b reads in the first name as well rather than … | |
Ok so I am looking to read in a bunch of different types of data for a program, but I am having trouble doing so in a very robust way. For strings it's easy. [CODE=C++] string temp; getline(cin, temp); [/CODE] Simple and quite robust. For the rest I am having … | |
I get this error: Warning: require(D:\Apache\htdocs\public_html/lib/stdlib.php) [function.require]: failed to open stream: No such file or directory in /home/homebase/public_html/config.php on line 143 Warning: require(D:\Apache\htdocs\public_html/lib/stdlib.php) [function.require]: failed to open stream: No such file or directory in /home/homebase/public_html/config.php on line 143 Fatal error: require() [function.require]: Failed opening required 'D:\Apache\htdocs\public_html/lib/stdlib.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/homebase/public_html/config.php on … ![]() | |
I have been reading older C programs to try and understand how to convert them to C++. One particular line of code still confuses me however. fscanf(fin, "%d", &n) I understand that fscanf reads from the stream (the file pointed to by fin), it reads the data which will be … | |
Hello I get 'segmentation fault' at seemingly random places when reading from a file = running getline(*stream, stringLine). Running Rational Puify I get the info: Invalid Pointer Read: Reading 655816 bytes from 0xfefa846c between the heap and the stack (342896 bytes at 0xfefac490 illegal). I guess that the stream pointer … | |
The program as it is generates: [ICODE]>Parent1 >Parent2 >In Child >Parent3 Successfull...[/ICODE] If I remove the comment from line 31 - just below "//THE PROBLEM:" so the "gets(buff);" is executed it gives: [ICODE]>Parent1 >Parent2[/ICODE] and... waits (both parent and child processes running - both waiting). I would like to be … | |
When I start my computer my desk top icon's won't load. I have run Hijacthis and here is what popped up. Also, I've included my startup list. Thank you for any and all of anyone's help! Logfile of HijackThis v1.99.1 Scan saved at 12:27:51 PM, on 9/6/2007 Platform: Windows XP … | |
[CODE=C]int test[2]; pipe(test); FILE *to, *from; if ((to = fdopen(test[1], "w")) == NULL) return 1; //error: could not create stream if ((from = fdopen(test[0], "r")) == NULL) return 1; //error: could not create stream fputs("test text", to); char testBuff[5]; fgets(testBuff, 5, from); puts(testBuff); //This should display 'test' in console - … | |
I'm reading a text file using a stream read and my code goes like this [ICODE] FileStream file = new FileStream("c:/data/theData.txt", FileMode.Open, FileAccess.Read); StreamReader streamReader = new StreamReader(file); // read the content of the first line of the data text file String line = streamReader.ReadLine(); while (line != "") { … | |
My friend has been expierencing some small problems on his computer, you guys have been extermely helpful in the past and if someone could help me claen up this HJT log that would be great! Thank you in advance! C:\Program Files\STOPzilla!\STOPzilla.exe C:\WINDOWS\system32\cidaemon.exe C:\Program Files\AIM6\aim6.exe C:\Program Files\AIM6\aolsoftware.exe C:\Documents and Settings\Owner\Desktop\HijackThis.exe R0 … | |
I am having problems with my linked queue adt. I don't get any error messages, but it just isn't doing anything in the menu driven client code. It's just to test the queue to make sure it works correctly. The most problem I'm having is with my print function. If … | |
I have a Sony desktop VGC-M1 it's about 18 months old. I don't use it very often, just for university work. I turned it on to intall a new printer. I have no idea why but it went to system restore. So I thought I'd just restore it, there's nothing … | |
Hi, I want to be able to use std stream objects to manipulate files, but some of the files are too big. I want to be able to do the folowing: >int64_t fileSize; >strm.seekg(0,ios::end); >fileSize = static_cast<int64_t>(strm.tellg()); >cout<<"File size is "<<fileSize; This code will output -1 if the size of … | |
I have (in main()) something like: [CODE=C]int toChild[2], fromChild[2]; pid_t pid; //Creating pipes: if(pipe(toChild) != 0){ return 1; } if(pipe(fromChild) != 0){ return 1; } //Forking: if((pid = fork()) == -1) return 1; if(pid == 0) {/* CHILD */ close(toChild[1]); close(fromChild[0]); //create streams: (they are not used in this example) … | |
if i want to read some text data from an input file stream, 01. what hapence if there is no data 02. or if the input file contains errors 03. or if the out put file contains error because of lack of storage space on disk. | |
The assignment is to, using the given header file, write an implementation file, a menu-driven test file, and a car wash simulator... [B][U]Please see attachment for complete instructions[/U][/B] This is what I have so far, I am having trouble with my print function... I am new to Queues and not … | |
why cant it work properly??? [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ ofstream out;//create output stream int acc_num[10]; for(int x=0;x<10;x++) acc_num[x] = rand()%10; //generate account number char acc_file[600]; for(int x=0;x<10;x++) acc_file[x] = acc_num[x] + '0'; out.open(acc_file, ios::out);//create & open output file out << "PACKAGE ID: "; … | |
[code=c] #include <stdio.h> #include<string.h> main() { FILE * myfileptr; // a pointer declared to the file stream. char sc; // a character which will be input from the file. // main code... myfileptr=fopen("words","r"); //open the file hopefully while((sc=getc(myfileptr))!=EOF) //get a char { if(sc)printf("%c",sc); //dump it to screen } printf("EOF\n"); } … | |
Problem statement: The program has to take input for DFA and for h() function that is for homomorphism. I am able to write the program in C++ only for DFA. I am unable to include the h() function. Moreover, my DFA program giving me an error. [code=cplusplus] #include <iostream> #include … | |
Please help me how to write into XML file using VC++ 6.0 this is example code where i am not able to write the data into XML File this is ScanComputer.cpp where i am trying to try into XML file [code=c++]void CScanComputer::saveParameters(const char *filename) { ParamIO outXml;//ParamIO.h is pasted below … | |
hi In my mail attachment i am able to recieve the attachment but the file size is 0kb. it is showing the below warnings please do tell the error in my code [QUOTE] home/wesite/public_html/profiles/resumes/153/ Warning: fopen(home/website/public_html/simple.txt) [function.fopen]: failed to open stream: No such file or directory in /home/website/public_html/mail_attachment.php on line … | |
i m working on a small application its main function is to create a album and then add photos in the album. i m using tree view for creating album and photos i m using tree root as album and nodes as photos. i have to also show photos when … |
The End.