Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~3K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Tags

15 Posted Topics

Member Avatar for Auto

I'm trying to display the same image several times using javascript. It can range anywhere from 0 to about 50. I'll also have its' location determined by the user click and each image will timeout after a short period of time. I figure i'll have to create a new object …

Member Avatar for Auto
0
108
Member Avatar for aianne

I looked at your program, and it's almost in working condition. I don't know what the norm is out there, but I find it better to avoid mixing some of the older c-style code with c++. For instance, change line 1 to #include<iostream>. Remove the other two. Then change all …

Member Avatar for aianne
-1
173
Member Avatar for enderland

isalpha() and isdigit() cannot handle values outside of the 0-255 range, so whatever garbage data that is appearing after your characters and the null terminator '\0' would have to be in the range from 0 to 255 if they're not it will crash, so you could use a while loop …

Member Avatar for jonsca
0
203
Member Avatar for sikeufoo
Member Avatar for donazri

I think you need to use the #include<string> header to use the stream operators, they have to be overloaded to work with string objects. And I believe the string header will do that.

Member Avatar for LevyDee
0
191
Member Avatar for blind122

Line 11 you made a mistake that can happen, you typed in the wrong member function, it should be. [code]string letter = str.substr(i,1);[/code] Line 25 you do not need to create a variable count_vowels since your function can return this value. Also, that variable has the same name as your …

Member Avatar for blind122
0
137
Member Avatar for Acidburn

OpenGL is of interest to me too, I've found some helpful tutorials, info, docs at this site. I'll be taking a course soon on OpenGL so I kind of backed off of it until then. Here's the site to check out [URL=http://www.opengl.org/]http://www.opengl.org/[/URL]

Member Avatar for wally_lawless
0
194
Member Avatar for Auto

Hello and thanks in advance to your suggestions, I have taken a few courses on programming, Turbo Pascal and intro to C, about 8 years ago and I'm sure much has changed. So my goal is to get back into programming and learn what a solo programmer can accomplish. The …

Member Avatar for Kraken
0
573
Member Avatar for Auto

Can the [I]main() [/I] call be embedded within a class? At work yesterday I caught a snippet somewhere, and I noticed [I]main()[/I] was inside a class, something like the following: [code] [B]class[/B] personnel { [B]void[/B] in_prev_data(); [B]void[/B] in_new_data(); [B]int[/B] main( [B]int[/B] argc, [B]const char[/B] **argv ); [B]void[/B] process_data(); [B]void[/B] pack_data(); …

Member Avatar for Auto
0
157
Member Avatar for k0ld

First off your s[i].quiz1 is the way to go, but your function can not see it unless you either pass it via function argument or make it external. Here's how I got your program to work. Try making the highlighted changes. [CODE]#include <iostream> #include <cstdlib> using namespace std; class student …

Member Avatar for k0ld
0
199
Member Avatar for Auto

I have a function in one of my programs that picks a random state from a list. It then puts this random state in a structure array. However the name selected from the list does not match the name that winds up in my array structure. The following is not …

Member Avatar for Auto
0
168
Member Avatar for blackdove

I may be wrong on this, but I'll take a crack it. It looks as if you're declaring an [I]int i[/I], assigning it no value which in turn will leave some unknown garbage data. And since your array is probably not too large [I]num_row_cols [/I] will probably be lower than …

Member Avatar for blackdove
0
150
Member Avatar for Auto

After fixing some pointer problems with my structures, I decided to move the functions performed on them to another .cpp file. Here's the definition in my [B]main.cpp [/B] above the int main() of course [CODE][B]struct[/B] employee { [B]char[/B] name[[COLOR=Navy]20[/COLOR]]; [B]int[/B] schedule; [B]int[/B] level; }; [B]struct[/B] employee salesdept[[COLOR=Navy]10[/COLOR]];[/CODE] then in my …

Member Avatar for Auto
0
255
Member Avatar for Auto

I have a program that calls a function to generate an array of structures( data_set ). The structures consist of a char[20] and 2 int data types. Now what I'm trying to do is randomly pick from an enumerated data type and here is the code I have with a …

Member Avatar for Auto
0
159
Member Avatar for tommy1988

I too am just getting started in C++, I've found the Dev-C++ to be a good free compiler. I just started using it and I've been given support on any issues I had thus far. I was surprised at what they offered for a free compiler.

Member Avatar for Raven11
1
136

The End.