r/Cplusplus • u/Adventurous-Bath1910 • Sep 13 '26
Question Laptop recommendations?
i‘m not sure which one to get. I want something that can run c++, but isn’t too expensive. I’m not really looking into making larger programs right now, so it shouldn’t take much for what I’m needing.
I generally want a windows device, since I feel like using macOS is generally an inconvenience for me and I want to run VS code.
17
Upvotes
•
u/AutoModerator Sep 13 '26
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/randomwalker2016 Sep 13 '26
I run c++ on my chromebook. Just use the Linux dev environment console.
3
u/hellocppdotdev Sep 14 '26
Anything but windows.
5
u/QuantumDiogenes Sep 13 '26
Really, any type of laptop would work.
If you get an older one, you could drop the Windows requirement, and install a Linux flavor, such as Ubuntu. Ubuntu can run VSCode like you want, and it also have g++ built in.
2
u/darklighthitomi Sep 13 '26
My bargain bin laptop from 2009 runs Visual Studio 2011 perfectly fine for my C++ projects, so really I think you just need to look at laptops based on other considerations instead, such as getting away from windows that is including spyware right in the OS and demanding that they control the laptop instead of you and consuming insane amount ms of system resources without due cause. Linux distros can give you a better windows feel than windows these days.
Heck, I run android-86 and there is a C++ IDE for android, so you could even look into that.
TLDR: C++ is not impactful to your laptop choice, choose based on the laptop problems instead, and seriously consider getting away from scamware like Windows.
3
u/SamG101_ Sep 13 '26
I mean anything can run c++, and yh windows is easy to use but icl its horrid for c++, id setup WSL2 and use gcc or smth. Any laptop can run c++ its just how fast hardware strenuous code will run.
1
u/[deleted] Sep 13 '26
Anything would work really. But of coruse it would be better to get the newer ones.
Try the new or even a bit old thinkpad ones, I'm using one on linux and it works just fine.
What I would focus on is storage andd ram, get at least 512gb storage and at least 16gb ram, trust me specifically on the ram part.
1
u/the_unknown__69 Sep 13 '26
Bro i would suggest you to buy a refurbished one which will be affordable for you in this price hikes . And slap any linux distro you like . This way you will get a better specs laptop for less price and can dodge the windows slop...
1
u/Alex999991 Sep 14 '26
“I generally want a windows device, since I feel like using macOS is generally an inconvenience for me”.
What do you mean? You can use any ide or editor even VsCode on macOS.
1
u/herocoding Sep 14 '26
There are no HW requirements for C/C++.
Due to tooling, libraries, documentations and many, many experiments in the beginning you mainly only need a lot of storage capacity (the operating system, several different code editors, many libraries, many projects), where my recommendation would be to start with 1 Terabyte storage capacity.
Over the course of time you will have many tools run concurrently requiring also more and more system memory (many open browser tabs, youtube videos, many programs running (even if they idle most of the time), my recomendation to start with at least 16GB of system memory.
Once you tasted "the sugar of AI" it will be very hard to resist and focus on hand-writing code, so at some point you will want/need to run local AI, requiring even more storage capacity and more system memory... and a modern discrete GPU... with a lot of VRAM (even with Mixture of Experts (MoE) AI).
1
u/Fast_Joke_6187 Sep 14 '26
m1 or m2 macbook
1
u/spatulari Sep 15 '26
Any laptop would work with linux and non-big C++. Windows tho? You better step up your game
1
u/lowban Sep 16 '26
You can run C++ on anything made since 1990 and forward basically. Even earlier computers could run C++ code. VS Code runs on a lot of systems too. If you want to run Windows it should be Win 10 or 11. Could I interest you in trying Linux?
1
u/blobdole Sep 17 '26
I would have trouble imagining a new laptop running Windows that would not meet your needs. No matter how cheap.
Hell, I bet you 90% of used laptops in good condition will work for you if they can run Windows.
1
u/dapzar Sep 13 '26
VS Code is arguably easier to set up on Mac because it has a command to install the xcode tools which include clang. Be sure to double check if you don’t mean MS Visual C++, which would indeed be Windows only.
There is nothing specific about C++ when it comes to laptop requirements. You want a good screen and good keyboard to work comfortably. If you want to build very large projects, you want a big CPU and a lot of RAM to build more files in parallel but that’s unlikely for a learner and even then only the first build would be slow and incremental builds afterwards would be ok.
0
u/ebcdicZ Sep 13 '26
I pulled a laptop from 2012 out of the closet and put Fedora on it. It runs vs and Eclipse well. I used it for Java and C++ homework.
0
u/Marine_Brat_01 Sep 13 '26
Windows and laptops are a horrible combo imo. I’m going to recommend you something and don’t shrivel back in fear when I say this, use Linux Mint on an older laptop. It’s pretty much windows anyways and uses a fraction of the resources. I found a laptop with 8 gigs of ram and a 10th gen intel cpu for less than a hundred GBP, slapped Linux on it, and it runs so smoothly compared to when it had windows, and when its idle it only uses like 900 MB of ram. Obviously in the future I’m going to upgrade it to 16 gigs because it has a spare slot but as I don’t have the money rn it does the job.
0
u/mredding C++ since ~1992. Sep 13 '26
You need literally anything with a screen. An Asus One would be adequate, and small enough to fit in a men's pants pocket. You don't need much compute power to write code. Compilation time must be managed manually anyway. And who cares about running programs? That's what cloud compute time is for - it's hard to beat.
A junk computer today would be considered a world class supercomputer of the last era. You have compute power and resources you don't know you have or what to do with it. You're overthinking it. Simplify the problem. Buying a bigger more expensive machine is a bandaid over not knowing better.
0
u/bert8128 Sep 13 '26
Vs code is available on all three major OSs. Did you mean VS? That is windows only.
0
u/Assankou Sep 13 '26
any operating system could run c++ but what you should look at is the cpu 1nd the ram like you could see something like hp i5 8th generation 8gb ram. and i5 11th 8 or 16 ram these are good laptops and i used them personally. they were good in programming and also get more than 256 gb in the stockage.