Programming

If I know C++, can I wing my OS course which is done purely in C?

Learn Programming - 5 hours 45 min ago

I've learned C++ as part of my Object Oriented Programming Course. I'll be taking an Operating System course next semester and the professor makes us do everything in C.

Will my knowledge in C++ alone be sufficient to do well in that course or should I take some time prior to starting the course to learn C concepts that are not covered in C++/ or is different in C++.

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

[C++] Integer comparison code works on my machines but not code submission website (Hackerrank)

Learn Programming - 5 hours 45 min ago

I have a solution for this problem: https://www.hackerrank.com/challenges/c-tutorial-functions/problem

I have the following code:

#include <iostream> #include <vector> #include <cstdio> using namespace std; int global_int; void vectorGenerator(){ vector<int> fourIntegers(4); for (vector<int>::size_type i = 0; i < 4; i++) { cin >> fourIntegers[i]; } for (vector<int>::size_type i = 0; i < 4; i++) { int x; if (fourIntegers[i]>=x) { x = fourIntegers[i]; global_int = x; } //else {;} } } int main() { vectorGenerator(); cout<< global_int; return 0; }

On my console (I use CLion) I get results like this:

/home/_____/CLionProjects/untitled3/cmake-build-debug/untitled3 1 23 1 3 23 Process finished with exit code 0

Hackerrank doesn't accept my answer. I was hoping someone could test the code on their machine so I can see if it's on their end or mine.

Also, if anyone would like to critique or improve the code, I'd greatly appreciate the feedback!

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

Similar sites to dev.to

Learn Programming - 6 hours 26 sec ago

Hello,

Are there similar sites to https://dev.to and that support Import posts from RSS feed and with automatic canonical URL inclusion and a text pointing to the original post?

Example of imported article with rss and automatic inclusion of canonical URL and a final reference to the original web site:

https://dev.to/mlisidoro/sharepoint-server-gets-modern-sharepoint-2019-is-here-194f

Thanks Miguel

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

Fastest way to create an xml file

Learn Programming - 6 hours 10 min ago

Hello guys, i was wondering what is the fastest way to make an xml file faster....i was trying to mess with the excel xml mapping but i couldnt export it.

here is an example of my xml file: Xml sample

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

Any good websites/tutorials to learn blockchains?

Learn Programming - 6 hours 29 min ago

Hi everyone.

I'm interested to know how one could learn/program block chains? It feels like a pretty new area in CS, seeing as it's difficult to find any tutorials or books to start learning.

Any ideas where I can get a good understanding and also the ability to program in this area?

Cheers

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

Just got into nandgame.com. One question though, how does one figure out how to solve them?

Learn Programming - 6 hours 51 min ago

I got stuck on XOR gate and a friend of mine solved it pretty instantly. How the hell do you figure out something like that?

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

Why won't this shit import?? [Python]

Learn Programming - 6 hours 55 min ago

I'm trying to import the package SpeechRecognition. I installed it via PyCharm, and they link it to this url.

In that doc, they recommend using

import speech_recognition as sr

But when I do, I get

ImportError: No module named 'speech_recognition'

But it doesn't underline the module name in red, as it does when I use

import SpeechRecognition as sr

which returns the same error.

Am I goofing something basic here, or is my interpreter being janky?

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

Need help with HTML5 class project

Learn Programming - 7 hours 52 min ago

So I am recently learning HTML5 and we are heading into CSS, my issue is my second project my professor said my structure wasn't perfect yet... I don't understand how to structure html, I am just so lost ;__; Everytime I go to fix what he has told me I am missing I go to validate it and it shows me more things are wrong..

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

How do you code a vst plugin (just effects) on visual studio?

Learn Programming - 7 hours 59 min ago

I have some experience in c++ OOP and have tried to look online for good tutorials but cant find any. I'm running on a windows. If anyone could point me in the right direction that would be great, thanks.

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

Self-taught battle, am I drowning myself chasing an unobtainable dream

Learn Programming - 8 hours 18 min ago

I wanted to go to college for software development but that wasn't in the cards for me. So at the age of 30 (2 years ago) I took the self-taught journey when I stumbled across Unity and their tutorials. I felt like they weren't teaching c# but instead telling you what to do. I thought web development would be an easier start that could lead to a career or freelance, then I could move into mobile / android development, possibly game development later. I made a number of web pages but it wasn't getting me anywhere.

I started with free code camp, moved to codecademy, udemy, and now Udacity. I focused mainly on front-end, dabbled in a little bit of android, but couldn't even land a remote customer support role. I recently started the computer science course at udacity which teaches python.

Are there better resources, should I take a different direction, is my resume with a labor work experience cursing me. I've been looking for more remote option since both major tech cities in Texas are 70 - 100 miles away.

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

[Java] Why are Hash/TreeSets and Hash/TreeMaps objects stored in Set and Map variables?

Learn Programming - 8 hours 34 min ago

My textbook says that HashSet and TreeSet object references are stored in Set variables and HashMap and TreeMap object references are stored in Map variables, e. g.,

Set<String> names = new HashSet<>();

Map<String, Color> favoriteColors = new HashMap<>();

Why is this the case and not the following?

HashSet<String> names = new HashSet<>();

HashMap<String, Color> favoriteColors = new HashMap<>();

The textbook doesn't say anything, and I can't seem to find an answer online.

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

Java: How can I find the most common words in a text file without using Maps?

Learn Programming - 8 hours 39 min ago

I have tried using adding each word in the file into an ArrayList using

list.add(scan.next())

But now I have an ArrayList with a thousand+ elements and I don't know how to iterate through each one and see which words are the most common. If I was searching for how often a specific word was appearing I could just make a counter but that obviously wouldn't work here. I am trying to do this WITHOUT using a map because of how much easier it would make it.

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

Pages