I am facing a problem while loading getfptex (got it from CTAN) batch file. When I'm extracting this batch file I'm getting series of statements saying "No Such directory".
I have a c++ project I am working on. I am a little stumped at the moment. I need a little help. I need to implement code from the .h file into the main.cpp file and I am not sure how to do that.
For example code code from main.cpp:
switch (choice){
case 1: // open an account
{
cout << "Please enter the opening balence: $ ";
cin >> openBal;
cout << endl;
cout << "Please enter the account number: ";
cin >> accountNum;
cout << endl;
break;
}
case 2:// check an account
{
cout << "Please enter the account number: ";
cin >> accountNum;
cout << endl;
break;
}
and code from the .h file:
void display(ostream& out) const;
// displays every item in this list through out
bool retrieve(elemType& item) const;
// retrieves item from this list
// returns true if item is present in this list and
// element in this list is copied to item
// false otherwise
// transformers
void insert(const elemType& item);
// inserts item into this list
// preconditions: list is not full and
// item not present in this list
// postcondition: item is in this list
In the .h file you would need to use the void insert under transformer in the main.cpp under case 1. How would you do that? Any help is apprecaited. I hope I didn't confuse anyone on what I am needing to know how to do. Thanks
I have a ASP.NET solution in Visual Studio 2008 and I added a file identical to http://plugins.jquery.com/files/jquery.cookie.js.txt named jquery.cookie.js in a subfolder of my project containing other javascript files and Visual Studio is treating it as a C# file, giving me errors like CS1012: Too many characters in character literal and Semicolon after method or accesssor block is not valid.
Why?
I need to remove a file from the /data/data folder my app added. I am looking at the file with the DDMS in Eclipse.
If DDMS can't , how would I delete it otherwise?
Hello
In my program I have a text file that I read from and write to. However, I would like to display the contents of the text file in an alligned and sorted manner. The contents currently read-
name, score
name, score
Would I have to convert this information into lists in order to be able to do this? If so, how do I go about doing this?
Thankyou
In my last question i asked how to best send a string from one view controller to another, both which were on a navigation stack:
http://stackoverflow.com/questions/2898860/pass-string-from-tableviewcontroller-to-viewcontroller-in-navigation-stack
However I just realised I can either pass the path to the file in the app's document's folder as the first (the table view) has already accessed the data in the file should I pass viewcontroller the data to the pushed VC?
Is there a way to get the values of various properties of a (both .NET and non-.NET) DLL via C#?
I'd like to read the 'Product name' field in particular.
Hi All,
I need to create a larger file, which would be filled by strings and numbers of a certain length.
Eg File content would be like :
Dougan | 15 | Sapient
Patric | 25 | Patni.
IGHIGH | 10 | IHIUDWHKJDBHKJ
I need an outline as to how I can approach this in either c or c++..
Kindly let me know if more information is needed.
How do I specify the path to a file in a web application? I have a folder named 'templates' under WEB-INF, I've been told that under GlassFish v3 the path should look like this:
./WebContent/WEB-INF/templates
but this way I'm getting a file not found exception. What do I have to change in order to make it work?
hi all
I have a file having some number of records and I want to copy only first and last 10 records into another file.
Can anybody tell how to write jcl, using sort, icetool, ect.
Hi,
We want to create an application that downloads a mp3 file and then starts to play it.
Has anyone an idea of how to download the mp3 file from an url and then store it, either on the iphone or in the application (depending on what is possible).
I want to read following file in C++.
000001011100110
100000010101100
001001001001100
110110000000011
000000010110011
011000110101110
111010011011110
011001010010000
I know already how many rows and columns is there in the file. I want to read each integer and store it in a 2-D matrix of ints.
Each integers here means 0 is one entry and 1 is another entry. So in this example above there are 15 0's and 1s.
hi,
i have to create window service which read the xml file and and take the node's value to connect the sql server and create the log file i have already created window application for that but i don't know how to create win services.
I'm not really understanding the interaction/differences between settings and config files. If I add an entry to the settings file, it gets added to the app.config as well. Does this mean that changing the value in the app.config will update the settings? If not, how do I update settings in a live application? What's the general purpose of using a settings file instead of putting things directly in app.config?
I have a text file test.txt with the following content:
text1
text2
And I want to assign the content of the file to a UNIX variable but when I do this:
testvar=$(cat test.txt)
echo $testvar the reult is:
text1 text2
instead of
text1
text2
Can someone suggest me a solution for this?
hi guys,
Is there any methods for downloading multiple files at the same time? That is, after select multiple files, click the download button, and choose the destination directory, the files selected will be downloaded at the same time.
i googled it and not find any solutions, can anybody know? im using struts1 and spring2.
Hey friends,
I want that my flash file on my website, can't be downloaded by anyone.
Is there any way that i can do that?
As Firefox and many browser has many add-ones which easily detect out flash content and after they can download the flash file?
I have a problem while using the file_get_contents function. I am using it to get a response from a different web server, but it's not returning anything (shown as empty string using var_dump). Also, the problem is only while calling this specific server, because I got result when I used Google's address; and it's working fine in my local machine.
I've tried cUrl too - but same result.
I have the following code:
$location .= 'red=no&'.session_name() . "=". session_id();
$content = file_get_contents($location);
echo $content;
If I run it, noting is displayed in my browser. However, if I modify it in the following way:
$location .= 'red=no';
$content = file_get_contents($location);
echo $content;
everything works fine (I see the content in my browser).
What is also strange, if I display the value of the $location variable from the first example (url) and manually paste it in the address line of my browser, I do see the content. So, my browser is able to use this URL and file_get_contents not.
Does anybody know how it can be explained?
Is there an ability to import fixed width file to oracle?
Preferably through .net(c#) for catching errors during import and showing them to user.
P.S. File has 5 types of rows. For example 1 row has 5 columns, 2-nd has 50 columns.
I have a PHP script that I don't want anyone to be able to run through their browser.
It sends emails and is called via curl by my server's cron, yet needs to be in the public www directory. What permissions or owner do I need to set the file to to allow only my server's curl to execute (or do I mean read) the file?
I'm on centos.
Thanks!