• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:34
CEST 01:34
KST 08:34
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Serral wins HomeStory Cup 2914Serral wins Maestros of the Game 243ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12
Community News
ZeroSpace Early Access is Now Live!10Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters2Balance hotfix patch 5.0.16b (July 16)80Reynor: GSL Loss Wasn't About Preparation Format16[IPSL] Spring 2026 Grand Finals - This Weekend!18
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) Weekly Cups (July 13-19): Terran & Protoss rise; Zerg falters How would you feel about frequent/monthly balance patches for SC2? Clem: "I don't have that much hope in Blizzard" [D] Wireframe Casting Removed
Tourneys
RSL Revival: Season 6 - Qualifiers and Main Event Master Swan Open (Global Bronze-Master 2) WardiTV Summer Cup 2026 GSL CK #5 Race War HomeStory Cup 29
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
Mutation # 535 Assembly of Vengeance The PondCast: SC2 News & Results Mutation # 534 Burning Evacuation Mutation # 533 Die Together
Brood War
General
BW General Discussion HORROR STARCRAFT MOVIE BGH Auto Balance -> http://bghmmr.eu/ How Famous was FlaSh before his Debut? screpdb: new Starcraft reporting tool
Tourneys
[Megathread] Daily Proleagues [IPSL] Spring 2026 Grand Finals - This Weekend! Escore Tournament - Season 3 Small VOD Thread 2.0
Strategy
Simple Questions, Simple Answers PvT advise for noobs Fighting Spirit mining rates Creating a full chart of Zerg builds
Other Games
General Games
Path of Exile ZeroSpace Early Access is Now Live! General RTS Discussion Thread ZeroSpace at Steam NextFest - Last free demo Nintendo Switch Thread
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Power Rank NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread How to buy a book - shipping from Korea to Europe The Games Industry And ATVI UK Politics Mega-thread
Fan Clubs
The IdrA Fan Club The HerO Fan Club!
Media & Entertainment
Series you have seen recently... Anime Discussion Thread Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion MLB/Baseball 2023 McBoner: A hockey love story
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Simple Questions Simple Answers FPS when play League Of Legend on laptop
TL Community
Northern Ireland Global Starcraft The Automated Ban List
Blogs
Hello guys!
LIN1s
Role of Gaming on Mental Hea…
TrAiDoS
ASL S22 English Commentary…
namkraft
Poker (part 2)
Nebuchad
An Exploration of th…
waywardstrategy
ramps on octagon
StaticNine
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6580 users

The Big Programming Thread - Page 301

Forum Index > General Forum
Post a Reply
Prev 1 299 300 301 302 303 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
May 14 2013 20:42 GMT
#6001
On May 14 2013 23:41 LightMind wrote:
Hmm need some help here. As a computer science student in my first year, I am planning to do some self-study during this summer break. I am hoping to go into game programming. I have some experience with Python, C and C++, and is hoping to go more advance with either C or C++.

Which language would you recommend to go in depth with for self-studying during this summer holiday? And are there any books to recommend?

Thanks!

What do you want to do when you graduate? C++ is for optimized games and hard-core dev work. General game programming is much simpler and streamlined in scripting languages like Python, Lua, Javascript. Actionscript is also great for pumping out games.

If you want to learn about software developement then yes C++. Otherwise, if you just want to learn about gameplay and general game programming for fun or more as a hobby, then other more lax languages are a better choice.

For C++ I recommend C++ for Game Programmers by Noel Llopis.
adwodon
Profile Blog Joined September 2010
United Kingdom592 Posts
May 14 2013 21:15 GMT
#6002
On May 14 2013 23:41 LightMind wrote:
Hmm need some help here. As a computer science student in my first year, I am planning to do some self-study during this summer break. I am hoping to go into game programming. I have some experience with Python, C and C++, and is hoping to go more advance with either C or C++.

Which language would you recommend to go in depth with for self-studying during this summer holiday? And are there any books to recommend?

Thanks!


If you want to get into games just pick up Unity, learn C# and crank out some actual games. It's free and straight forward.

