usually cookie checking is done using client side javascript, the site might be checking to see if you are a valid browser by checking the user-agent property and seeing if it is a known browser.  I'm not sure though, but I know it is possible to "pretend" to be a valid browser like firefox by doing something like url.setRequestP  roperty("User-Agent", "user agent string"); .  Maybe look into this.
Max
					
					
						User Profile
				
					Collapse
				
			
		
	
- 
	
	
	
	
 take a look at httpunit.source forge.net, I don't know if that will help but I like to recommend it to as many people as I can :)
 
 MaxLeave a comment:
- 
	
	
	
	
 You defined "public static void setSeats (char Seats[][]);" that initialized all the Seats, I think you need to create a new function called setSeat maybe that takes in a row and column and sets only that one row/column Seat value.
 
 MaxLeave a comment:
- 
	
	
	
	
 The two parameter constructor is defined here: http://cppreference.co m/cppvector/vector_construc tors.html
 
 If you left out any code post it.
 
 Max...Leave a comment:
- 
	
	
	
	
 Actually, you can declare an instance of a struct immediately after declaration. So in his case obj is an object. There are quite a few problems though.
 
 1. freeStruct is setting your "obj" to null, so therefore why would you pass in another struct for the size?
 
 2. when doing memory copies always use the size of the struct. eg sizeof(struct emp);
 
 3. line 24 needs the address of "eno"....Leave a comment:
- 
	
	
	
	
 Well, you have to do two things.
 
 1. disable terminal echo using the termio library. This involves creating a struct and turning the ECHO flag off. Sorry I don't have sample code, just look up "disable terminal echo"
 
 2. Once you have disable it, you can only read a char at a time in and you have to output it yourself if you want it to echo to the terminal. This allows you to move the cursor with the arrow...Leave a comment:
- 
	
	
	
	
 The way you would use a map is as follows:
 
 #include<map>
 ...
 
 int main()
 {
 char key[100];
 struct structA A;
 map<char *, void * > theMap;
 /* Insert all structs into the map that you have like so: */
 theMap["structA"] = (void *)&A;
 
 cin >> key;
 void * aStruct = theMap[key];...Leave a comment:
- 
	
	
	
	
 Thanks, but this program needs to run on linux. Are there equivalent linux functions?Leave a comment:
- 
	
	
	
	
 Nope \b only delete up to beginning of current line. Thanks for the response though....Leave a comment:
- 
	
	
	
	
 I don't know about namespaces, but you could create a shared library with "ar"Leave a comment:
- 
	
	
	
	
 
- 
	
	
	
	
 Reverse terminal outputI was wondering if it is easy to direct output in a scenario where the program gets user input from stdin and instead of outputting result on next line after use hits enter, it will output on same line user entered input.
 
 Normally this happens because user must press enter to submit text
 ./test
 Please enter a number: 32
 You entered 32.
 
 I would like to do this:
 ./test
 Please enter a...
- 
	
	
	
	
 I was wondering about that too, except not same line. Scenario where program gets user input from stdin and instead of outputting result on next line, output same line user entered input.
 
 Normally this happens because user must press enter to submit text
 ./test
 Please enter a number: 32
 You entered 32.
 
 I would like to do this:
 ./test
 Please enter a number: 32 You entered 32.Leave a comment:
- 
	
	
	
	
 
- 
	
	
	
	
 
- 
	
	
	
	
 gnu compiler wants you to only have declarations in the header file and all implementation in the .cpp file when using templates.
 
 MaxLeave a comment:
- 
	
	
	
	
 It means make a one-D array row*col in size and when you want to access an item in 2-D format, instead of having a 2D array and using arr[row][col] you would use your 1d array and access it by doing arr[ NUMROWS*ROWyouW ANTtoACCESS + COLyouWANTtoACC ESS].
 
 MaxLeave a comment:
- 
	
	
	
	
 You could create a static const char * array for each menu category, then use a for loop to populate them.
 
 MaxLeave a comment:
- 
	
	
	
	
 if you want to trim off [ ] or anything from a C string the best function to use is strtok.Leave a comment:
- 
	
	
	
	
 a switch statement and call the class function based on the user choice?
 
 MaxLeave a comment:
No activity results to display
							Show More
							
Leave a comment: