Shivam
Prometheus
why do you ask?
It may be easier to implement. using getline();
j
i think i have to use c
j
but what's the point in using only c for a class?
Shivam
C is best
Prometheus
C is best
Depending on the situation but the more I learn about c the more I like how it does things.
Prometheus
but what's the point in using only c for a class?
The teacher may want you to only write in c so that you learn the hard way to do things first.
Shivam
Yeah, it's best for newbies
Shivam
After learning C, you can most of the other languages easily
j
so how would i implement my example?
Shivam
What do you want to do actually?
j
read each line of a txt to an array
Anonymous
so how would i implement my example?
I would say make a pseudo code version of your program. Then slowly work on converting it to C
j
plus allocate for new space for new lines if necessary
j
but it doesnt seem to work
j
any idea on how tomake it work
j
?
Kiccha
What kind of project
A mini project which work on C Programming only.. May be a game, or etc
BinaryByter
Stefan
c# > d > c++ > c
BinaryByter
Stefan
Bader
Scratch > *
have you seen micheal reeves video? lol
BinaryByter
No
Stefan
Scratch > ∅
Stefan
it is just merely better than nothing
j
@stefansteve1999 what am i doing wrong in my code?
Stefan
Stefan
don't ask me no fool
BinaryByter
Hi friends, Nice to meet you guys.
HAZRAT BILAL NIAZI
Hi Dear Friend ، nice to meet you
HAZRAT BILAL NIAZI
Do yo have information about oop
Prometheus
Do yo have information about oop
Duckduckgo is your dear friend.
Prometheus
Www.duckduckgo.com it has all the answers you'll ever need.
Shivam
Truu
HAZRAT BILAL NIAZI
Truu
Not trru
HAZRAT BILAL NIAZI
Dont tst it
Shivam
NoU
Kiccha
c++ is better
My professor has said me to do project only on C not C++ So please send me an Mini Project
Stefan
Bison compiler
Kiccha
Do you have code for that
Stefan
https://www.gnu.org/software/bison/
Stefan
It’s very easy
Kiccha
Is This Mini project is composed only of C?
Kiccha
??
Stefan
If technically compiles to c
Stefan
This is basically how it looks https://gist.github.com/jagt/7819205
Hayk
haha, no
Eh.. Binary code is the godfather
Stefan
Hayk
Yeah so go try a pdp8
The god grandpa is writing the binary code with a pencil and then parcing the text with a scanner. Then pasting it.
Stefan
No, they used punched cards
Stefan
They do not have ocrs back in the days
Stefan
But lasers
Stefan
Or maybe not, they could even have physical triggers
Anonymous
in my outout i got extra whitespace
Anonymous
how resolved it
Anonymous
*output
Hayk
in my outout i got extra whitespace
You have to send the code
Ибраги́м
CppCon 2018: “Emulating the Nintendo 3DS: Generative & Declarative Programming in Action” https://youtu.be/67OCoOLVuK8 https://redd.it/9t7p1i @r_cpp
Ashish
Any book in pdf for c
Anonymous
You have to send the code
#include<iostream> using namespace std; int main() { int num, num1; cout<<"enter the number"<<endl; cin>>num>>num1; for(int i=num; i<num1; i++) { int a=0; for(int j=1; j<=i; j++) { if(i % j == 0) { a++; } } if(a==2) { cout<<i; } cout<<endl; } }
Anonymous
this is my code
Hayk
this is my code
Please send the input/output too
Ale
Hello
BinaryByter
it *may* also display the input
Anonymous
Tthanks
Prometheus
the CLI is just something that displays the stdout of /bin/bash
I know. I think he was having an issue with too much white space in the output displayed on the CLI. When I run command line programs on my system, I believe, when entering a value using cin it skips down a line after pressing return.
j
https://gist.github.com/rexto/ac23a856a38814c81e46bbc8c864ab0a
j
lines do not get stored in arrays
j
pls help