Sure you can grab a book like Game Engine Architecture or any other myriad of books but really you don't need to know serious engine shit until you're actually in the industry or at least have a few games under your belt.

Also I'm going to be a broken record and repeat myself again, its nothing to do with the language, yes you learn more about C++ when you've been doing it for a long time but honestly that doesn't matter if you don't know anything about game systems and you're not really going to be in a position any time soon when you have to 'decide' on a language.

Don't focus on a language, focus on the systems, dont bother 'learning Python', instead go over to edX and learn Artificial Intelligence using Python. Most of the systems stuff for games is likely to be taught in C++ but people do still make games in other languages, especially C# (see XNA / Monogame) depending on platform / scope and their own skill, people even make PC games in java for some bizarre unknown reason.

So yea, I still recommend just grabbing Unity and making some actual games, don't get bogged down by systems and rigors of C++, once you've got your head around the basics, pick your favorite area and try to delve a bit deeper.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
May 14 2013 23:39 GMT
#6003
Does anyone here use JUnit & Ant? Thoughts? For those of you who don't know them, JUnit is a Java test framework, and Ant is a build tool.
berated-
Profile Blog Joined February 2007
United States1134 Posts
Last Edited: 2013-05-15 00:43:40
May 15 2013 00:42 GMT
#6004
On May 15 2013 08:39 darkness wrote:
Does anyone here use JUnit & Ant? Thoughts? For those of you who don't know them, JUnit is a Java test framework, and Ant is a build tool.


I use them some, although I prefer alternatives in each. Ant vs Maven is a little more religious so I won't get into it. However, I quite enjoy using TestNG over Junit.

What kind of thoughts would you like to know about them?
phar
Profile Joined August 2011
United States1080 Posts
May 15 2013 02:19 GMT
#6005
JUnit yes. Where I work, the build system kinda makes the benefits of TestNG over JUnit completely moot, so I just use JUnit. And JTest is, well, not free.

And we have our own proprietary build system, so no ant.

Beyond that, not much to say. Tests are good, write lots of tests. At this point like half of the code I write is tests.
Who after all is today speaking about the destruction of the Armenians?
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
May 15 2013 03:35 GMT
#6006
I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.

I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
tec27
Profile Blog Joined June 2004
United States3702 Posts
May 15 2013 04:11 GMT
#6007
On May 15 2013 12:35 obesechicken13 wrote:
I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.

I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing.

Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable.

I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable
Can you jam with the console cowboys in cyberspace?
berated-
Profile Blog Joined February 2007
United States1134 Posts
May 15 2013 10:51 GMT
#6008
On May 15 2013 13:11 tec27 wrote:
Show nested quote +
On May 15 2013 12:35 obesechicken13 wrote:
I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.

I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing.

Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable.

I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable


I'll second this. As a developer who works at a company with no test suites and a qa team of two, I can tell you that the lack of automated unit tests make our job pretty tough. Our main application code base is 10 yrs old -- we've built up a ton of technical debt that takes quite a bit of domain knowledge just to make the simplest of changes. This model worked really well when you have a team of 6 developers who have all been there since the beginning of the company, not so well when you have 10 developers who a majority of developers have been there less than 2 yrs. This model doesn't even pass the snicker test at bigger companies.

I've spent the last two years trying to push the benefits of testing to the other devs, but adoption is slow. Luckily, I got to experience the transition first hand of writing tests slows me down to writing tests makes my job easier/faster. It definitely takes time to become good at, though, so I wouldn't base any conclusions on how beneficial it is until you spend a couple months writing tests first and using mocks. I truly believe my code is better structured and modularized just because I started writing my tests first.
Kambing
Profile Joined May 2010
United States1176 Posts
May 15 2013 14:03 GMT
#6009
On May 15 2013 19:51 berated- wrote:
Show nested quote +
On May 15 2013 13:11 tec27 wrote:
On May 15 2013 12:35 obesechicken13 wrote:
I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.

I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing.

Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable.

I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable


