User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » C++ help Page [1]  
bhswain
All American
1101 Posts
user info
edit post

anyone good with C++ and feeling generous? Need help finishing a basic program....would take me forever, but someone good could do it in like 5 minutes I guess?

11/6/2006 6:52:35 PM

Perlith
All American
7620 Posts
user info
edit post

If it's for a class, forget it. Otherwise, one of us might be able to help.

11/6/2006 7:04:12 PM

bhswain
All American
1101 Posts
user info
edit post

ha not an NCSU class

11/6/2006 7:11:25 PM

bhswain
All American
1101 Posts
user info
edit post

plus, dont really want someone to do it, more like help with hints...

11/6/2006 7:12:00 PM

qntmfred
retired
40726 Posts
user info
edit post

post what you need help with on here. you'll have more luck with a few people pointing you in the right direction than recruiting a person to help you with every bit of it. but if it smells like an ncsu assignment, prepare to be flamed

[Edited on November 6, 2006 at 9:04 PM. Reason : what class is it for]

11/6/2006 9:03:30 PM

cyrion
All American
27139 Posts
user info
edit post

cout << "programming is for queers";

11/6/2006 9:14:25 PM

bhswain
All American
1101 Posts
user info
edit post

Nvm, I will just look in my book again. Anyone suggest a better book or online tutorial then "How to Program" by Dietel and Dietel.......I hope NCSU doesnt use this book.....I dont like it very much (or C++), I have no programming background what-so-ever.

[Edited on November 6, 2006 at 10:16 PM. Reason : .]

11/6/2006 10:14:46 PM

bhswain
All American
1101 Posts
user info
edit post

The things I am struggling with are basic things with arrays, searching the array, finding numbers divisible by 3, and finding mode.....just cant find good explainations in my book/

11/7/2006 1:07:28 PM

qntmfred
retired
40726 Posts
user info
edit post

what kind of array help do you need? initializing, syntax, how to use? what kind of searching are you doing, there's tons of search algorithms. you can determine whether a number is divisible by three by using the modulus operator (%)

11/7/2006 1:41:50 PM

Fry
The Stubby
7784 Posts
user info
edit post

howstuffworks.com -> C programming

not kidding, it's a good basic site with some example code.

11/7/2006 1:54:20 PM

MiniMe_877
All American
4414 Posts
user info
edit post

const int foo = 9;
if (foo % 3 == 0) {
cout << "foo is divisible by 3";
}


the % operator gives you the integer remainder after division, so if the remainder is zero, then the number is evenly divisible

11/7/2006 1:57:48 PM

ruffler
Veteran
108 Posts
user info
edit post

http://community.livejournal.com/cpp/

11/7/2006 2:00:02 PM

Bakunin
Suspended
8558 Posts
user info
edit post

//divisible by 3
#include <iostream>
int main() {
int * array = { 1,2,3,4,5,6,7,8,9,0 };
do {
if ( !( (*array) % 3 ))
cout<<*array<<endl;
} while ( *(array++) );
}

[Edited on November 7, 2006 at 6:28 PM. Reason : *]

11/7/2006 6:27:00 PM

bhswain
All American
1101 Posts
user info
edit post

thanks, I am finishing unwritten code.......so we'll see how I can fit those in

11/7/2006 7:55:08 PM

bhswain
All American
1101 Posts
user info
edit post

Finished everything but the search of the array, any help?

11/12/2006 12:00:58 PM

A Tanzarian
drip drip boom
10995 Posts
user info
edit post

http://www.cprogramming.com/

You may want to try a basic programming book like "Learn C++ in 21 Days" or something similar. Many of those books assume little to no prior experience and they usually provide example problems with answers and explanations.

11/12/2006 12:43:07 PM

Bakunin
Suspended
8558 Posts
user info
edit post

books are so '90s

http://www.cplusplus.com/doc/tutorial/

11/12/2006 12:51:35 PM

bhswain
All American
1101 Posts
user info
edit post

thanks

11/12/2006 2:17:29 PM

 Message Boards » Tech Talk » C++ help Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.