Author Topic: Desperately need help woth C program  (Read 1910 times)

Offline Fkacn_tt

  • Global Moderator
  • Kage
  • *
  • Posts: 1500
  • Country: 00
  • Chakra 2
    • PS3,PsP, Dead PS2
  • Referrals: 1
    • View Profile
  • CPU: AMD Athlon 64 X2 4400+
  • GPU: XFX 4850 512mb
  • RAM: 2 GB PC 6400
  • Broadband: Flow
  • PSN: r_guy007
Desperately need help woth C program
« on: May 27, 2008, 10:39:16 PM »
can any C gurus please have a look at my code and tell me what is wrong with it and if i'm doing it correctly. it is suppose to be a  2player tic tac toe game using arrays, see attachment for file
" border="0

Carigamers

Desperately need help woth C program
« on: May 27, 2008, 10:39:16 PM »

Offline Czar

  • Ancient
  • Kage
  • *****
  • Posts: 1241
  • Country: 00
  • Chakra 12
    • Xbox One
  • Referrals: 0
    • View Profile
  • XBL: slyCzar
Re: Desperately need help woth C program
« Reply #1 on: May 27, 2008, 11:14:14 PM »
What are the errors being thrown?

I'm not a C person per se, and I don't have a C compiler here, but if you can point me to the problem, I can still try to help.

From a cursory glance though, here's what I see that could be possible probs:
1. One too many closing braces at the end.
2. Line 28 - for (row = 0, row < max row, row = row + 1) - should be 1 word... maxrow, should be separated by semicolons ; and not commas, use row++ for your incrementer instead of row = row + 1
3. Similar story in Line 30 with the semicolons and the incrementer. Also, lose the semicolon at the end of the line.
4. Line 32 has a comma inside the printf near the end, should probably lose it.

Other than that, looks like you're on the right track.

Offline Fkacn_tt

  • Global Moderator
  • Kage
  • *
  • Posts: 1500
  • Country: 00
  • Chakra 2
    • PS3,PsP, Dead PS2
  • Referrals: 1
    • View Profile
  • CPU: AMD Athlon 64 X2 4400+
  • GPU: XFX 4850 512mb
  • RAM: 2 GB PC 6400
  • Broadband: Flow
  • PSN: r_guy007
Re: Desperately need help woth C program
« Reply #2 on: May 28, 2008, 12:28:49 AM »
ok i fixed most of what you told me was wrong, but i am still getting one more error also i attached a screenshot. I;m kind of lost on where to go from there and what i have done so far is it correct or should i start form scratch again.



" border="0

Carigamers

Re: Desperately need help woth C program
« Reply #2 on: May 28, 2008, 12:28:49 AM »

 


* ShoutBox

Refresh History
  • Crimson609: yea everything cool how are you?
    August 10, 2022, 07:26:15 AM
  • Pain_Killer: Good day, what's going on with you guys? Is everything Ok?
    February 21, 2021, 05:30:10 PM
  • Crimson609: BOOM covid-19
    August 15, 2020, 01:07:30 PM
  • Shinsoo: bwda 2020 shoutboxing. omg we are in the future and in the past at the same time!
    March 03, 2020, 06:42:47 AM
  • TriniXjin: Watch Black Clover Everyone!
    February 01, 2020, 06:30:00 PM
  • Crimson609: lol
    February 01, 2020, 05:05:53 PM
  • Skitz: So fellas how we go include listing for all dem parts for pc on we profile but doh have any place for motherboard?
    January 24, 2020, 09:11:33 PM
  • Crimson609: :ph34r:
    January 20, 2019, 09:23:28 PM
  • Crimson609: Big up ya whole slef
    January 20, 2019, 09:23:17 PM
  • protomanex: Gyul like Link
    January 20, 2019, 09:23:14 PM
  • protomanex: Man like Kitana
    January 20, 2019, 09:22:39 PM
  • protomanex: Man like Chappy
    January 20, 2019, 09:21:53 PM
  • protomanex: Gyul Like Minato
    January 20, 2019, 09:21:48 PM
  • protomanex: Gyul like XJin
    January 20, 2019, 09:19:53 PM
  • protomanex: Shout out to man like Crimson
    January 20, 2019, 09:19:44 PM
  • Crimson609: shout out to gyal like Corbie Gonta
    January 20, 2019, 09:19:06 PM
  • cold_187: Why allur don't make a discord or something?
    December 03, 2018, 06:17:38 PM
  • Red Paradox: https://www.twitch.tv/flippay1985 everyday from 6:00pm
    May 29, 2018, 09:40:09 AM
  • Red Paradox: anyone play EA Sports UFC 3.. Looking for a challenge. PSN: Flippay1985 :)
    May 09, 2018, 11:00:52 PM
  • cold_187: @TriniXjin not really, I may have something they need (ssd/ram/mb etc.), hence why I also said "trade" ;)
    February 05, 2018, 10:22:14 AM

SimplePortal 2.3.3 © 2008-2010, SimplePortal