I'll second this. As a developer who works at a company with no test suites and a qa team of two, I can tell you that the lack of automated unit tests make our job pretty tough. Our main application code base is 10 yrs old -- we've built up a ton of technical debt that takes quite a bit of domain knowledge just to make the simplest of changes. This model worked really well when you have a team of 6 developers who have all been there since the beginning of the company, not so well when you have 10 developers who a majority of developers have been there less than 2 yrs. This model doesn't even pass the snicker test at bigger companies.

I've spent the last two years trying to push the benefits of testing to the other devs, but adoption is slow. Luckily, I got to experience the transition first hand of writing tests slows me down to writing tests makes my job easier/faster. It definitely takes time to become good at, though, so I wouldn't base any conclusions on how beneficial it is until you spend a couple months writing tests first and using mocks. I truly believe my code is better structured and modularized just because I started writing my tests first.


That hurts to hear. I'm sorry. =(
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
May 15 2013 16:27 GMT
#6010
On May 15 2013 13:11 tec27 wrote:
Show nested quote +
On May 15 2013 12:35 obesechicken13 wrote:
I use selenium and testng with maven. Personally I feel like automated testing is a waste of valuable developer time that could be spent on more products but it's my line of work. I'm not going to bring it up to anyone at work that I think my work is a load of crock.

I'd rather have products with good features and functionality than having to constantly update test suites as products are developed. I often feel there should be one good test cases to test for past regressions that are likely to come back. More emphasis in my opinion should be spent on organizing good manual testing of software and employing customer feedback since there is just too much to do for automation testing.

Tests are there to help you build new features and deal with requirements changes better, not to slow you down. Writing code without tests may seem faster in the short run, but in the long run you'll write code with more bugs and higher coupling that makes it harder to have time for doing new things. It sounds like from what you've said that you're mostly writing large scale integration tests, which is not really what people here are talking about. Such tests are necessary, but should not be the major focus of a proper testing strategy. They are hard to write, take a long time to run, and don't really give you all that much in the end. Unit tests on the other hand, as well as small-scale integration tests can be quite helpful and easy to write. I wouldn't throw the baby out with the bath water just because you find selenium to not be all that valuable.

I've been at a company that had next to no tests and a QA team larger than the actual dev team, and am now at a company with a large test suite and a QA team roughly 1/6th the size of the dev team. I can very easily say that the latter is vastly preferable

I think the QA team 1/6th the size of the dev team sounds better.

I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Craton
Profile Blog Joined December 2009
United States17297 Posts
May 15 2013 22:24 GMT
#6011
We prefer small teams of like 5 developers, 5+ testers, and no more maybe than ~15 people total.

In practice our teams are much smaller than even that. Given how critical proper testing is (and how important it is to catch issues early), having a test team at least equal to your dev team is desirable. It's different once a product is in production since we usually fall into a supporting or secondary role (e.g. our involvement falls off more and more each month until they're essentially autonomous).
twitch.tv/cratonz
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2013-05-16 02:21:41
May 16 2013 01:21 GMT
#6012
On May 16 2013 01:27 obesechicken13 wrote:I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all.

You do have to do integration tests, yes. Even if you have the most genius-designed system that's all modular and cool 'n shit, it's really easy to let some stupid stuff fall through the cracks if you don't have more end-to-end integration tests set up.

I think tec was just pointing out that you can't let integration tests be the majority of your emphasis, because, as someone pointed out above, integration tests can be a fucking pain in the ass to fix, and are as a whole a lot more brittle. And webdriver/selenium type stuff just adds another layer of absolute pain.

So integration tests are good, yes, but for a dev spending more time on smaller scale tests is a better use of time.
Who after all is today speaking about the destruction of the Armenians?
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
May 16 2013 01:29 GMT
#6013
On May 16 2013 10:21 phar wrote:
Show nested quote +
On May 16 2013 01:27 obesechicken13 wrote:I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all.

You do have to do integration tests, yes. Even if you have the most genius-designed system that's all modular and cool 'n shit, it's really easy to let some stupid stuff fall through the cracks if you don't have more end-to-end integration tests set up.

