Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 86,374 C++ Programmers. There are 1,409 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a C++ Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

C PROGRAM

3 Pages V  1 2 3 >  
Reply to this topicStart new topic

C PROGRAM

Chandrakala.patil
post 29 Apr, 2008 - 10:05 PM
Post #1


New D.I.C Head

*
Joined: 27 Apr, 2008
Posts: 2



I NEED A C PROGRAM TO GENERATE THE MAGIC SQUARE
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


no2pencil
post 29 Apr, 2008 - 10:09 PM
Post #2


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,322

cpp

#include <stdio.h>

void generate_magic_square(void);

int main(void) {
generate_magic_square();
return 0;
}

void generate_magic_square() {
printf("Magic square generated...\n");
}
User is online!Profile CardPM
Go to the top of the page
+Quote Post

mikeblas
post 30 Apr, 2008 - 07:17 PM
Post #3


D.I.C Head

**
Joined: 8 Feb, 2008
Posts: 94

I would've hoped for something a little more helpful from a moderator.

I guess the point no2pencl is trying to make, Chandrakala, is that your question doesn't give us much to go on. Are you trying to generate a 3x3 magic square? Or a larger one? Are you trying to solve one given a partial square, or would you like to generate a new one each time the program is run?

Have you started doing this project, and are stuck? Or are you just beginning and hoping for some advice on how to approach the task?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

no2pencil
post 30 Apr, 2008 - 07:24 PM
Post #4


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,322

QUOTE(mikeblas @ 30 Apr, 2008 - 10:17 PM) *

I would've hoped for something a little more helpful from a moderator.

With that being said, there are plenty of disclaimers that this poster chose to ignore, or simply didn't read as he clicked the agreement to the folowing:

I have done the following before posting a new topic:
- Searched for my problem using the search box on the right
- Given my thread a descriptive title (Not "Help", "Homework Problem", etc.)
- Put code tags around my code
- Included any errors and a description of my problem

If you would rather have the boring cookie-cutter response, then I will provide it here:

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

code.gif
User is online!Profile CardPM
Go to the top of the page
+Quote Post

Whizzy
post 30 Apr, 2008 - 08:34 PM
Post #5


D.I.C Addict

****
Joined: 11 Aug, 2007
Posts: 513

QUOTE(no2pencil @ 29 Apr, 2008 - 10:09 PM) *

cpp

#include <stdio.h>

void generate_magic_square(void);

int main(void) {
generate_magic_square();
return 0;
}

void generate_magic_square() {
printf("Magic square generated...\n");
}


I am appauled... that square had no magic what so ever, no poof, no abra cadabra... it wasn't sawed in half, disapear... Nothing...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

no2pencil
post 30 Apr, 2008 - 08:35 PM
Post #6


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,322

QUOTE(Whizzy @ 30 Apr, 2008 - 11:34 PM) *

I am appauled... that square had no magic what so ever, no poof, no abra cadabra... it wasn't sawed in half, disapear... Nothing...

Believe it or not, one time it did levitate through a hoop!

blink.gif That's a lie. But it did come close to guessing my card once... very close!
User is online!Profile CardPM
Go to the top of the page
+Quote Post

PsychoCoder
post 30 Apr, 2008 - 08:37 PM
Post #7


ToCode || !ToCode

Group Icon
Joined: 26 Jul, 2007
Posts: 5,858

Ok Whizzy, just for you


cpp

#include <stdio.h>

void generate_magic_square(void);

int main(void) {
printf("Abracadabra!");
printf("**POOF**");
generate_magic_square();
return 0;
}

void generate_magic_square() {
printf("Magic square generated...\n");
}


This post has been edited by PsychoCoder: 30 Apr, 2008 - 08:38 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Whizzy
post 30 Apr, 2008 - 08:40 PM
Post #8


D.I.C Addict

****
Joined: 11 Aug, 2007
Posts: 513

I'm sorry... this is not the lounge. My bad.... Let's get back to being serious.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

wiIbur
post 30 Apr, 2008 - 10:08 PM
Post #9


New D.I.C Head

*
Joined: 25 Sep, 2007
Posts: 19

QUOTE(Chandrakala.patil @ 29 Apr, 2008 - 10:05 PM) *

I NEED A C PROGRAM TO GENERATE THE MAGIC SQUARE


this thread is pure lawl.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

no2pencil
post 30 Apr, 2008 - 10:12 PM
Post #10


DIC K-mart

Group Icon
Joined: 10 May, 2007
Posts: 3,322

I NEED A C PROGRAM TO GENERATE THE TRIFORCE OF POWER
User is online!Profile CardPM
Go to the top of the page
+Quote Post

wiIbur
post 30 Apr, 2008 - 10:13 PM
Post #11


New D.I.C Head

*
Joined: 25 Sep, 2007
Posts: 19

QUOTE(no2pencil @ 30 Apr, 2008 - 10:12 PM) *

I NEED A C PROGRAM TO GENERATE THE TRIFORCE OF POWER


ok i really did start laughing out loud at this one
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

mikeblas
post 30 Apr, 2008 - 10:37 PM
Post #12


D.I.C Head

**
Joined: 8 Feb, 2008
Posts: 94

QUOTE(no2pencil @ 30 Apr, 2008 - 07:24 PM) *

If you would rather have the boring cookie-cutter response, then I will provide it here:
Boring as it might be, it's not inflammatory or derisive.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

3 Pages V  1 2 3 >
Reply to this topicStart new topic
Time is now: 5/17/08 02:51AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month