• Breaking News

    Tuesday, March 17, 2020

    Recently started to learn code. Want to build a website. Have a few questions. learn programming

    Recently started to learn code. Want to build a website. Have a few questions. learn programming


    Recently started to learn code. Want to build a website. Have a few questions.

    Posted: 17 Mar 2020 11:17 AM PDT

    So I finished the c++ course on sololearn and I'm not saying I'm ready to tackle the field just yet, but I want to start a project and learn more as I go. People say sololearn doesn't teach problem solving but it has for me. Whenever I get stuck I can go back to a point in the course and I am able to fix any errors in my code. But I have a great idea for a direct to fan website. I don't want to do the whole backend with c++ but I also want to learn JavaScript, Python, Node.js and Use react as well. I know I have a lot of learning to do, but Im new to all of this and I am willing to learn more as I work on my project. I may have some really NOOB questions.

    1. Is there a software or compiler that is able to divide back-end and Front-end and show you real-time results as you run code so you can see your progress?

    2. Is HTML or Javascript better for front end web designing or can I use both. How does/Can one mix two languages and run a successful program as I've only ever worked with c++.

    3. This is like the second and first question but how can I compact/run many languages at once and run a successful program, or is everything written in separate compilers and brought together at the end in some fancy way?

    I know these things may sound stupid to ask but I really want to hurry and hit the field with this. Sorry if any of this sounds ignorant.

    submitted by /u/thatboul1000
    [link] [comments]

    Computer Science Fundamentals for a Self-learner?

    Posted: 17 Mar 2020 09:50 PM PDT

    Background: I work at Google as a datacenter technician. I recently applied and was accepted into a program that allows me to sit as a full-time Site Reliability Engineer (SRE) at Google (for career growth and development) for six months. I've been programming as a hobby for ~10 years now, but have never received formal education (all self-learned).

    I've managed to stay somewhat above water in the new role, and am certainly learning a lot through trial by fire, but my biggest weakness is my lack of formal training. As a self-learner for the past 10 years, almost every class, tutorial, article, etc. I've consumed has almost always skipped over many fundamental computer science topics. My most recent find was Big O notation - something I'm just now hearing about and is something that is taught very early on in computer science education.

    This leads to my question: what are some good resources for someone who is not new to programming but is interested in learning some CS fundamentals? It feels like books that teach you syntax and basic problem-solving are a dime a dozen, but anything more complicated than that seems to be hard to come by. I would love to hear what has worked for other self-learners who found themselves in this predicament.

    submitted by /u/aliasxneo
    [link] [comments]

    Learning python

    Posted: 17 Mar 2020 06:18 PM PDT

    Hey, after the covid 19 breakout I got some time to learn how programming works. Is someone interested to learn with me python in the next months together ? I am a beginner and would like to start with another beginner, so we can start with the basics and work us through the concepts. We can watch similar tutorials and discuss concepts when needed. (I would like to spend 3 hours a week on learning).

    Would be awesome if you are my age around 25 years old. I am a native german speaker.

    submitted by /u/WantToLearnBulgarian
    [link] [comments]

    Got problems understanding how to prove correctness of my bubble sort with loop invariant technique

    Posted: 17 Mar 2020 04:06 AM PDT

    Hi, as I said in the title I don't know how to prove the correctness of my bubble sort algorithm with the loop invariant technique.

    Here is the pseudocode:

    #A is an array of integers swap = true while swap do: swap = false for i=1 to lenght(A)-1 do: if A[i] > A[i+1] do: swap = true exchange A[i] with A[i+1] 

    So I know I could write the algorithm with two for cycles, but I like the fact that I came up with this version, but as I said before I don't know how to prove its correctness. Not asking for a solution, just a hint.Thanks

    submitted by /u/NihmarOfRivia
    [link] [comments]

    Looking for MVC Projects to do during self isolation. Any step by step guides would be really appreciated!

    Posted: 17 Mar 2020 07:16 AM PDT

    Hello,

    I have recently completed a pretty intensive coding bootcamp where I completed several projects including three MVC web apps. I am looking for projects to work on to add to my portfolio while my area is shut down. My preference would be for step by step online courses or books. Anything involving JavaScript, C#, .NET/.NET Core, MVC, etc. would be my preference since I am really trying to sharpen my skills with MVC.

    I do not mind paying for resources, so if you know if an ebook, print book, online course, etc. that costs money, I am very open to paying for good content.

    I should also add that I have several years of experience doing front end development so I am really looking to focus on back end skills with my next project.

    submitted by /u/grapplesinstereo
    [link] [comments]

    Advice on How to Create simple Web App in Java

    Posted: 17 Mar 2020 11:31 AM PDT

    Hello all,

    I have a Java Swing application that stores post-game statistics into a database. This has worked very well, but I currently only have one gripe. That being the lack of ability to view that information in a nice way on any machine.

    To solve this, I have looked into developing a local web-page that pulls data from one Database View into a table on the web-page. Since I coded my app using Java, I would like to continue using Java to create this simple page. However, this has proven a difficult area to get started.

    I was hoping someone here would be able to provide me a resource to get this done as quick as possible. Also, if this could be done quicker and more simply using a different language / framework I would be open to exploring this.

    submitted by /u/JaysHF
    [link] [comments]

    Tools needed to be a Data Analyst (Marketing)

    Posted: 17 Mar 2020 09:07 PM PDT

    Hello friends.

    I feel like this need not be sad but the pandemic we are currently facing has put a lot of people out of work. To give context, I work in media as a video editor; without there being a steady amount of work coming in, there is going to be less and less work for me...something that I have built over the course of 6 years in my career. I digress, but my back is up against the wall and I need an exit strategy that is going to allow me to earn a decent living and put me back to work (even if that means WFH).

    I landed on data analytics as a career change because I am actually graduate of my local Economics program over at uni. This course of study does include an introduction to calculus with a more in depth review of statistics (since a lot of the models used in upper division classes have statistics used).
    In my career, I have edited a lot of projects that are used for short form video marketing. Since I am so close to the marketing departments anyways, I feel like I could leverage the connections that I have in the hopes that I could transition into data analytics with ease.

    With the research that I have done over the course of a few weeks, I have came to the conclusion that I will need SQL, Python, and Excel in my toolkit. Luckily I just need a refresh on my Excel macros, but as for the other 2 I am going to need some serious work to focus on them and learn as best as I can. My main question for any and all data analtsts out there is...how are these tools being implemented at your job? Sure, one could easily reach the conclusion that they collect and organize data, but exactly how these tools are gathering that information is what really baffles me.

    If I was with a company that sells action figures (for example), am I tracking the ages/genders of the consumer base? How many sells at what price? How our competitors are doing relatively? It seems like there are a lot of questions to answer from the outside looking in, so being able to be pointed in the right direction is really going to help out a lot.

    Side note: I know that I am not the only one in this boat and I am trying my best to learn as efficiently and quickly as possible. Just want to put out as much positive energy out there and let everyone else know that you aren't the only ones out there struggling as the economy starts to slow down quite rapidly. Getting a career related to programming is going to be an option for a few other folks out there, so lets do our best to be positive and encourage one another as we try to keep ourselves afloat! :)

    submitted by /u/Jcovable
    [link] [comments]

    Anyone using vanilla vim as their primary text editor for programming?

    Posted: 17 Mar 2020 12:18 PM PDT

    By "vanilla", I mean no plugins, extensions and such. I met a person doing C programming in vim, without a .vimrc configuration file. That person does it daily and works on a pretty big project.

    I guess she is not the only person who does that. I know it's personal preference. Is there anyone else doing it in the same manner?

    submitted by /u/real_abc
    [link] [comments]

    Learning C++

    Posted: 17 Mar 2020 09:24 PM PDT

    I have grasp fundamental knowledge about C++, And I would like to create a desktop application. So far, I have only ran my programs through a cmd prompt. Can somebody provide me resources on how to create a a desktop application?

    submitted by /u/thisismaw
    [link] [comments]

    Learning RubyOnRails

    Posted: 17 Mar 2020 11:48 PM PDT

    Hi! Tomorrow i will start in a RoR project (mobile application), i don't have much knowledge of Ruby, where i could learn this language/framework? Any websites or resources i'll be appreciate it 😊

    submitted by /u/Giukan
    [link] [comments]

    Backup for computer scientists

    Posted: 17 Mar 2020 05:43 PM PDT

    I've been coding for a good number of years now. And recently I had the tradgidy of losing a lot of my work.

    Most of it has been recovered from various sources. But that was a pain.

    I have used just windows standard backups before. But because I had things in the c drive. It didnt catch any of that.

    What do you guys trust to properly back up a computer?

    submitted by /u/AbyssalRemark
    [link] [comments]

    Python stripping accents on strings held in lists/dic

    Posted: 17 Mar 2020 11:31 PM PDT

    Hi. I'm preparing textual training data in Spanish for a ML pipeline in python3. I am trying to understand what's going on with characters in my data that have accents. The file is taken from the BYU corpus, it is originally in `latin-1` encoding but I converted the file to `utf-8` with iconv on the command line. This is my code:

    # initialize dict where key is class and values are lists of training # tokens corresponding to that class nouns = {} POSTAGS = ['ld-fs', 'ld-ms', 'ld-fp', 'ld-mp', 'nms', 'nmp', 'nfs', 'nfp'] for postag in POSTAGS: nouns[postag] = [] # initialize accepted character set and normalize to nfkd charset = ['j', 'd', 'w','ò', 'í','i', 'Ó','ì','p','W', 'h','g', 'ù', 'X', 'R', 'è','n','b', 'N', '¡', 'B','L', 'Ñ','ç', 'ø', 'D', 'Ú', 'â', 'é', 'u', 'E', 'A', 'z', 'V', 'r','ö', 't', 'F','á', 'ã' 'f', 'I','Z', 'Ü','m','C','v', 'ë','H','G','ó', 'J', 'Y', 'P', 'M', 'y', 'S', '×', 'U', 'Ö','Â', 'ü', 'q', 'Ã', 'x', 'É','Ù', 'Q', 'k', 'e','ú', 's', 'a', 'o','K', 'c', 'Á','à', 'ñ', 'Í', 'T',] all_letters = unicodedata.normalize('NFKC', ''.join(sorted(charset))) # normalize function that also removes unaccepted characters def normalize(s): normalized = [] for c in s: c = unicodedata.normalize('NFKC', c) if c in all_letters: normalized.append(c) return ''.join(normalized) # read in training data and populate training dict (handful of lines are illformed) with open('/home/xxxxx/byu_span/span_100k.uni.txt') as f: for line in f: try: columns = line.strip().split('\t') pos = columns[3] word = normalize(columns[1]) if pos in POSTAGS: nouns[pos].append(word) except IndexError: continue 

    My issue is that when I print some of the tokens in the resultant dictionary `nouns` , none of the tokens have any accents (which are there in the original file, and when I add debug print statements in my for loop that populates the dictionary).

    print(nouns['nmp'][0]) # outputs: "anos", but should be "años" 

    I've read that printing lists of strings uses `repr` and defaults to ascii characters and thus will strip accents, but this behavior does not happen when I initialize lists in my notebook. I'm also wondering if its because I am storing these strings in lists, themselves within dicts. '

    Why are my accents being stripped?

    Are they actually stripped, or is this a side effect of printing in the notebook?

    Thanks!

    submitted by /u/--bromandude--
    [link] [comments]

    [Java] Having Trouble Replacing Image On an Existing JFrame Window

    Posted: 17 Mar 2020 11:30 PM PDT

    Hello. I have just started to learn to program in Java. I am trying to replace the GIF in an existing JFrame window, but every time I call the draw method in a different class, the program opens another window instead of replacing the GIF in the existing window. Here are the codes:

    import java.awt.*; 

    import java.awt.BorderLayout; import javax.swing.*; import javax.swing.JFrame; import javax.swing.ImageIcon;

    public class FrostyCanvas extends JFrame 

    { /** * */ private static final long serialVersionUID = 1L; JPanel contentPane; JLabel imageLabel = new JLabel();

    public FrostyCanvas(String imageName) { try { setDefaultCloseOperation(EXIT_ON_CLOSE); contentPane = (JPanel) getContentPane(); contentPane.setLayout(new BorderLayout()); setSize(new Dimension(600, 600)); setTitle("FrostySpirit v0.1 - FrostyCanvas"); // add the image label ImageIcon ii = new ImageIcon(this.getClass().getResource(imageName)); imageLabel.setIcon(ii); contentPane.add(imageLabel, java.awt.BorderLayout.CENTER); // display target GIF this.setLocationRelativeTo(null); this.setVisible(true); } catch (Exception exception) { exception.printStackTrace(); } }

    This is how I call it in the main method in a different class:

    new FrostyCanvas("raw.gif"); 

    Doing so does output the GIF correctly, but I could not figure out how to replace the GIF in the window. Calling FrosyCanvas with a different file name just opens another window. If anyone knows the solution, please help. Thank you!

    submitted by /u/Thunderz2016
    [link] [comments]

    Modifying a field involved in the total order of a linked list - how to trigger the reinsertion?

    Posted: 17 Mar 2020 07:40 PM PDT

    Say I have a sorted linked list class and a node class in the same package but as standalone with no inheritance. Suppose the linked list is your standard fare:

    class LinkedList Node: first insert() delete() find() class Node Node: next int data getData() setData() compareTo() ... 

    My solution to preserving the total order was a manual reinsert of the Node object using a LinkedList.reinsert(node) function that the client must call after any update to the node.

    What if instead I wanted any update in setData() to trigger a reinsert automatically? How would I go about doing that?

    submitted by /u/FxckYourGod
    [link] [comments]

    Finished reading up to the "additional topics" section of CLRS. Should I finish the book?

    Posted: 17 Mar 2020 11:17 PM PDT

    I'm not really studying "for" anything in particular, atm I'm already working fulltime writing code, but I want to make up for not having done a CS major (I did math instead). So I started reading CLRS in January and slowly getting through it (I haven't skipped anything except for the proof of the master theorem because that seemed incredibly boring & unimportant, but I'm not doing any exercises). Should I finish it? Or pick and choose chapters? If so what chapters?

    I already read Sipser except for the additional topics part there so I'll probably not read the np-completeness discussions again, but the rest seems like stuff I don't know yet (I did linear programming & RSA in linal but that was soooooooo many years ago that I remember nothing).

    So considering it'd probably take me another full month to finish, is it worth it to read the entire thing? Or should I skip around? Or stop now and read something else next? I definitely have other stuff I could switch to, but if this is worthwhile to finish I'll do it (even if just to say I did haha)

    submitted by /u/RheingoldRiver
    [link] [comments]

    How to think like a programer?

    Posted: 17 Mar 2020 02:00 PM PDT

    Hello guys,

    i´ve been doing Jonas java script complete course on udemy and was doing fine until the budgety app building started.

    i know all the concepts that he is using as they were all taught in the course, but the way we put everything together in order to create the app just seems waaaay out of my league, while i understand them, i couldn't even begin to think how to do all these function closures to work together in order to build this app?

    I feel overwhelmed with all of this, and starting to think i might not be smart enough for this..

    Thank you!

    submitted by /u/Nunoc11
    [link] [comments]

    Modern GUI Application Structure

    Posted: 17 Mar 2020 10:15 PM PDT

    I have a bit of an open ended question about the structure of how a lot of newer GUI libraries/implementations work.

    As a preface, I have been programming for quite a while, but am pretty much 100% self taught, making small scale programs for fun and occasionally selling them to people locally. Pretty much all of my experience is in Java, but am currently expanding into other languages like C# and JS. My point is that I have no real concept on conventions are in the actual programming community.

    Bear with me, there is going to be a lot of context for this question.

    Most of the GUIs I've created have used Swing as it was the first GUI library I learned. I am very familiar and comfortable with it even though I know it is very outdated.

    I've grown accustomed to the structural freedom that Swing gives me. For most of my programs I've adopted an program flow that keeps the logic of a program separate from the GUI, with the GUI acting only as a controller. This takes the form of me creating an abstract "Controller" class that the logic side of the program interfaces with, which I then extend to create Console interfaces, GUIs, Controls over Sockets and AI controllers for games.

    For example, see the structure of a quick Tic Tac Toe program I created the other day with Java:

    This game class handles all the logic of the Game. The inner workings are irrelevant but for context all of the game data is stored in a Board class, with the game prompting moves from controllers and sending board data back each turn.

    public class Game { private Controller x; private Controller o; public Game(Controller x, Controller o) { this.x = x; this.o = o; } public void play() { while(x.readyToStart() && o.readyToStart()) { Board board = new Board(); updateControllers(board); Team turn = Team.X; while(!board.isOver()) { if(turn == Team.X) { board.place(Team.X, x.promptMove()); turn = Team.O; } else { board.place(Team.O, o.promptMove()); turn = Team.X; } updateControllers(board); } Team result = board.getResult(); x.gameOver(result); o.gameOver(result); } } private void updateControllers(Board board) { x.updateBoardData(board); o.updateBoardData(board); } 

    Now here is the definition of my Controller class

    public abstract class Controller { private Team team; public Controller(Team team) { this.team = team; } public Team getTeam() { return team; } public abstract void updateBoardData(Board board); public abstract Position promptMove(); public abstract void gameOver(Team result); public abstract boolean readyToStart(); } 

    And the definition of my GUI class, extending Controller. For reference, a GamePanel is an extension of a JPanel that displays a tic tac toe board and uses synchronization to take user inputs when requested by the Game class.

    public class UI extends Controller { private boolean readyToPlay; private JFrame frame; private GamePanel gamePanel; public UI(Team team) { super(team); this.readyToPlay = true; this.frame = new JFrame(); this.gamePanel = new GamePanel(); init(); } @Override public void updateBoardData(Board board) { gamePanel.updateBoardData(board); } @Override public Position promptMove() { return gamePanel.promptTileChoice(); } private void init() { EventQueue.invokeLater(() -> { frame.setContentPane(gamePanel); frame.setTitle("Tic Tac Toe"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setSize(500, 500); frame.setVisible(true); }); } @Override public void gameOver(Team result) { int option = JOptionPane.showConfirmDialog(frame, "Winner: " + result + "\nWould you like to play again?", "Game Over", JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE); if(option != JOptionPane.YES_OPTION) { readyToPlay = false; System.exit(0); } } @Override public boolean readyToStart() { return readyToPlay; } } 

    So where am I going with this?

    Now that I am expanding into more and more languages, I'm finding that most of the modern GUI libraries do not easily allow this sort of structuring. I can't exactly put it into words, but for example: JavaFX, WPF, Xamarin.mac and Cocoa all seem to want to "own" the "Main" part of the program. Rather than having the control separate from the program, it seems to me that the control aspect (GUI) is the program. Now I haven't exactly learned any of these libraries to the extent that I know swing, so I guess my question/questions are:

    What are the benefits of having these GUI libraries structured this way? - Do these implementations solve problems in larger projects that I just haven't come across?

    Is there a way to implement things in the way that I know and prefer with these modern libraries? - If not, do I need to throw away my own way of thinking about GUIs and embrace theirs?

    submitted by /u/solcharley
    [link] [comments]

    error when installing opencv through console

    Posted: 17 Mar 2020 09:38 PM PDT

    In the image below. I keep getting stuck at 30% when trying to install opencv through console. I'm installing it through a virtual ubuntu machine

    https://i.imgur.com/hKTYUHo.png

    submitted by /u/2kfan
    [link] [comments]

    Help with my postgresql double-entry accounting implementation -- how to insert new postings

    Posted: 17 Mar 2020 09:11 PM PDT

    I'm working on an open-source inventory-tracking system for a small community-supported agriculture company. I've worked briefly with SQL before, but this my first attempt at a large-scale system and I'm learning by chewing through the postgresql manual as I go. I realize that this is probably patently insane, but the poor bastards were keeping it all in Google Sheets before and it was just too horrific to allow. The resultant code will be released under an open-source license.

    I've put something together based on double-entry accounting to help track the flow of planted, harvested, and sold products between our growers, inventory, and clients, largely based on this and this. The bit I'm having trouble with at the moment is how to handle the creation of new transactions in a safe way.

    Here's the code used to create the database (and the sum total of what I have so far):

    CREATE SCHEMA accounting; -- an owner is the entity who holds one or more accounts. CREATE TABLE accounting.owners ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE, ownerType VARCHAR(8) NOT NULL CHECK (ownerType = 'internal' OR ownerType = 'grower' OR ownerType = 'client'), street VARCHAR(100), city VARCHAR(50), state VARCHAR(2), zip VARCHAR(5), phone VARCHAR(10) UNIQUE, email VARCHAR(50) UNIQUE, ); -- an account is an entity to which an amount of product may be transferred. CREATE TABLE accounting.accounts ( name VARCHAR(20), ownerID VARCHAR(20) REFERENCES accounting.owner(id), PRIMARY KEY (name, ownerID) ); -- transactions table: -- This table serves to group postings into logical units. -- Each transaction is associated with one or more postings. -- The sum total of each transaction must always equal zero for that transaction to be valid. CREATE TABLE accounting.transactions ( id SERIAL PRIMARY KEY, commitTime TIMESTAMP DEFAULT LOCALTIMESTAMP, transactionType VARCHAR(20) NOT NULL, ); -- postings table: -- Each posting represents a singular debit or credit to a particular account CREATE TABLE accounting.postings ( id SERIAL PRIMARY KEY, transactionID INTEGER NOT NULL REFERENCES accounting.transactions(id) ON DELETE RESTRICT, accountID VARCHAR NOT NULL REFERENCES accounting.accounts(name) ON DELETE RESTRICT, accountingPeriod INTEGER NOT NULL CHECK (accountingPeriod >= 1), productID INTEGER NOT NULL REFERENCES accounting.products(id) ON DELETE RESTRICT, quantity INTEGER NOT NULL CHECK (quantity > 0), ); -- a product (in this case, a plant and its associated growing data) CREATE TABLE products ( id SERIAL PRIMARY KEY, name VARCHAR(50) NOT NULL UNIQUE, productType VARCHAR(50) NOT NULL, -- this could probably stand to be a more complex entity -- represented by some sort of hierarchy -- (greens->herbs or greens->leafy greens, etc.) salesUnit VARCHAR(20) NOT NULL, daysToMaturity INTEGER NOT NULL CHECK (daysToMaturity > 0), ); -- ... 

    The transactions table serves to group postings entries together into whole units of work, per the first link. However, they also stipulate that the program's logic should not permit an incomplete transaction. It seems to me, though, that an incomplete transaction would be required in order to enter a set of postings. To the best of my knowledge, one would have to insert a new entry in the transactions table before one can successfully insert anything into the postings table. How do I approach this? Also, is it better to implement the insertion code within the database itself? Or is it best to keep that in the application code?

    submitted by /u/Inquisitive_Kitmouse
    [link] [comments]

    Why does this get this answer?

    Posted: 17 Mar 2020 09:10 PM PDT

    int i = 5, j = 10, k = 1;

    (k += 3*--i) - j++;

    i becomes 4

    j becomes 11

    k becomes 13

    I understand that k adds 3*4. But why j become 11 and no other changes?

    Why does - j++ not affect i or j at all?

    That subtraction appears to not affect the bracketed content at all. Why is that?

    submitted by /u/myfeedconsumption
    [link] [comments]

    Is it a good idea to ignore the country code when implementing localization?

    Posted: 17 Mar 2020 08:58 PM PDT

    I'm using jquery.i18n library to implement localization in my website. I'm currently using javascript to read the browser current localization settings (language code) and pass it to the library and it will fetch the localization strings from a JSON based on the browser settings.

    So if the user is configured to US English, it will try to find en-US.json. If the user is configured to GB English, it will try to find en-GB.json. However, this is tedious since the amount of language-country combination that needs to be considered is a lot.

    Hence, I'm thinking of ignoring the country code and match only with the language code. Is this a good idea?

    submitted by /u/nyamuk91
    [link] [comments]

    Hello i want to ask question

    Posted: 17 Mar 2020 08:46 PM PDT

    My question is i have learnt java and i want to learn android dev so i want to learn it from a good source and i have no money so i need a free site or method to take a very good course for it

    Sry for my bad English And thanks very much

    submitted by /u/omarelhareef
    [link] [comments]

    Unity 2d Follow a Particle

    Posted: 17 Mar 2020 08:30 PM PDT

    Hello, i don't have any code to fix, i just cannot figure out a way to follow a particle, there isn't any way to add 2d lights to a particle and i want to make a 2d light follow a particle and simulate the particle for emiting a light, or something like that.

    Is there any method to get the particle position? not a particle system position, the particles of a particle system's position.

    submitted by /u/tdk779
    [link] [comments]

    Visual Studio Code SFML/Graphics.hpp not found error

    Posted: 17 Mar 2020 12:54 PM PDT

    I am on MacOS Catalina using Visual Studio Code (C, C++ extension by Microsoft) and the Code Runner Extension. Compiler is clang. I was coding a game using C++ and I get the error "main.cpp:1:10: fatal error: 'SFML/Graphics.hpp' file not found". My code is https://ideone.com/9Pk5g3 and my configuration & the error can be found here https://imgur.com/a/C5bLSZ9. Please guide me as to how I can fix this.

    submitted by /u/Better-Builder
    [link] [comments]

    how can i maintain consistency towards learning c++ on my own everyday?

    Posted: 17 Mar 2020 08:21 PM PDT

    I already took data structures as a college student. But, since I don't have any cs courses this semester. How can i motivate myself to put an effort to learn more regarding algorithms and improve my programming skills every day? Thank you in advance.

    submitted by /u/Magma02
    [link] [comments]

    No comments:

    Post a Comment