420chan now has a web-based IRC client available, right here
Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


Community Updates

420chan now supports HTTPS! If you find any issues, you may report them in this thread
custom PHP Framework by Fucking Billingforth - Mon, 07 Mar 2016 10:16:06 EST ID:5O5Et4Rv No.35282 Ignore Report Reply Quick Reply
File: 1457363766264.png -(45520B / 44.45KB, 410x233) Thumbnail displayed, click image for full size. 45520
Sup

wrote this php framework and would appreciate some constructive criticism.

https://github.com/SIB-FRANCE/Polyfony2

(questions about why write another framework, and why not use Symfony, Phalcon, Laravel… I'm not interest in)

Thanks
1 posts omitted. Click Reply to view.
>>
JQuery Black Hole SRC - Mon, 07 Mar 2016 23:28:40 EST ID:tSOrTy4O No.35284 Ignore Report Quick Reply
<canvas id="myCanvas" left="2240" width="2240" height="4220" style="border:0px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.shadowBlur = 20;
ctx.fillStyle = "red";
ctx.shadowColor = "blue";
ctx.fillRect(20, 20, 100, 80);
ctx.shadowColor = "black";
setTimeout(ctx.fillRect(100, 20, 100, 80),200);
setTimeout(ctx.fillRect(50, 20, 100, 80),300);
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
Comment too long. Click here to view the full text.
>>
Fanny Hillerfield - Mon, 07 Mar 2016 23:32:33 EST ID:tSOrTy4O No.35285 Ignore Report Quick Reply
>>35284
srry wanted to post in below thread!!
>>
JS Extract All Text From Page - Tue, 08 Mar 2016 10:37:55 EST ID:tSOrTy4O No.35286 Ignore Report Quick Reply
<p>Click the button to add a background color to the first element in the document with class="example" (index 0).</p>

<button onclick="myFunc()">Try it</button>

<p><strong>Note:</strong> The querySelectorAll() method is not supported in Internet Explorer 8 and earlier versions.</p>

<script>
function myFunc() {
var x = document.querySelectorAll("*");
for(var i=0;i<50;i++){
document.writeln(x.innerText+'<br>');
document.writeln(x.outterText+'<br>');
}
}
</script>
Comment too long. Click here to view the full text.
>>
JQuery My Second Game and First 3D Game !!vVWR8L52 - Sun, 26 Jun 2016 04:56:05 EST ID:+6d1kOO+ No.35767 Ignore Report Quick Reply
<canvas id="myCanvas" left="2240" width="2240" height="4220" style="border:0px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>
<script>
var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.shadowBlur = 20;
ctx.fillStyle = "red";
ctx.shadowColor = "blue";
ctx.fillRect(20, 20, 100, 80);
ctx.shadowColor = "black";
setTimeout(ctx.fillRect(100, 20, 100, 80),200);
setTimeout(ctx.fillRect(50, 20, 100, 80),300);
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
Comment too long. Click here to view the full text.
>>
Phineas Clittingchick - Sun, 26 Jun 2016 06:46:28 EST ID:vn92kpWi No.35768 Ignore Report Quick Reply
>>35282
> database abstraction
Like every other framework you fail to grasp the nature of data and databases and support the ignorance of uneducated programmers.

For comparison, what do you think of the following "programming abstraction"?

> function setVar($varname, $value)
> function getVar($varname)
> function makeFunc($funcname, array $statements)
> function callFunc($funcname, $param1 = null, $param2 = null)


Old Phone Game Programming by Basil Bemmerwire - Wed, 22 Jun 2016 18:54:14 EST ID:hs3PpPko No.35759 Ignore Report Reply Quick Reply
File: 1466636054079.jpg -(79689B / 77.82KB, 650x650) Thumbnail displayed, click image for full size. 79689
Hi, I just inherited this old SCH-U450 Verizon phone. You can visit the "Verizon Media Center (Get it Now)", and download games and whatnot - all of them, it seems, from different studios. I'm wondering if anyone here knows how you go about programming that device/OS.

What languages and tools are available? And how did those game studios get a Verizon deal?
>>
Nell Worthingfuck - Thu, 23 Jun 2016 12:07:35 EST ID:PeK+KZzj No.35762 Ignore Report Quick Reply
You're probably looking at J2ME or BREW. The way it works is you design and write a game for one phone and then port it to other phones. This sounds like it's a bigger pain in the ass than it is on Android. I assume getting into a Verizon store is similar to getting into any other app store, just not so well advertised.

I had to change all the verb tenses above because I realized that this is still a thing. Kind of a trip.
>>
Albert Meblingworth - Sat, 25 Jun 2016 01:17:27 EST ID:4AC8OQBZ No.35765 Ignore Report Quick Reply
>>35762
Yeah this guy is right. It's gonna be either J2ME or BREW. Enjoy your crappy Java apps.
>>
Cornelius Buzzhall - Fri, 15 Jul 2016 04:36:54 EST ID:F+scHBch No.35853 Ignore Report Quick Reply
My windows mobile phone used to have Java emulator. I played some mobile ratchet and clank game using it. Moto Q9c, good times.


Challenge by Alice Wibblekire - Wed, 25 May 2016 20:32:06 EST ID:PXZrezhR No.35657 Ignore Report Reply Quick Reply
File: 1464222726025.jpg -(153031B / 149.44KB, 1920x1080) Thumbnail displayed, click image for full size. 153031
Guess what my root is.
Will show breasts maybe not wink wink.

root:!:16898:0:99999:7:::
daemon:*:16848:0:99999:7:::
bin:*:16848:0:99999:7:::
sys:*:16848:0:99999:7:::
sync:*:16848:0:99999:7:::
games:*:16848:0:99999:7:::
man:*:16848:0:99999:7:::
lp:*:16848:0:99999:7:::
mail:*:16848:0:99999:7:::
news:*:16848:0:99999:7:::
uucp:*:16848:0:99999:7:::
proxy:*:16848:0:99999:7:::
Comment too long. Click here to view the full text.
>>
Sidney Handershaw - Wed, 25 May 2016 20:46:45 EST ID:UJlFtb13 No.35658 Ignore Report Quick Reply
I think you wanted /tech/ and perhaps to eat a dick.
>>
Edwin Bellerwill - Thu, 26 May 2016 18:23:31 EST ID:sLq6zDO/ No.35660 Ignore Report Quick Reply
>>35657
fuck off BrU
>>
Augustus Fanshaw - Thu, 16 Jun 2016 08:50:35 EST ID:+6d1kOO+ No.35749 Ignore Report Quick Reply
That wasn't me dood!! Im the one who shitposts code remember!!


Project Resurgence by Jarvis Smallway - Sat, 21 May 2016 09:14:18 EST ID:E+kfHK+d No.35652 Ignore Report Reply Quick Reply
File: 1463836458538.jpg -(995402B / 972.07KB, 4000x2184) Thumbnail displayed, click image for full size. 995402
Any 420nons know how to program UE4?

This kickstarter project is switching from Unity 4 and needs a Kevin Flynn motherfucker who can do UE4 and C++.

http://www.nectargamestudios.com/
https://www.facebook.com/ProjectResurgence
https://forums.unrealengine.com/showthread.php?84746-Project-Resurgence-Isometric-Episodic-Narrative-driven-cRPG&p=381513

It's a plot-oriented dieselpunk/fantasy love song to 90's RPGs (Baldur's Gate, Planescape: Torment, Fallout, Arcanum).

I ask because I've seen some of lead dev CohhCarnage's let's plays, and he seems like a switched on kind of guy who'd make a really good game. And the only way I get to play the game is if it gets fucking finished, so Ima enable all over this sumbitch.
>>
Phineas Pammlemotch - Sat, 21 May 2016 21:06:56 EST ID:JLHDQ7Xv No.35653 Ignore Report Quick Reply
>It's a plot-oriented dieselpunk/fantasy love song to 90's RPGs

You know, just the other day I was thinking that anything that's been billed as a "love letter" to old video games has turned out to be a complete fucking disappointment. A lot of games don't survive an engine change, so this probably won't even be that.
>>
Reuben Clayway - Sun, 22 May 2016 00:18:51 EST ID:lQC8ix+F No.35654 Ignore Report Quick Reply
>>35653
Inorite? But there's some good stuff in their CVs. But also Colonial Marines. But I want to believe.
But actually being their Code Monkey Prime would be a way to help stop it turning into Daikatana 2: Electric Boogaloo.

>Previous Work:
This is our first project as a team, but here are some shipped titles team members have worked on:

Planescape: Torment, Fallout 2 - Chris Jones (Enviro Modeler)
Aliens: Colonial Marines - Seth Black (Programmer)
Bioshock 2, The Bureau - CJ Green (Tech Artist)
XCOM 2, Tomb Raider (2012) - Si Tran (Animator)
The Order: 1886 - Mark Judkins (Rigger)
Bound By Flame - JC Doublet (UI Artist)
>>
Graham Bummlespear - Thu, 16 Jun 2016 03:28:36 EST ID:sNl85PMl No.35745 Ignore Report Quick Reply
there's practically infinite documentation for UE4, anyone could build anything given the time.


Noob here,, pls halp by Shitting Buzzhall - Wed, 09 Mar 2016 00:45:58 EST ID:x5ghDxDG No.35288 Ignore Report Reply Quick Reply
File: 1457502358915.png -(19911B / 19.44KB, 734x343) Thumbnail displayed, click image for full size. 19911
Ok so, finally upgraded to windows 10, wanted to play games..

I installed the VBA10 (Gameboy emulator) app,, downloaded through the windows store (which is completely new to me)

After a drunken night of ragequitting and starting over, it seems in my fit I deleted the app.. both from my files and from the apps/programs list in my laptop's control panel. BUT not from the windows store.

Now I'm trying to reinstall it, but the windows store is the only place I find to download it,, there it says "this product is installed."
and when I press open nothing happens

I sent an email about this to their support guys but no reply after 3 days

what do I do, oh great techwizards?
>>
Rebecca Subblefuck - Wed, 09 Mar 2016 04:39:27 EST ID:EOjNoGEY No.35289 Ignore Report Quick Reply
>what do I do, oh great techwizards?

Stop downloading scamware emulators from the Windows store. They're just stealing code from better emulators that probably aren't on the store so they can show you ads.
>>
Frederick Ninningstut - Wed, 09 Mar 2016 07:04:23 EST ID:9Cqzi6g5 No.35290 Ignore Report Quick Reply
>>35289
well I don't connect to the web when I play so there's no ads.. but I do see your point.
any idea where I can find those "better emulators"? please?

I'm in india about to go on a 16 hour trainride without internet, and I want to play pokemon ;_;
>>
Rebecca Subblefuck - Wed, 09 Mar 2016 18:49:19 EST ID:EOjNoGEY No.35294 Ignore Report Quick Reply
>>35290
https://sourceforge.net/projects/vbam/

There are a million emulators. Google is your friend.
>>
Samuel Clongerchore - Sat, 11 Jun 2016 02:04:30 EST ID:i2yV/Gce No.35732 Ignore Report Quick Reply
B8/10


I started to hate certian aspects about OOP by Reuben Brookstock - Sat, 07 May 2016 11:58:08 EST ID:9QSfnS0r No.35569 Ignore Report Reply Quick Reply
File: 1462636688968.jpg -(155896B / 152.24KB, 977x1488) Thumbnail displayed, click image for full size. 155896
Things I hate when reading though other people's code in order to understand it:

  • Classes that only have no methods in them, one attribute and just inherent from a base class.
  • Large classes consisting of loads of comments, loads of methods which only consist of calls to other methods.
  • Getters/Setters for attributes that are set in the constructor.
  • Tiny classes that have no attributes but deeply inert from other classes
  • Abstract classes that are only inhered from once

  • honorable mention: When somebody talks about "SOLD" or "Uncle Bob"


The question is: What to do instead?
11 posts and 2 images omitted. Click Reply to view.
>>
Ian Fedgewell - Sun, 05 Jun 2016 11:35:51 EST ID:vIbiteGg No.35703 Ignore Report Quick Reply
>>35593
I've found that i have learned more about proper OOP from using scala than java or C++.
>>
Frederick Donnerchick - Wed, 08 Jun 2016 15:07:15 EST ID:5exQ7Ukm No.35716 Ignore Report Quick Reply
>>35703
Java and C++ are 2 of the worst languages to learn OOP from, trumped only by PHP.
>>
Wesley Fuckingson - Wed, 08 Jun 2016 16:28:38 EST ID:UbSntvr/ No.35718 Ignore Report Quick Reply
>>35703
>>35716
Huh? OO is a set of concepts, it's completely implementation independent.
>>
Esther Chebblepog - Thu, 09 Jun 2016 22:12:37 EST ID:vIbiteGg No.35724 Ignore Report Quick Reply
>>35718
How the language is designed facilitates different OOP practices.
>>
George Bonningdale - Fri, 10 Jun 2016 19:49:12 EST ID:R8vaJjX3 No.35731 Ignore Report Quick Reply
>>35718
Which set of concepts are you referring to?


Do It Yourself Career by Priscilla Fenderlock - Sun, 15 May 2016 21:04:28 EST ID:a2qE3/F5 No.35629 Ignore Report Reply Quick Reply
File: 1463360668560.jpg -(416769B / 407.00KB, 1920x1200) Thumbnail displayed, click image for full size. 416769
What are some realistic expectations for getting a career from learning to program yourself? How easy/hard?

Scenario is someone in their late 20s with a bachelor's in an unrelated field. I work in IT support.

I want to get my A+ certification on my own and then go from there but I'm more interested in learning programming.

Any milestones I should be aiming for? General advice?
4 posts omitted. Click Reply to view.
>>
Phineas Dobberlin - Thu, 19 May 2016 15:24:33 EST ID:9QSfnS0r No.35646 Ignore Report Quick Reply
I mean you could pick a topic, write software, put it on github then make it as useful as possible while you are learning.
Of course you have to do actual programming for that so it might not be your thing.

Sorry for the snark, but it cracks me up that large portion of the IT world now thinks you learn programming by memorizing design patterns and CS concepts instead of writing software that is useful.
>>
Tetragrammaton !!Gm+jdoM7 - Thu, 02 Jun 2016 23:21:19 EST ID:9X4Si/jy No.35690 Ignore Report Quick Reply
As someone who has run a small web firm and currently works at a larger one having only been writing code seriously for about a year and three quarters, web development is a gold mine. You can learn for free, get all kinds of jobs at any pay scale and work scale locally or online, make your own hours, and when you get better and have a solid portfolio you can hire on with an established firm making $50k a year with benefits. Extremely good career choice if you can drink lots of coffee and don't mind ruining your health by sitting and staring into a light box for 8 hours or more a day.
>>
Nigel Movingcocke - Sat, 04 Jun 2016 08:34:50 EST ID:J0cP3q/Q No.35699 Ignore Report Quick Reply
>>35690
If you really really think that method will work I will drop everything, work part time instead of fulltime and get a roomate. Tell me what to do with my life.
>>
Nell Grimhall - Tue, 07 Jun 2016 22:38:16 EST ID:c9gFFBFz No.35713 Ignore Report Quick Reply
>>35690
>web design
>good career

yeah okay. or you could learn real programming and make 100k+ per year. As an intern in college I was making $45 an hour working on pattern matching / machine learning for BLE wearables.
>>
Albert Fobblestut - Wed, 08 Jun 2016 12:50:51 EST ID:hLgfGbIj No.35714 Ignore Report Quick Reply
>>35713
Most real programmers probably make more than most web designers, but certainly aren't pulling in six figures.


hELLo by PHP same preview - Mon, 06 Jun 2016 18:21:11 EST ID:677AANqx No.35704 Ignore Report Reply Quick Reply
File: 1465251671801.jpg -(252410B / 246.49KB, 1920x1080) Thumbnail displayed, click image for full size. 252410
Hello, I'm programming this site in PHP (nette framework) and I've got a problem with FB previews. Althought all the title, keywords, preview images are set correctly, it always shows with Homepage data. I even look it up in source code, and everything is what it should be. Any experts that know what to do? I can provide more invo. I would really appreciate the help. I need to finish in a few hours. I do it for money and am not any good in php.
>>
PHP same preview - Mon, 06 Jun 2016 18:42:38 EST ID:677AANqx No.35705 Ignore Report Quick Reply
Edit: Skype shows everything correctly, FB not
>>
Edwin Lightdale - Mon, 06 Jun 2016 22:08:42 EST ID:/F8uz4kq No.35706 Ignore Report Quick Reply
Nobody knows what you're talking about.
>>
Eugene Billingshaw - Tue, 07 Jun 2016 14:19:09 EST ID:UbSntvr/ No.35711 Ignore Report Quick Reply
>>35706
Yea, it's gibberish.
I started to write a useful reply then got to
>I need to finish in a few hours.
lol
>>
Cedric Ferringdetch - Tue, 07 Jun 2016 21:01:59 EST ID:OL0r/8Kb No.35712 Ignore Report Quick Reply
Is there a live URL of the site we can look at?

Make sure the og:url meta tag is also different on each page. That's all I can think of.


Save file encrypter -feedback welcome by Stphan Floffingbridge - Fri, 15 Apr 2016 17:20:35 EST ID:SWJfiJ9j No.35491 Ignore Report Reply Quick Reply
File: 1460755235253.jpg -(55202B / 53.91KB, 480x480) Thumbnail displayed, click image for full size. 55202
Just a little thing I put together to discourage save-file editing. Any notes are appreciated.

import java.util.Random;
public class OpCrypter {
private static final int lock = 32;
public static String decryptString(String cryptoString){
cryptoString = cryptoString.replaceAll("[a-zA-z]", "&");
String[] crdata = cryptoString.split("&");
String decryptedString = "";
int key=0;
for(String line : crdata){
if(line.startsWith("@")){
key = Integer.parseInt(line.substring(1))/lock;
} else {
decryptedString+=getCharTable()[(Integer.parseInt(line)/key)];
Comment too long. Click here to view the full text.
10 posts omitted. Click Reply to view.
>>
Was ur Key Gen System Based Off My Post? - Fri, 27 May 2016 04:41:57 EST ID:+6d1kOO+ No.35666 Ignore Report Quick Reply
>>35491

function GenMedPass()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789.,/\?";

for( var i=0; i < 12; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));

password.value=(text);
}
function GenStrongPass()
{
var text = "";
Comment too long. Click here to view the full text.
>>
Eugene Duckville - Fri, 27 May 2016 15:28:41 EST ID:sLq6zDO/ No.35672 Ignore Report Quick Reply
>>35666
>possible.length
Fuck of BrU, you can't even do arrays right.
>>
Hugh Murdbury - Fri, 27 May 2016 18:09:16 EST ID:+6d1kOO+ No.35673 Ignore Report Quick Reply
>>35672
u cant even spell off right ;-0
>>
Nathaniel Blebberspear - Sun, 29 May 2016 15:27:07 EST ID:8bzTFDIQ No.35676 Ignore Report Quick Reply
1464550027972.jpg -(71795B / 70.11KB, 1300x918) Thumbnail displayed, click image for full size.
learn to use pastebin please
>>
John Havingfield - Mon, 30 May 2016 00:06:02 EST ID:znriAcds No.35677 Ignore Report Quick Reply
>>35491
>>int key = r.nextInt(9999)+99;
yeah just randomizing the key without saving it somewhere... that's gonna go smooth are you sure this ain't copy pasta code?


Twitterbot pointers? by Shit Bungold - Mon, 16 May 2016 10:29:03 EST ID:gxLmjRi7 No.35632 Ignore Report Reply Quick Reply
File: 1463408943784.gif -(46501B / 45.41KB, 382x380) Thumbnail displayed, click image for full size. 46501
Hello, total noob here.

I'm looking to set up a twitterbot, but the no coding required ones are just a touch too basic for what I'm trying to do, which is a sort of database one, wherein I can have a variety of posts with variables in them that can be pulled from a list, like:

(VarType1) text (VarType2) text (VarType3)
(VarType1) text (VarType3) text
(VarType1) text (VarType4) text (VarType2) text (VarType2)

Etcetc. The ones I've found are random words taken from columns in order which is not what I want.

I'm not asking for someone to build me the darn thing, just point me to what can teach me how to build this myself, or anything like that. Thank you in advance/apologies if this is the wrong place.

Pic unrelated.
>>
Basil Homblewell - Mon, 16 May 2016 19:39:30 EST ID:JhIhwAJD No.35634 Ignore Report Quick Reply
>>35632
What exactly do you need help with?

You probably want to start out with being able to post to twitter, you can do this by using their REST API
https://dev.twitter.com/rest/reference/post/statuses/update

After you can do that you need to be able to build your string for your tweet. From your description I am not quite sure what you want to do.
>>
Barnaby Criddleshit - Sat, 28 May 2016 08:33:43 EST ID:9QSfnS0r No.35674 Ignore Report Quick Reply
>>35632
I'd install a generic twitter bot, like this one:
https://github.com/rhiever/TwitterFollowBot

And then simply write a program to generate the strings to post yourself.

If you just want to get some words from a spreadsheet you can easily do this with the csv python library.


Cleaning a wordy script by OP - Sun, 22 May 2016 20:07:07 EST ID:A1ajpRPI No.35655 Ignore Report Reply Quick Reply
File: 1463962027732.jpg -(43722B / 42.70KB, 349x350) Thumbnail displayed, click image for full size. 43722
I apologize in advance is this is not the correct community for this.


Skippable intro: Been in a help desk role for some time and through turnover and other reasons I've slowly been adding more advanced tasks to my role. Now effectively in a hybrid help desk, Jr admin role I'm trying to earn my stripes by replacing a lot of tedious repetitive tasks with scripts. These scripts have generally been short, usually just a few lines. I've been using nagios to stay on top of things. Anything under sun basically. I'm seeing some messy scripting that could be a good opportunity to improve and get some muscle memory going.


I'm using this in a nagios check to check the status of printers throughout the office.

Right now, check runs fine, I just grabbed it off of the nagios exchange. This is for my own edification. I just see that as a chance to learn and every attempt to shorten scripts like this usually just becomes a messy waste of time that breaks the check.



Here it is:

#!/bin/bash
Comment too long. Click here to view the full text.
>>
Emma Depperdale - Sun, 22 May 2016 22:37:47 EST ID:YeHb+A49 No.35656 Ignore Report Quick Reply
>I just see that as a chance to learn and every attempt to shorten scripts like this usually just becomes a messy waste of time that breaks the check

That may be because short is an awful goal. Short is good for one liners, not complex scripts. What you really want is easily understood and not painful to maintain. And unfortunately, this is a shell script and there isn't much room for software engineering practices.
>>
Beatrice Mindlepudge - Thu, 26 May 2016 13:02:16 EST ID:mfkLzG/S No.35659 Ignore Report Quick Reply
Just review some style guides https://www.cs.cmu.edu/~112/notes/notes-style.html and see if you can write helper functions in awk instead of repeating lines or eliminate magic numbers.

You could rewrite that entire script in awk too https://www.amazon.ca/Unix-Programming-Environment-Brian-Kernighan/dp/013937681X that's a small book which basically taught me the proper way to write awk/shell scripts.


Bubble Sort Question by Edwin Sembleworth - Fri, 20 May 2016 22:47:48 EST ID:YfNtQmPq No.35650 Ignore Report Reply Quick Reply
File: 1463798868276.jpg -(101782B / 99.40KB, 920x299) Thumbnail displayed, click image for full size. 101782
I have a question about a Loop in C ++.
I know how to write a loop and do a bubble sort but it just fucking kills me that this loop I have written here doesn't have any letters but it knows to sort the names I input by alphabetical order. HOW THE FUCK DOES IT DO THAT?!

for (int i = 1; i <= stud; i++)

{

cout << "Please enter the name of student " << i << ". ";

cin >> name;

if (i == 1)

{
Comment too long. Click here to view the full text.
>>
Phineas Bardson - Sat, 21 May 2016 01:47:52 EST ID:4AC8OQBZ No.35651 Ignore Report Quick Reply
>>35650
It looks to me like it doesn't sort the names you enter in alphabetical order very well. It only sorts to the front of the list or to the end of the list, but never into the middle of the list.

So if you entered letters of the alphabet instead of full names, then you could enter:
Z, Y, X, W, V, U, ...
And it'd print the alphabet correctly forwards ("sorted").

However if you enter this sequence:
A, Z, B, X, C, Y, ...
It would not end up printing the alphabet in order (it would not be sorted).


<<Last Pages Next>>
0 1 2 3 4 5 6 7 8 9 10
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.