No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
Re: Hello! I've taken the information you've provided and built a small class structure spec. Maybe this will help you progress? If you have any specific questions feel free. [CODE=CPP] // All fields in book are required to have non-default values. Book o unsigned int uid; o unsigned int copies; o … | |
Re: Here's my solution: [url]http://codepad.org/UlW4iy19[/url] Cheers, ninwa | |
Re: The method you are calling is print_add, not print. From the code you posted print_add is defined as: void addressType::print_add(string str, string Cit, string St, int Z). That means it takes three strings and one integer. You do not have a method called print() implemented, but if you did it … | |
Re: Just to get you started, the way you are using the replace member of std::string is not how it was intended to be used. Replace cannot substitute dissimilar sized items. For example, you cannot replace "hello" with "hi". Instead, you might replace it with "hiya!." The syntax is: ourString.replace( n, … | |
Re: What do you expect: [code=c++]float 510 << wages << endl;[/code] to do? | |
Re: A string cannot be cast to a char, because a char is one byte and a string can be any number of bytes. You can, however, use std::string's c_str member and create a const char* out of your string. [code=c++]string s = "hi"; const char *cs = s.c_str();[/code] This can … | |
If a text box control is in focus the default functionality of Key.Up and Key.Down are to move the cursor right and left respectively within the text box. I am interested in overriding this functionality. In my application a text box is used for inputs which I would like to … | |
Re: Here is a C++ solution to your problem using std::strings. [code="c++"] #include <string> #include <iostream> using namespace std; int main() { char arr[] = {'a', 'b', 'c', ' ', ' ', ' ', ' ', ' ', 'd', 'e', 'f', '\0'}; string s(arr); string tmp = ""; for(int i = … | |
Howdy. I am very new to C# so I please forgive my ignorance. I was reading about jagged arrays and multidimensional arrays. I am trying to understand why the following code will work as I would expect it to. [code=c#]int[][] intJaggedArray = new int[5][]; intJaggedArray[0] = new int[5]; Console.WriteLine(intJaggedArray[0].Length); [/code] … | |
Re: You may find this useful: [url]http://www.purplemath.com/modules/distform.htm[/url] | |
Re: I'm always interested in helping with these sorts of things. I think a lot of people here would be. As mentioned before, if you're comfortable then just post a link to the download, and be ready for the responses. People can be pretty oppinionated sometimes. :] |
The End.