Anonymous
ah , nvm , got it
klimi
:)
Anonymous
yeah for sure it must be const char* or const char[number]
klimi
cool
klimi
i dont program but i can help
klimi
nice
Anonymous
because its the only reference to the stored string in mem
Anonymous
i dont program but i can help
yeah same , I am still learning
klimi
keep doing
Anonymous
because its the only reference to the stored string in mem
like if "string" might be variable not const so making int variable = 99; "string" = &variable; then output "string" to show up 99 can't imagine a language to have such a thing LOL
Anonymous
hii
klimi
yo
Anonymous
im a new member
Anonymous
how to study c++
Prometheus
how to study c++
Start here. It's how I started. https://www.cprogramming.com/
klimi
how to study c++
Learn how to read a pinned message
Otumian
Hello guys.. Analyzing a logical statement and using truth table to prove the statement Problem: Neither Fox nor lynx can catch the hare if the hare is alert and active. My solution; F: Fox can catch the hare L: Lynx can catch the hare H: Hare is alert and active Logical statement: I will use the usual symbols of cpp to represent the logical operators.. –> as imply or implication Translated the "neither fox nor lynx as" as "not fox" or "not lynx" or "not both" I thought of the logical statements below 1. H –> !F || !L || !(F && L) 2. H –> !F || !L || (!F && !L) What do you guys think
Otumian
😂
Anonymous
yes it's cheap
Ибраги́м
https://www.youtube.com/watch?v=AUT201AXeJg
KAoTI
Guys
KAoTI
At the moment
KAoTI
What is better to learn? C++ Or Java? And what reasons for each
Mat
C++ and Java are both widely used, but C++ is not proprietary
Ludovic 'Archivist'
C++ and Java are both widely used, but C++ is not proprietary
Also, recent versions of Java are not free
Ludovic 'Archivist'
Ludovic 'Archivist'
Because... Oracle bobby trap
Mat
I'd probably learn kotlin if you need jvm compatibility
Anonymous
Good morning
A
I want to make a game
Anonymous
hey all
A
Hi Sachin
Anonymous
I'm making a program to print all prime numbers from 1 to 300
A
Please don't do that
Anonymous
but I'm getting nothing
Anonymous
please help
A
Serves you right
Anonymous
here's my program
Anonymous
#include<stdio.h> //program to print prime no from 1 to 300 int main() { int i,n=1,count=0; while(n<=300) { for(i=1;i<=n;i++) { if(n%i==0) { count++; } } if(count==2) { printf("%d\n",n); } n++; } return 0; }
A
Lol
A
You need to google it
Anonymous
then what's this group for..?
A
I think it is for chatting
Anonymous
somebody help
A
count=0 inside loop
Pratama
#include<stdio.h> //program to print prime no from 1 to 300 int main() { int i,n=1,count=0; while(n<=300) { for(i=1;i<=n;i++) { if(n%i==0) { count++; } } if(count==2) { printf("%d\n",n); } n++; } return 0; }
Try to debug it first. You can use a pen and paper. Just do the first 10 numbers. Each iteration check the value of all variables, and determine what u do wrong
A
What is this
This is putting
Anonymous
This is putting
Ohh primers
A
You need a rubber dick
Roxifλsz 🇱🇹
You need a rubber dick
Excuse me what the fuck
A
You use it and maintain the error
Anonymous
Anonymous
Lol
Don't spam here GO somewhere for this shitty behaviour..
Anonymous
we all are here to help, if you don;t want to help just go away
Anonymous
I think
Anonymous
It should be for (i=n i>=1 i- -)
Anonymous
Yes
Anonymous
You're doing it in reverse order
Anonymous
That's why wrong
A
Ohh correct bro
Anonymous
Yes
i've tried this too, it's also not working
Anonymous
i've tried this too, it's also not working
Worked in my PC. Maybe your compiler has been infected by viruses
Anonymous
show me the screenshots
Anonymous
PM
Anonymous
Virus in ur computer
A
Sometimes it make runtime error