- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 3
- Upvoting Members
- 6
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
49 Posted Topics
Hi, I would like to extract the return (currently false) value from the following XML: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:isPumpOnResponse xmlns:ns="http://webservice.whatever"> <ns:return>false</ns:return> </ns:isPumpOnResponse> </soapenv:Body> </soapenv:Envelope> Is there a way of getting it out of the SOAPMessage object? SOAPMessage soapResponse = soapConnection.call(createSOAPRequest(webMethodName), url); Thanks.
Hi, I'm trying to make a label visible by clicking on a button. The following code will make the label visible, but will disappear in less than a second. I'm assuming its because the form is getting submitted in the java script, so the page is getting refreshed? Is there …
Hi all, I have a html page with html form input boxes in it. What I want to do is validate these input boxes with javascript. I have a span element(error message) next to the text boxes which will only be visible when the user submits the form without entering …
Hi all, I want to make scroll bars appear when I resize the window(for the entire web page). At the moment the image in the header is just cut off at both ends, with no scroll bars. What do I need to do to the following code to make this …
Hi all, My computer seems to have a problem with its peripherals (no display on the monitor, no red light on the mouse and lights on the keyboard won't light up). The computer does power up (blue led lights, fans, motherboard lights) and I can open and close the DVD …
Hi all, Does anyone know of any good tutorial that explains how to set up a website on apache web server. I need it to be in Linux (Ubuntu). Or if anyone can explain to me how to do it that would be great to :) all I need to …
Hi all, Is there a way to make thread pools in POSIX pthreads? (using c) I could only find implementations for java and c++, but I need it to be in c. Thanks.
Hi all, I'm making a client server program in Linux. I use fork() to create a child process of the server to handle a new client. When a client disconnects it should kill the child process. At the moment the program is able to kill the fist client(server) that connects, …
I can't get strcmp() to return 0 with the following code. please help.. [CODE] char quit[10] = "q"; scanf(buf, ""); fgets (buf, 100,stdin); fflush(stdin); if(strcmp(quit, buf) == 0) { printf("Quiting program\n"); ...[/CODE] when I type 'q' into the command line it should enter that if statement, but it doesn't.
Hi all, I have a multithreaded program, one of the threads needs to listen for user input. I was wondering is there a way of checking for user input every few seconds or milliseconds, without having the thread hang on a fgets() function? Current I have: [CODE] while(keep_running == TRUE) …
Hi all, I need to convert a char array to an int. But the char array has regular characters in them('A', 'B', 'C'...) and numbers. how would I omit those characters and extract the number, then store it as an int. any help would be great thanks.
Hi all, Why do I get a fatal error when I try and free this memory? [CODE] char *timeBegin = (char *)malloc(sizeof(char) * 21); timeBegin = time_stamp(); sleep(1); char * test; test = calc_time_difference(timeBegin); printf("%s", test); free(timeBegin);[/CODE] time_stamp() returns a static char array. Would this be the cause?
Hi all, why is the following code printing the wrong result? [CODE]/* Returns the current time. */ char *time_stamp(){ char *str = (char *)malloc(sizeof(char) * 23); int len; struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm=localtime(&tv.tv_sec); printf("\n\n\n%04d-%02d-%02d %d:%02d:%02d:%03d\n\n\n", tm->tm_year, tm->tm_mon, tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec/1000); sprintf(str, …
Hi all, I'm making a miltithreaded program that uses the pthreads library. One of the threads monitors the users input. my problem is when I enter a close command I get the following error: 9 [sig]...: *** fatal error - called with threadlist_ix -1 make: *** [run] Hangup I know …
Hi all, I need to get a random number from the following: [CODE]#define RAND(min,max) ((min)+(int)((double)(max-min+1)*rand()/(RAND_MAX+1.0)))[/CODE] but when I print it out it just prints the value of min. [CODE]printf("%d", RAND(10000000,99999999));[/CODE] please help! thanks in advance.
Hi all, I have a problem with one of my computer's network connection. The problem: [LIST] [*]cannot view any websites ("Problem loading page" error messages in firefox,"The connection has timed out"). [*]cannot ping any web sites [*]cannot ping localhost [*]renewing or repairing the ip address does nothing [/LIST] fyi: Im …
Hi all, Is there any way to get the location of the CLASSPATH environment variable within a pragram. I need to get the location of rt.jar so that I can dynamically load the classes within that jar file using URLClassLoader. thanks in advance.
I could be because you have 2 main() methods in the same project. try making another .cpp file, then call your main() in g.cpp and f.cpp something else ( like main2()). Then call g.main from the new .cpp file. hope thats makes sense.
Hi all, why do I get an error with this line of code? [CODE]string test("a" + "b" + "c");[/CODE] error C2110: '+' : cannot add two pointers I have included the string class. thanks.
I'm not sure, but from what I've read .Contains only takes a Control object as its parameter. [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.control.contains.aspx"]http://msdn.microsoft.com/en-us/library/system.windows.forms.control.contains.aspx[/URL] I'm not very familiar with Visual c++ Forms but if TextBox.Text returns a string you could create a string object, then do a string.find("."). [URL="http://www.cplusplus.com/reference/string/string/find/"]http://www.cplusplus.com/reference/string/string/find/[/URL]
Hi all, Does anyone know where I can get an ASUS M50VM series laptop battery? I know they have discontinued making the laptop. So can I use any M50 (SA, SR, SV) series battery? or do they make batteries specific to the laptop? I found one at: [URL="http://www.laptop-batteries.com.au/computer-battery/asus-m50vm.htm"]http://www.laptop-batteries.com.au/computer-battery/asus-m50vm.htm[/URL] but I've …
[QUOTE=mybluehair;1260534]I need to create a new txt file using ofstream, but I need to use a string to name the file. For example: [CODE] string string1 = "testfile.txt"; ofstream myfile; myfile.open (string1);[/CODE] but when I try, it says I can do this because string is not a valid variable type …
Hi i am using vb to make a hospital system which works with a access database i am having an issue with the updatign function to the database this time round instead of hard codding the connection i used the connection/data source wizard in microsoft visual studio 2008 and there …
Hi all, Has anyone used PFDBox before? I'm having trouble with makeing a pdf with mulitple lines: [CODE]contentStream.drawString( patient.toString() );[/CODE] patient.toString() has newline characters in it(\n) and drawString dosn't recognize them.
Hey all, can anyone tell me what this error usually means: 1>Client.obj : error LNK2001: unresolved external symbol "public: bool __thiscall StudentCollection::addStudent(class Student)" (?addStudent@StudentCollection@@QAE_NVStudent@@@Z) 1>D:\Sem1_2010\INB371_DSA\Assignments\Assignment2\Assignment2\Debug\Assignment2.exe : fatal error LNK1120: 1 unresolved externals. [CODE] StudentCollection *studentCollection; Student *studentUser; ..... student = new Student(studentNumber, firstName, lastName, phoneNumber, address); studentCollection->addStudent(*student);[/CODE] [CODE]bool addStudent(Student student){ …
Hi all, i am trying to get an address from a user but when the program gets to the street i have an issue where the intended input i would like is: "big St" but this causes the cin /getline function(have tried both) to write it into the next input …
Hi all, I have a file called Client.cpp, which has main() contained in it. my problem is at the start of the file: [CODE]#include <iostream> using namespace std; #include "Student.h" enum User { NO_USER = 0, STUDENT = 1, ADMIN = 2}; [/CODE] I get errors on the line with …
That is because your indexOfMaxInRange method takes: (array, int, int) where as you are passing it: (int, int) this is what it should look like. [CODE]int index = indexOfMaxInRange (myArray, i, myArray.length - 1);[/CODE]
Hi all, Im using hibernate in netbeans to map to a mysql database, but am having problems.... when I open a session: [CODE]Session session = SessionFactoryUtil.getInstance().openSession(); session.beginTransaction();[/CODE] it prints out this in the console:... [COLOR="Red"]12/04/2010 9:50:26 AM org.hibernate.cfg.annotations.Version <clinit> INFO: Hibernate Annotations 3.3.1.GA 12/04/2010 9:50:26 AM org.hibernate.cfg.Environment <clinit> INFO: Hibernate …
Is the array always sorted from lowest to highest?
Hi everyone, I'm having a problem with understanding the workings of an enhanced For loop. This code is meant to iterate through an array of ints and print out the char value of that int. But it seems to start on the first number in the array, making the program …
To implement a hash table with your own hash function, you must make your own classes. Like HashNode.cpp and HashTable.cpp.. Without getting to technical - HashTable is a dynamic array of HashNode's. And HashNode is a link list of values. HashNode contains a key, a value and a pointer to …
Hi peoples, Does anyone know whether this is a problem with the video card? please see attachment. (2 pics of my desktop) notice the vertical lines on the screen? specs: Video card: NVIDIA GeForce 8800 GTS Video card driver: vga, ver: 5.01.2600.0000 Mother board: M2N - SLI Deluxe CPU: AMD …
Here's a couple: [URL="http://simpleprogrammingtutorials.com/tutorials/slist-overview.php"]simpleprogrammingtutorials.com[/URL] [URL="http://en.wikipedia.org/wiki/Linked_list#Singly-linked_list"]wikipedia.org[/URL] I know you only asked for articles but here is some code for a double linked list: [ATTACH]9682[/ATTACH]
Just one thing; shouldn't the last file's header docs be control.cpp? not control.h You have two control.h's
Look at the C++ section of this link: [URL="http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming#C.2B.2B"]wiki: Polymorphism_in_object-oriented_programming[/URL] I guess the talk() function is behaving polymorphic, because its in each of the inherited classes.
Why do none of your lines have semi colons behind them?
If im understanding you right, you need to populate the array from the command line. So you should set up a command line function that is called just before initPuzzle(); ?????. Just make sure that the user only enters enough numbers to fill the array. You can do this in …
I would put the searching and sorting files at the head of the file with main(). so the file with main() would have: #include "Employee.h" #include "search.h" #include "sort.h" but I need a bit more information to answer your question fully. How are you comparing the employee's in the searching …
Try: [CODE]srand( time (NULL) ); //gets seed from clock for (int count = 0; count < 6 ; count++) { number_back = rand() % 53 + 1; //formula for 1-53 random number cout<<number_back<<endl; }[/CODE]
I don't think you can convert the actual file into a binary file, but you can input the data then output it into another binary file. are you able to input the data and store them into a record? Can you post some code of what you have already done …
maybe try: [CODE] int a = 5; list<double> temps(&a, 5.0); [/CODE] BTW how are you inserting the elements/nodes, your not doing it by the constructor are you?
HI, Just a pointer, you should put code tags around your code so its easy to read. you should try using an overloaded displayRow() function that takes in an int for the size, an int for the hash and an int for the caret. so like: [CODE=CPP]void displayRow(int sizeP) { …
Hi all, i asked this question a few days ago bit its still unsolved. I'm reading a text file of strings, line by line, and storing them into an array. when i try and print them using this function: [CODE=cpp]template < typename T > void printArray(T * const array, int …
You could also try time(NULL). [URL="http://www.cplusplus.com/reference/clibrary/ctime/time.html"]http://www.cplusplus.com/reference/clibrary/ctime/time.html[/URL]
Here's a shell sort algorithm: [code=cpp] template<typename T > void prog< T >::shellSort(T * const array, int size) { int i, j, increment; T temp; increment = size / 2; while (increment > 0) { for (i = increment; i < size; i++) { j = i; temp = array[i]; …
So what your saying is you don't want just 100 items in the array? (more or less)
Can someone tell me why my print array method won't print strings. It works with an int array, but only prints a few strings. [CODE]template < typename T > void printArray(T * const array, int size) { for (int i=0; i < size; ++i) cout << array[i] << ' '; …
Can someone tell me why my print array method won't print strings. It works with an int array, but only prints a few strings. [CODE]template < typename T > void printArray(T * const array, int size) { for (int i=0; i < size; ++i) cout << array[i] << ' '; …
The End.