I think tek was just pointing out that you can't let integration tests be the majority of your emphasis, because, as someone pointed out above, integration tests can be a fucking pain in the ass to fix, and are as a whole a lot more brittle. And webdriver/selenium type stuff just adds another layer of absolute pain.

So integration tests are good, yes, but for a dev spending more time on smaller scale tests is a better use of time.

Ok. Well as I said, I know very little about unit testing. I think I tried it in school once.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
tec27
Profile Blog Joined June 2004
United States3702 Posts
May 16 2013 01:30 GMT
#6014
Yeah, basically that. Integration tests are important, but if they're exclusively how you're testing your app (or even the major part of it) you're in for some pain. I'm not like a TDD fetishist and I only do it where I think its appropriate/helpful, but this book is pretty good on the subject of testing, if you're interested:

Growing Object-Oriented Software, Guided by Tests
Can you jam with the console cowboys in cyberspace?
Craton
Profile Blog Joined December 2009
United States17297 Posts
Last Edited: 2013-05-16 01:31:50
May 16 2013 01:31 GMT
#6015
On May 16 2013 10:29 obesechicken13 wrote:
Show nested quote +
On May 16 2013 10:21 phar wrote:
On May 16 2013 01:27 obesechicken13 wrote:I'm not too familiar with unit testing but I feel like there would be many issues if you didn't test integration points or didn't test end user experience. A unit test can pass for some functionality but users might not be able to access your site at all.

You do have to do integration tests, yes. Even if you have the most genius-designed system that's all modular and cool 'n shit, it's really easy to let some stupid stuff fall through the cracks if you don't have more end-to-end integration tests set up.

I think tek was just pointing out that you can't let integration tests be the majority of your emphasis, because, as someone pointed out above, integration tests can be a fucking pain in the ass to fix, and are as a whole a lot more brittle. And webdriver/selenium type stuff just adds another layer of absolute pain.

So integration tests are good, yes, but for a dev spending more time on smaller scale tests is a better use of time.

Ok. Well as I said, I know very little about unit testing. I think I tried it in school once.

I didn't even touch them until grad school. They're a weekly occurrence these days.
twitch.tv/cratonz
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
May 16 2013 12:23 GMT
#6016
I think the point of unit testing is to update the test suite as time goes, no one tells you to write all tests within a small time frame. You write the test method first, then you implement the exact method. At least this is what Extreme Programming methodology teaches.
Bionicrm
Profile Joined June 2012
United States116 Posts
Last Edited: 2013-05-16 21:39:33
May 16 2013 21:38 GMT
#6017
I'm sort of new to web design. I've learned the basics of Python, HTML, CSS, and am still learning JavaScript (which is easy because concepts are similar to Python) via Codecademy.com.

I'm making a website, and when I zoom-in in the browser window, my little menu bar gets moved over and under the banner, a form is falling out of the border, and other crazy stuff. Are there ways that people prevent this?

When I zoom-in to TL, things just get bigger and fall off the screen, which is what should happen. Instead, things feel free to move all over on my site. Also, it is not visible on the web, as it's still in development (I view it from my computer), and I'm not sure if that has anything to do with it.
obesechicken13
Profile Blog Joined July 2008
United States10467 Posts
May 16 2013 23:57 GMT
#6018
On May 17 2013 06:38 Bionicrm wrote:
I'm sort of new to web design. I've learned the basics of Python, HTML, CSS, and am still learning JavaScript (which is easy because concepts are similar to Python) via Codecademy.com.

I'm making a website, and when I zoom-in in the browser window, my little menu bar gets moved over and under the banner, a form is falling out of the border, and other crazy stuff. Are there ways that people prevent this?

When I zoom-in to TL, things just get bigger and fall off the screen, which is what should happen. Instead, things feel free to move all over on my site.

Also, it is not visible on the web, as it's still in development (I view it from my computer), and I'm not sure if that has anything to do with it.

I don't think so. It probably has to do with your css.

