#learn c program
Explore tagged Tumblr posts
python-programming-language 2 years ago
Text
Post #83: Tumblr Opinion Poll by Python-Programming-Language, Question: Which programming resp. script language do you prefer?, 2023.
211 notes View notes
king-fae 1 year ago
Text
1/100 days of code.
12.22.23
i have started of this challenge by learning C++ through MIT's open course Introduction to C++ found here, where i studied the first lecture and read through the second. this course is designed to be completed in a 4 week term, but depending on my availability, it may stretch as i take breaks from it specifically, and then circle back on coursework to retain information learned. we shall see
#include
using namespace std;
.
int main(){
.....cout<<"Hello, world!\n";
.....return 0;
}
Tumblr media
60 notes View notes
miquerinus 2 years ago
Text
Why Does C++ Run Faster?
Tumblr media
Java, C#, or Python do not generate native code. Instead, they compile source code into an intermediate code. There are additional tools or programs you can use to translate this intermediate code application into machine code. While these programs convert your code to machine code, they consume various system resources.
C++'s compile and run speeds are very high because there are no overheads like in other languages.
86 notes View notes
small-basic-programming 2 years ago
Text
Post #176: Opinion poll by Small Basic Programming on Tumblr, Question: Which object-oriented programming language do you prefer to program with?, 2023.
74 notes View notes
spark-hearts2 2 months ago
Text
I AM SO GOOD AT CIRCUIT BUILDING AND PROGRAMMING RAAAAA
C++ script under cut :3
int UpDown; 聽 聽 聽 //value for the Y direction of controller
int LeftRight; 聽 聽//value for the x direction of controller
int LR_neutral; 聽 //value for the 0 position in the y direction of controller
int UD_neutral; 聽 //value for the 0 position in the x direction of controller
int Bprev; 聽 聽 聽 聽//value for button edge detection
int Bcurr; 聽 聽 聽 聽//value for button edge detection
int R;
int Y;
int G;
int B;
void setup() {
聽 Serial.begin(9600); 聽//begin communication
聽 pinMode(A2, 聽INPUT); //button press detection
聽 pinMode(4, OUTPUT); //set pin 4 to power the Red LED
聽 pinMode(5, OUTPUT); //set pin 5 to power the Yellow LED
聽 pinMode(6, OUTPUT); //set pin 6 to power the Blue LED
聽 pinMode(7, OUTPUT); //set pin 7 to power the Green LED
聽 LR_neutral = analogRead(A1); //set zero position of controller
聽 UD_neutral = analogRead(A0); //set zero position of controller
聽 //WARNING!!! YOU CAN NOT TOUCH CONTROLER WHEN INITALIZATION HAPPENS!!!! WILL MESS CONTROLLER UP
}
void loop() {
LeftRight = analogRead(A0); 聽//read X position of controller
UpDown = analogRead(A1); 聽 聽 //read y position of controller
Bprev = Bcurr; 聽 聽 聽 聽 聽 聽 聽 //set current button state to previous state
Bcurr = analogRead(A2); 聽 聽 //set current button state equal to actual button state
if ((Bprev == 0) && (Bcurr > 0)){
聽 //turns all LED on
聽 digitalWrite(4,HIGH);
聽 digitalWrite(5,HIGH);
聽 digitalWrite(6,HIGH);
聽 digitalWrite (7,HIGH);
聽 delay(100); //wait
聽 //turns all LED off
聽 digitalWrite (4,LOW);
聽 digitalWrite (5,LOW);
聽 digitalWrite (6,LOW);
聽 digitalWrite (7,LOW);
}
if (UpDown >= UD_neutral) { 聽// checks if controller is up
聽 B = 0; //if up turns blue LED off
聽 R = map(UpDown, UD_neutral,1023,0,255); 聽//if up turns red LED on
}
else {
聽 R = 0; 聽//if down turns red LED off
聽 B = map(UpDown, UD_neutral,0,0,255); //if down turns blue LED on
}
if (LeftRight >= LR_neutral) { 聽// checks if controller is right
聽 G = 0; 聽//if right turns green LED off
聽 Y = map(LeftRight, LR_neutral, 1023,0,255); //if right turns yellow LED on
}
else {
聽 Y = 0; //if left turns yellow off
聽 G = map(LeftRight, LR_neutral, 0,0,255); //if left turns green on
}
//writes values to LEDs
analogWrite(4,R);
analogWrite(5,Y);
analogWrite(6,B);
analogWrite (7,G);
}
5 notes View notes
codingcorgi 1 year ago
Text
Tumblr media Tumblr media Tumblr media Tumblr media
Days 110 to 118 of coding everyday for a year and I've gotten so much done!
I finish both of my finals the C++ and the C#. The C++ final is an adventure game and it wasn't too challenging to make honestly I had fun with it. The C# project was also fun because I got to play with microcharts when creating the statistics page to display collected data! I plan to make the C++ game more fun honestly because I can't just let it die from here. I am going to make the Android and iOS build better on the C# project. I'm really proud of myself today :)
My next adventures will be brushing up on JavaScript since I'm severely out of practice and using what I know to make my portfolio website using Blazor!
17 notes View notes
david-goldrock 9 months ago
Text
My biggest argument against god's existence is that cpp exists
7 notes View notes
0x4468c7a6a728 9 months ago
Text
i've gotta program something soon...
16 notes View notes
tpointtechedu 8 days ago
Text
Tumblr media
2 notes View notes
snowcodes 2 years ago
Text
Question regarding languages: Python & C#
Is it possible to learn both languages at the same time? Or will it be easy to get confused between the two? I thought I would come to the lovely codeblr people who have a vast amount of experience for advice. C# is something I *want* to learn, but I *have* to learn Python for for my course that starts in January...I just want to see if it is plausible to learn both at the same time or if it will mess up my learning if I try and learn both. I'd love to hear about your experiences and what your first languages were when you first started out in the world of coding!!
48 notes View notes
orcelito 1 month ago
Text
Oh yeah yesterday I went to my C programming professor's office hours to ask about what's being covered in class tomorrow. Since I can't go bc of my PT appointment overlapping with it & I'm apparently the kind of student that cares about attending every single class now.
While I was there, I ended up chatting with him about a few things, including my current standing in the class. He asked what I got on the midterm exam, & I answered it was an 87, and he told me I was one of the top 5 or 6 scores in the Whole Class (this being a like. Maybe 70 or so person class). Top score was a 92 or 93 (idr lol) & the class average was a 72. Apparently there were a few of us in the upper 80s/lower 90s, but most people got 70s or lower. And once he does the curve on the exam, he said I'd probably end up with a 97 or so on the exam. So yay!!!
And then he told me how he's noticed how I come to class every day and am really active with taking notes and answering questions. Bc I also sit up front all the time lmao. Hadn't even realized how much of a damned teacher's pet I've been being, but I've been Trying to be a good student this year. But he said I was the type of student that if I got an 88% or smth in the class, he'd likely bump me up to a 90% so I'd get an A lol. But he also said so long as I keep up with how I have been, I could possibly get a 100% in the class by the end (bc I've been there for all the extra credit questions in class and whatever).
And just. I went there bc I wanted to make sure I didn't miss anything important in class on Wednesday, and I ended up having my ego stroked for Real. Felt good to have my efforts be recognized.
#speculation nation#now if only i could care that much for my web coding class. but oh well im still keeping up even if its a reluctant shamble much of the time#other stuff we talked about was how im graduating this semester & how i plan to stay in indiana to work#bc i have family here & i like the relatively low cost of living. & im not particularly ambitious.#just wanna make enough money to live comfortably. dont need anything fancy beyond that.#& he talked about how that's a good outlook in life. how he's known ppl who went to fuckin silicon valley or whatever#with high paying jobs. but the cost of living is so high that theyre effectively not making much more money than here#he said smth about like. a $70k salary has just as much strength here than a $120k salary there. smth around those#& he praised me on how i seem genuine and hard-working. so he thinks im gonna do just fine in the industry 馃ズ馃ズ馃ズ#i kinda wanted to keep chatting with him but i had to go to bowling class lol. ended up late to it even#bc i checked my phone for the time while chatting and went Oh Fuck bc it wss 1 min after the class started hfkshfks had to rush off then#but yeah makes me feel very nice about that class. i think it rly is my favorite class this semester.#web programming is pretty rewarding and im glad im taking it. but i was basically a complete newbie in html css and javascript#so ive spent quite a lot of time wanting to tear out my fucking HAIR over these labs. b4 it clicks and im like Haha yayy :3#i like C programming bc it's just so much more logical and regimented. it IS the language that got me to give up my engineering degree#since i was thinking about computer engineering. took my first coding class freshman year. and went 'i love this. i want to do CS now'#didnt do that obviously. but im happy where ive ended up. i wouldnt wanna be a programmer lol#and then my quality engineering in IT class. it's certainly engaging. it's the class i constantly have presentations in tho#had Another one this morning. blah! good to keep in practice but i still dont rly enjoy public speaking lmao#probably the most work intensive of my classes. interesting but Blegh#C programming i just keep up with the labs and do the exams and it's wonderful... so logical and comforting...#oh yeah web programming i also have a few presentations. also gotta fucking. code my project pages by next week 馃槶馃槶馃槶#i think it's just the html and css? no javascript yet. thank god. javascript is by far the hardest to learn#but css is so finicky too!!!! ive been struggling with trying to move these fucking input boxes around#i wanna have them on the right!! but they wont go there!!! gotta poke at it more. at least i managed to finish building the form.#still have to finish the lab tho. that was due 2 days ago. lol. also have another one due sunday. AND the project pages. gah!!!#they havent even graded the wireframes yet. i wanted their feedback b4 proceeding to coding >:( oh well#anyways yeah..im keeping busy lol
3 notes View notes
miquerinus 2 years ago
Text
Tumblr media
Give Up C/C++! Microsoft Official Announcement: Please Use Rust to Write Windows Drivers!
Microsoft has released a series of development toolkits on GitHub, allowing developers to use the Rust language to write Windows drivers. link: Give Up C/C++! Microsoft Official Announcement: Please Use Rust to Write Windows Drivers! | by Lucas Scott | Oct, 2023 | Stackademic
39 notes View notes
bas-fish 2 years ago
Text
i鈥檓 playing with C these days and wanna try some (fun) beginner project.
here, abzu basking shark gif for your attention
Tumblr media
19 notes View notes
monaddecepticon 10 months ago
Text
Little known programming fact:
The amount of slowness in software is constant.
Exercise for the reader: find the symmetric property due to Noether
C++ achieves fast executables by pushing all the slowness into the build process.
A Project which would build for go in 20 minutes will build for 8 hours for C++ for a 1% speed-up in runtime.
6 notes View notes
codingcorgi 1 year ago
Text
Tumblr media Tumblr media
I am not dead just severely busy! Days 74-109. I have so much to talk about this time!
So at work (Can't show that due to NDA) I've been bug chasing, and ultimately having to restructure many classes and methods to make one function work as intended.
Then for my C# final I'm still working on my .Net Maui project I finished the journals implementation, and added the event reporting function. I added the events to the journal entry for the day. If there are no entries yet it makes one. I am going to be using the library of microcharts that were used in xamarin (before Xamarin got depreciated into .Net Maui) now it can be used for .Net Maui. I'll be capturing data gathered in the journals to display on graphs to track progress in sleep disorders. At a later time I'll be getting it set up to grab information from sleep tracking apps on mobile.
In C++ my final is to make a game. I am making an adventure game where you can explore a village. It has lore, Easter eggs, and fun imagery (it's a console game unfortunately can't do Unreal). I have to change the code a bit but it has been fun to code!
I might have a contract role coming up for another game studio, so that's exciting.
My plans for the next few days is to get some functionality on the statistics tab in my Maui app, and get my C++ project more put together. At work I'm waiting on the senior dev to plan out how to fix the massive problem we have.
13 notes View notes
waterfaii 1 year ago
Text
CodeBeauty
Switch/case part 2 leap year
#include <iostream> using namespace std; int main(){ //program to determine whether it's a leap year //below is the rule to determine whether the year is leap year or not: year % 4 = = 0 & & year % 100 ! = 0 | | year % = = 0
int year, month; cout << "year, month: " cin >> year >> month;
switch (month) {
case 2: (year%4==0&&year%100!=0||year%==0) ? cout << "21 days month." : cout<< "28 days month."; break;
case 4 : //30 days case 6 : //30 days case 9 : //30 days case 11 : cout << "30 days month."; break;
case 1 : //31 days case 3 : //31 days case 5 : //31 days case 7 : //31 days case 8 : //31 days case 10 : //31 days case 12 : cout << "31 days month.";break;
default : cout << "not valid"; }
}
18 notes View notes