No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey Ive been searching all over for an example but cant seem to find anything to close to what im after, Im really new to javascript so dont know how to start coding it myself. Ive got a form with 3 text fields, one for first name, last name and … | |
hey, i need both the import.sql.date; and import.util.date, at the moment im importing them like import.sql.*; import.util.*; How do i specify which library i want for any particular Date object? | |
how would i remove all the white space from an istream and replace them with "-" before producing an ostream? | |
Hey what would be the correct syntax for a vector of char* with a size of [2]? ive got it written like this.. vector< char* > myVector(); vector< char* > ::iterator myIterator; // reads in something myVector.push_back(temp); myIterator = myVector.begin(); cout << myIterator << endl; why does it cout nothing? | |
could someone please point me to a link on how to convert my char* temp = new char[3]; to a char test[3]? | |
Could anyone please show me howi can assign a char* pointer[2] to a char temp[2]? been looking around can i cant find any examples of this | |
hey Ive been given a task which im suppose to create a chained container which recieves only 1 string, and continues chaining untill there is a repeat in the input, I was thinking that maps would be more appropriate but im not sure if I would be able to chain … | |
Hey could someone please point me to a website which shows you how to remove duplicates of a list container of a class that have the same name, but change the int to be an average of both values in the class? [CODE] class product{ string name; float rating; } … | |
hey i have a int **grid; pointer which should read from a txt file a grid which is made up for 0's and 1's, how would i make my grid pointer only read in 1 int for each index of grid[0][i]? txt file contains height and weight of the grid … | |
anyone know why this wont work? [CODE] fstream f; f.open("a.dat", ios::in | ios::out | ios::binary); [/CODE] it doesnt create a.dat... also how would i switch f from read state to write state? | |
hey is it possible to create a pointer that points a struct value, like [CODE] struct person{ int name; int age; }; person me; person *ptr = me.name; [/CODE] any suggestions on how to do this? | |
hey ive got 2 different classes and each class has its own struct with the same type of data... would i be able to create a function that returns the whole sturct from one class to the other? ive got something basically like this class A{ private: struct student{ int … | |
it is possible to change the colour of the font in the terminal by using come sort of code, not sure of the correct term, what im after is like cout << "hello" << endl; and hello would be bold or a different colour, can that be done? | |
Hey, im trying to delete an element of an array of pointers of a class, how can i delete just a single element? my code is basically this... n =8; ClassName *newName; newName = new ClassName[n]; how would i delete for example, element 3, while being in that element... if … | |
Hey i have a weird problem when im trying to print out elements in my temp pointer array, at the bottom where im just using cout to print random indexs of temp, it will only work if i comment out temp[1]... anyone have any idea why? if its not commented … | |
Hey im completely new to bash scripting and have no idea how to search the directory name then print out the path where it was found, the filename is entered thru the command line like "./search.sh pictures" and then would make the script print all directory path names which contain … | |
Re:
Hello, I'm learning to start to program in C++, and I have a problem with the prompt closing before the program ends. I know there's a lot of info about it, and I've googled it and searched here, but all the solutions to system("pause") don't work for me. I'm using … |