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
~5K People Reached
Favorite Tags
Member Avatar for Jon182

Hey guys, I am trying to design a query that will return all the records based on a single date but because of the date/time data type in MS SQL 2005 it defaults to the date and the time 00:00:00 which will return no records for me. Is it possible …

Member Avatar for hinde
0
95
Member Avatar for Jon182

Hi, sorry for a newbie question but I was wondering if the following is possible: I have to select some information from a table which I have already created a query for. This information then has to be inserted into a new table but needs another column with another unique …

Member Avatar for huangzhi
0
68
Member Avatar for Jon182

Hey guys, I am in the process of a program that counts integers I can do this by looking for the int keywork and then incrementing a variable although if an integers are implemented as: int j,k,l; I am not sure how to count this as 3 ints, I know …

Member Avatar for Jon182
0
447
Member Avatar for Jon182

Hey guys, I have the following two pieces of code and I am trying to combine them so it will say if hello is found and it is at the start or the prevous character is whitespace then add one to the count but when i try to combine these …

Member Avatar for agiorgio
0
185
Member Avatar for Jon182

Hey guys I am using code like the following: But I would like to say if a semi colon appears at any stage after a ")" (closing bracket) add one to count. Any advice thanks. ( I am also using a char array and not a string, unfortunitly I have …

Member Avatar for Jon182
0
126
Member Avatar for Jon182

Hey guys I have been trying to expand the following code but have had no luck, is there anyway I could also make this code say if the previous character is space or a is comma? Thanks. [code] //temp is the array ch is a char pointer if( ch == …

Member Avatar for Ancient Dragon
0
223
Member Avatar for Jon182

Hey guys I am just wondering why the following code gives the wrong number of characters from a file when the character count is the default? Thanks. [code] void main() { int blank_count = 0; int char_count = 0; int sentence_count = 0; char ch; ifstream iFile("c:\test.txt"); if (! iFile) …

Member Avatar for Jon182
0
67
Member Avatar for Jon182

hey guys, I am using the following code to count from a text file but I also want to check for ",jo " as well as "jo " I was trying to do it by using while((ch = strstr( ch, "jo ")) != 0) || while((ch = strstr( ch, ",jo …

Member Avatar for Jon182
0
82
Member Avatar for Jon182

Hey guys I was just wondering is there a c++ function that will eliminate white space from the start and end of a character array data obtained with the getline function? Thanks.

Member Avatar for Narue
0
149
Member Avatar for Jon182

Hey guys, I now want to make a program to count simple integers my first problem is that the following code will also count the word hint as an int. I was wondering if there is an easy way round this problem? (I tried putting whitespace after the word like …

Member Avatar for Jon182
0
141
Member Avatar for Jon182

Hey guys, I am using the code below ot search for words in a text file and count them. I now would like to do something a little more advanced for example if a text file contains "hello my name is kim" I want to be able to increment a …

Member Avatar for Bench
0
236
Member Avatar for Jon182

Hey guys I am using code that does the following: [code] cin.ignore(); cin.getline(file, 250); ifstream test; test.open (file); if (test.fail()) { cout<<"error"<<endl; exit(1); } ... [/code] The problem is that if a file name is entered that does not exist for example c:\\fred.txt the error message will not appear and …

Member Avatar for Jon182
0
169
Member Avatar for Jon182

Hey guys, I have made a C++ console program and I was just wondering is there anyway to give the exe file a logo rather than just having the standard white box? Thanks in advance for any advice given.

Member Avatar for Jon182
0
134
Member Avatar for Jon182

Hey guys, I have been told that the getline function in C++ is a standard library member but is this true as the #include <stdlib> header file does not have to be included in order for getline to work? Thanks.

Member Avatar for Ancient Dragon
0
357
Member Avatar for Jon182

Hey guys, I have the following code, but for some reason it does not work with bigger txt files is this because of the size of the array? And if so is there a simple way to solve the problem? Thanks in advance for any help. [code] char ch[1000]; int …

Member Avatar for Jon182
0
233
Member Avatar for Jon182

Hey guys, the following code is part of a program I am working on and as a newbie to c++ I have come across a problem. As you can see when the case is J the int J is increased by 1 but how do I go about doing this …

Member Avatar for perniciosus
0
116
Member Avatar for Jon182

Hey guys, I am trying to connect my laptop with a friends so we can exchange simple word docs using ad hoc so far i have turned the guest account setting to on in win xp and i can see their laptop in view work group computers but when i …

0
59
Member Avatar for Jon182

hey guys, I know that in VB data can be taken from an access database then displayed in a flexigrid and I was just wondering is it possible to display the same data in a series of labels rather than a flexigrid as I was thinking about doing this for …

Member Avatar for Jon182
0
159
Member Avatar for Jon182

Hey guys, I am thinking about creating a sudoku game in VB in order to improve my programming skills and as I am quite new to VB I was wondering would it be best to try this task using labels and text boxes or a felxigrid? Thanks in advance.

Member Avatar for Jon182
0
165
Member Avatar for Jon182

Hey guys, I have a wireless card in my laptop and as does my friend and we have switched to ad-hoc mode as we want to be able to share files with each other and send messages using the net send command. But we have no idea how to share …

Member Avatar for Jon182
0
134
Member Avatar for Jon182

Hey guys, I was just wondering when using classes to obtain a name or something like that when a pointer is used how come you don't have to use the new and delete key words. [code] class LibBook { private: char *name public: LibBook( char* = '\0') void showBookName() }; …

Member Avatar for Dante Shamest
0
112
Member Avatar for Jon182

Hey guys, I was using a switch statement for a menu so when the user entered a number from the menu that action was taken. The last option in the menu when pressed just said thanks for using the program then it would say press any key to continue. Although …

Member Avatar for Jon182
0
101
Member Avatar for Jon182

Hey guys, I was just wondering why when dealing with a lot of classes do you often have to use something like the following code before the class: [code] #ifndef classCarhpp #define classCarhpp [/code] and this code after the class [code] #endif [/code] Thanks in advance.

Member Avatar for winbatch
0
143
Member Avatar for Jon182

Hey guys, I was just wondering if you know any websites that have good tutorials on classes? Thanks.

Member Avatar for Jon182
0
140
Member Avatar for Jon182

Hey guys, I was just wondering what the term wildcard means in C++ and I was also wondering why some people initalize int variables to -1 rather than 0 does this have any advantages? Thanks in advance.

Member Avatar for jhdobbins
0
88
Member Avatar for Jon182

Hey guys, I was just wondering if there is a way in C++ to stop a program from crashing if the user enters a char instead of an int by mistake? Thanks in advance.

Member Avatar for Jon182
0
430
Member Avatar for Jon182

Hi guys, I was making a program a few months ago in C++ and in this program I used cin.getline but I found if I used this more than once in the same function some of the cin.getlines would be ignored once the program was compiled. I was just wondering …

Member Avatar for Jon182
0
215
Member Avatar for Jon182

Hi, When I purchased my laptop it came with norton internet security already installed and I was going to remove it from the windows xp add remove programs feature and then I also noticed that there was a norton WMI update program installed I was just wondering does this belong …

0
51