TL doesn't seem to care about your zoom whereas your css probably does.
I think in our modern age technology has evolved to become more addictive. The things that don't give us pleasure aren't used as much. Work was never meant to be fun, but doing it makes us happier in the long run.
Birdie
Profile Blog Joined August 2007
New Zealand4438 Posts
Last Edited: 2013-05-17 02:54:09
May 17 2013 02:53 GMT
#6019
If I'm dealing with a text file where the last line is Baggins Bilbo;05-89378 with no space or newline character at the end of the file, how do I detect the "last character" which doesn't exist, so that I can cut that number off and place it into a variable?

I can do it with other lines using code such as
if(input[i] == '\n') {
temp[j] = '\0';
j = -1;
printf("Temp number: %s\n", temp);
strcpy(tempPhone.number, temp);
}

but that doesn't work when there IS no newline at the end of the number.

This is in C by the way.

I've tried using input[i] == NULL, which didn't work either (I would have thought it would because it's trying to get a character which doesn't exist). Perhaps I don't understand NULL properly yet.
Red classic | A butterfly dreamed he was Zhuangzi | 4.5k, heading to 5k as support!
CecilSunkure
Profile Blog Joined May 2010
United States2829 Posts
May 17 2013 03:04 GMT
#6020
On May 17 2013 11:53 Birdie wrote:
If I'm dealing with a text file where the last line is Baggins Bilbo;05-89378 with no space or newline character at the end of the file, how do I detect the "last character" which doesn't exist, so that I can cut that number off and place it into a variable?

I can do it with other lines using code such as
if(input[i] == '\n') {
temp[j] = '\0';
j = -1;
printf("Temp number: %s\n", temp);
strcpy(tempPhone.number, temp);
}

but that doesn't work when there IS no newline at the end of the number.

This is in C by the way.

I've tried using input[i] == NULL, which didn't work either (I would have thought it would because it's trying to get a character which doesn't exist). Perhaps I don't understand NULL properly yet.

If you're dealing with a text file try reading line by line, instead of with strcpy. Use fscanf. Looky here: http://www.randygaul.net/2013/02/07/fscanf-power/
Prev 1 299 300 301 302 303 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 26m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ViBE264
BRAT_OK 60
StarCraft: Brood War
Artosis 514
League of Legends
JimRising 427
Trikslyr47
Counter-Strike
summit1g8802
minikerr53
Super Smash Bros
hungrybox620
PPMD39
Other Games
tarik_tv5836
Grubby2630
shahzam586
UpATreeSC252
ToD202
Temp02
JuggernautJason1
Organizations
Other Games
gamesdonequick1098
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 17 non-featured ]
StarCraft 2
• Hupsaiya 90
• RyuSc2 44
• Adnapsc2 18
• Kozan
• LaughNgamezSOOP
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• TFBlade623
Other Games
• Scarra1442
• imaqtpie892
• Shiphtur260
Upcoming Events
PiGosaur Cup
26m
The PondCast
10h 26m
Kung Fu Cup
11h 26m
OSC
1d
CrankTV Team League
1d 11h
Replay Cast
2 days
CrankTV Team League
2 days
Korean StarCraft League
3 days
Afreeca Starleague
3 days
RSL Revival
3 days
Serral vs SHIN
herO vs Solar
[ Show More ]
Online Event
3 days
Replay Cast
4 days
RSL Revival
4 days
Clem vs ByuN
Rogue vs Lambo
WardiTV Weekly
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Acropolis #4
HSC XXIX
Eternal Conflict S2 E3

Ongoing

CSL 2026 Summer (S21)
KCM Race Survival 2026 Season 3
Proleague 2026-07-21
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
SCTL 2026 Spring
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026

Upcoming

Escore Tournament S3: W4
ASL S22 SEASON OPEN Day 2
Escore Tournament S3: W5
CSLAN 4
Blizzard Classic Cup 2026
HSC XXX
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
Light Tournament 2026
Eternal Conflict S2 Finale
ESL Pro League Season 24
Stake Ranked Episode 4
Logitech G Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Disclosure: This page contains affiliate marketing links that support TLnet.

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.