- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 1
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Can someone please tell me how to send data from my program to excel. I have a loop which is iteratively printing values to the console: [code=c]printf("16 Bit:\n\n"); for (n=0;n<numberOfValues;n++){ printf("%.4x\n",rand16()); }[/code] but i need to send them to excel for analysis!! Please help |
|
Hello all, Im getting the following error when i try to create a simple helloWorld C++ project in eclipse. Please note that i have MinGW, msys and my environment variables set up right. Im using Windows 7 and the 32bit Eclipse Juno. Error: Error 127 occurred while running autoreconf HelloWorld … |
|
Im writing a piece of code which allows the user to search by HTML element on a page..The user selects what element they want to search for, and then the code traverses each element highlighting them one by one..The code works fine if the user searches for one element from … |
|
Hello all..Im trying to integrate CKEditor into my drupal site..The problem is i cant seem to get the form plugin on the toolbar..Can someone tell me how to enable it? I thought it would be enabled by default? Thanks |
|
Hello All, Assume i have the following code: [code] // This code is defined in one file : editor.addMenuItem = function( name, definition ) { if ( groupsOrder[ definition.group ] ) menuItems[ name ] = new CKEDITOR.menuItem( this, name, definition ); }; // This code is defined in another file: … |
|
Hello all, Can someone explain the attached code please..And in particular, how the program execution flows between the different scope blocks.. Thanks [code] <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Recursion</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript"> //<![CDATA[ function runRecursion() { var addNumbers = function sumNumbers(numArray,indexVal,resultArray) { // recursion test if (indexVal … |
|
Hi all, Im getting the folllowing error for the attached applet code when i try to view it through windows explorer: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPropertyAccess(Unknown Source) at java.lang.System.getProperty(Unknown Source) at AppletTest.init(AppletTest.java:26) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) … |
|
Hi all, Im getting the following error when i try running the attached applet: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:8080 connect,resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source) at sun.net.[url]www.http.HttpClient.openServer(Unknown[/url] Source) at sun.net.www.http.HttpClient.<init>(Unknown Source) at sun.net.[url]www.http.HttpClient.New(Unknown[/url] Source) at sun.net.[url]www.http.HttpClient.New(Unknown[/url] Source) at sun.net.[url]www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown[/url] Source) … |
|
Hi guys, For some reason, when i click on the Java forum i get logged out but when i click back on say C++ it says im logged back in..But when i try to start a thread on the C++ forum it asks me to log in?!?!When i try to … |
|
Hi all, Im trying to run a simple applet which prints a message to the screen..The applet runs fine on applet viewer but when i try to view it in the URL bar i get the following error: load: class Test.TestApplet.class not found. java.lang.ClassNotFoundException: Test.TestApplet.class at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source) at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown … |
|
Hi all, Im building a java application in eclipse and i want to add an excel file for data storage/retrieval..Can someone tell me how i include the file in the class build path? Thanks |
|
Hi, Im getting the followin error in one project class in my application: The project was not built since its build path is incomplete. Cannot find the class file for DataControl. Fix the build path then try building this project DataControl is a class in another project in the same … |
|
Im trying to run an RMI app from eclipse but im getting an error saying it has already been started by another application. I ran an application yesterday from the command line but i closed all windows down when finished..is there a special command to shut down the registry on … |
|
Hi, The following code works fine: [code=c] // main.cpp #include "Dog.h" void details(Dog x){ cout << x.height << endl;} int main() { int h,w; vector<Dog> vect; cout << "Please enter 3 dogs measurements: "<< endl; for(int i=0; i<3; i++){ cout <<"\nInput height:" <<endl ; cin>> h; cout <<"Input weight:" <<endl … |
|
Say i want a friend function to have access to two classes which are derived from the same base..I declare the friend function prototye in both classes, but where do i code the actual definition?? is the code below right?? (mixBreed() is the friend function).. [code=c] // Dog.h #include "Animal.h" … |
|
Hi, Im trying to write some code which adds the combined height and weight of two dogs, returns the result and then displays it..The problem is, the result returned is wrong (i think the operation is just adding two memory addresses)..The =operator code is returning rubbish as well, i think … |
|
Hi, Suppose i have an animal base class and cat derived class..I create animal.cpp, animal.h, cat.cpp, and cat.h files...Assuming i have included Animal.h in my Cat files, what files do i have to include in the main.cpp file? is it just: 1) #include "Animal.h" or do i also include: 2) … |
|
Hi guys, Just wondering how i would access a particular variable from an object in an array?? Consider the code: [code=c]void Animal::arrayDisplay(){ Animal ani; Animal* arry[3]; string n,c; int a; for(int i = 0; i<3; ++i){ cout <<"Input name:" <<endl ; cin>> n; cout <<"Input color:" <<endl ; cin>> c; … |
|
Hi, Im getin the following error when i try the code below..Anyone tell me whats wrong?? (name is defined in animal class).. 52 C:\Dev-Cpp\oopAssign1.cpp no match for 'operator>>' in 'std::cin >> name' [code=c++] void Animal::arrayDisplay(){ string name[3]; cout <<"Input 3 names:" << endl; for(int i=0; i<3; ++i){ cin >> name; … |
|
Hi, Ive been given an assignment in college to implement a dog class and to include functionality such as eating,sleeping,barking etc..im not really familiar with writing code to describe living things so just wondering could anyone give me a few suggestions as to how to go about doing this? I … |
|
Hi, Can someone explain to me what is going on in the code below as im new to pointers and not quite sure what is going on..In particular, an explanation of the first couple of iterations in the for loops would be helpfull.. Thanks [code=c] #include<iostream> 5 using namespace std; … |
|
ive tried enabling telnet on windows 7 by doing the following: 1.Open control panel. 2.Then go into programs. 3.Then in programs and features there should be a part that says ‘turn windows features on or off ‘ . 4.Click ‘turn windows features on or off ‘ then on the list … |
|
Hi people, I want to have an if statement in my servlet that if no results are found from database i print out an error to a html page. Im not to sure how to do this though..See my attempt in code below, can someone tell me what im doing … |
|
Hi everyone, i want to output the results of the select statement in the code below, to a html table as opposed to just a list of out.println statemants..Can someone tell me how to go about doing this please?? Thanks oggiemc [code=java] import java.io.*; import java.lang.*; import java.sql.*; public void … |
|
Hi people, Im trying to handle an exception in my servlet by res.sendRedirect to another page..but it is not redirecting to the page i want, instead its going to a HTTP Staus 500 error page detailing the full stack trace..can someone tell me what might be wrong here, ive attached … |
|
Hi everyone, Ive been asked to do an assignment to test the randomness of a linear congruential generator..We've been given the code implemented in c..the problem is i dont really see how this code relates to the theoretical LCG equation i.e X[n+1] = (aX[n] + c) mod m..So i would … |
|
Hello people, Im getting an "Exception occured ---java.lang.NullPointerException" error when i try running the code below: [code=Java]public void Register(String Username, String Password, String Surname, String Firstname, String Email, String Phone) { String a = Username; String b = Password; String c = Surname; String d = Firstname; String k = … |
|
Hi Everybody, Im having a bit of a problem with an assignment..Im trying to write a JDBC servlet which checks the value of a name in the database against the value inputed in a form..USER and PASS are the values inputted to the by user into the form.. The code … |
|
Can someone please tell me what im doing wrong in this program..im gettin a compiler error saying: C:\Dev-Cpp\projects\proto.cpp In function `int main(int, char**)': 46 C:\Dev-Cpp\projects\proto.cpp a function-definition is not allowed here before '{' token 46 C:\Dev-Cpp\projects\proto.cpp expected `,' or `;' before '{' token C:\Dev-Cpp\projects\Makefile.win [Build Error] [proto.o] Error 1 The … |