Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~10.7K People Reached
Favorite Tags
c++ x 9
c# x 1

11 Posted Topics

Member Avatar for ademsaykin

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 …

Member Avatar for VernonDozier
0
125
Member Avatar for singhraghav

Here's my solution: [url]http://codepad.org/UlW4iy19[/url] Cheers, ninwa

Member Avatar for BeyondTheEye
0
116
Member Avatar for robgeek

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 …

Member Avatar for AHUazhu
0
178
Member Avatar for NayNay33
Re: Help

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, …

Member Avatar for NayNay33
0
135
Member Avatar for dtaylor01
Member Avatar for stilllearning
0
112
Member Avatar for san_sarangkar

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 …

Member Avatar for stilllearning
0
169
Member Avatar for ninwa

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 …

Member Avatar for LizR
0
93
Member Avatar for kenji

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 = …

Member Avatar for kenji
0
9K
Member Avatar for ninwa

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] …

Member Avatar for LizR
0
128
Member Avatar for sandeepmshetty
Member Avatar for FragFighter

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. :]

Member Avatar for FragFighter
0
140

The End.