Hi I coded a program where you can reverse the contents of an array. But I used two arrays to complete this process, I want to make it work by using only one array. Here is my code so far, it works btw, just need to make it work by using only one array: #include<iostream> using namespace std; int main() { int a[10], b[10],i,j; cout << "Enter 10 values for array: "; for(i=0;i<10;i++) { cin >> a[i]; } for(i=0,j=9;i<10;i++,j--) { b[j] = a[i]; } cout << "\n\nOrginial Array is: "; for(i=0;i<10;i++) { cout << a[i] << ", "; } cout …

Member Avatar
Member Avatar
+0 forum 3

Hello, I got terrible need :) I have this: $profile_data = file_get_contents("http://tyxo.bg/d/148025/daily"); $sep1 = explode('<table id="general-table">', $profile_data); $set2 = explode("</table>", $sep1[1]); echo $set2[0]; which output this: http://i.imgur.com/2THUUve.png I need to export only this values without anything else: http://i.imgur.com/IQG708Q.png You can test by your self the code i give - he outputs the html which is needed to parse from preg_replace or something else maybe? I dont know how to proceed, this is not my best part. I want to get only values in red (only this - without anything else) And i want to separate by comma everything value. I …

Member Avatar
Member Avatar
+0 forum 6

hello everybody.. I have a table which contains all the info about a file i.e its id, name, size, createddt and modifieddt. now i need to copy all the files(file content) to a local drive. Gotta do this in c# console application. Can anybody help me?

Member Avatar
Member Avatar
+0 forum 3

How can I make it so when I e-mail for e.g. [email]news@example.com[/email] text/information of the e-mail is written into a mysql table? It would extract the contents of a new email and write them into MySQL table. This table manages news articles on the website, so in the MySQL columns: "content" is the body of the message "caption" is the title of the news article "snippet" is the title that will appear in a "Latest News" block "uri" "date" is the date the article is posted. " $subject = caption = uri $message = content = snippet(first two lines of …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am NOW doing a short application that installs a program, without the program being embedded into the application. I have found myself at a loss for code, now that I cannont figure out how I can COPY the entire contents of a folder to a new folder, WITHOUT 'deleting' the contents of the original folder. So far, I have used variables and environmentpaths to create the folder connection, however, I still cnnot do any thing without the code. Anybody out there have any ideas?

Member Avatar
Member Avatar
+0 forum 9

I want to know how to read a file in Java and then store the file contents into a String object...like String[] content= file contents?? here's the code of reading a file and i want the contents to be stored in a string variable... [CODE]public static void main(String[] args) throws IOException{ File file = new File("C:/ciphertext.txt"); int ch; StringBuffer strContent = new StringBuffer(""); FileInputStream fin = null; String[] a = null; // I want to store the contens of file into this String a....?? try { fin = new FileInputStream(file); while ((ch = fin.read()) != -1) strContent.append((char) ch); fin.close(); } …

Member Avatar
Member Avatar
+0 forum 3

Hey everybody. I was wondering if this is possible, and if it is, why it isn't working. When you right-click an application (.app), there is an option for "Show Package Contents." If you select that option, it opens up a "Contents" folder. Inside that folder, there are multiple folders, but one in particular, the "MacOS" folder, seems to be common to all applications. Inside this folder is usually a single Unix Executable File. If you run that, the application is basically run from the terminal, or at least that is what it seems like to me. Now, the question part: …

Member Avatar
Member Avatar
+0 forum 1

Hi, If I have a home.php file and I want to store it into a $_SESSION like $_SESSION['home'] = home.php - how do I do that? I tried using include but it doesn't work... I have to have it in a session because it fits into a bigger portion of code elsewhere, is it possible to get the home.php contents and put them in the session? Thanks, Ashton.

Member Avatar
Member Avatar
+0 forum 2

The End.