☬ੴ Bassi
its fine
Dima
Dima
Anonymous
Som
Guys can u explain what does
"A data member Ano(Admission Number) of type long" mean?
I mean what is asked here in the question?
Anonymous
Anonymous
Som
Anonymous
Anunay
Anonymous
oh right. the function will need to do some string processing with the arguments first
☬ੴ Bassi
No what I was saying is make your own function called print.... Then pass in the string as a argument
Som
Guys it is saying that "error 'A' was not declared in this scope"
Som
Som
I have used std::cin but still same
Anonymous
Anonymous
Lmao
Anonymous
Hello everyone, can we make the paper size page like Microsoft Office word in Qtexedit using C++?
Anunay
Anunay
I think I mis-understood the query
Noble Friend
Hi here. Please anyone familiar with this stuff to figure out what i'm doing wrong?
Noble Friend
#include <ncurses.h>
#include <string.h>
#include <stdlib.h>
char key;
int row=24;
int col=80;
int iCol=12, iRow=40; //initial column and row
void drawBorders ();
int main(){
initscr();
keypad(stdscr, TRUE);
noecho();
cbreak();
mvprintw(1, 3, "MOVE CURSOR ROUND THE BOX...\n");
drawBorders ();
WINDOW *moving_window;
wmove(moving_window, iRow, iCol);
wrefresh(moving_window);
while(key != 'q'){
key = getch();
if(key== 'd' || key == KEY_RIGHT){ //d --> right
iCol += 1;
}
else if(key == 'a' || key == KEY_LEFT){ //a --> left
iCol -= 1;
}
else if(key == 'w' || key == KEY_UP){ //w --> up
iRow += 1;
}
else if(key == 's' || key == KEY_DOWN){ //s --> down
iRow -= 1;
}
wmove(moving_window, iRow, iCol);
wrefresh(moving_window);
}
refresh();
endwin();
return 0;
}
void drawBorders (){
mvprintw(2,3,"Designed by ALVINO\n");
for(int i=0; i<=24; i++)
{
printw("|");
for(int j=0; j<=80; j++)
{
if(i==0 || j==80 || i==24)
{
printw("|");
}
else{
printw(" ");
}
}
printw("\n");
}
printw(" TIP\n");
printw(" d -> right: \t");
printw("a -> left \t");
printw("w -> up \t");
printw("s -> down \t");
printw("q -> quit \n");
printw(" Arrow keys also work... \n");
}
Noble Friend
It runs but doesn't move the cursor although the while loop seems to work
Anonymous
ye. i guess trying to do std::cout << print(something) as replacement for std::cout << something is dumb itself
Cristi
Hi
Hermann
how inizialize char pointer in struct by another struct?
Hermann
i get error in second_struct.bs.p->info_liv3=malloc(100*sizeof(char));
Hermann
https://pastebin.com/K7SsjdGW
Hermann
seg, i found error. i dont malloc for struct c
professor
sorry for this question , but can I use BSD-style license code , and modfiy some of it's code to be incorporated into closed project?
Mar!o
Google BSD License explained
neb
Short read 😌
Anonymous
Hi everyone
neb
Hello 😌
Anonymous
i have never seen parenthesis alongwith function template what is this for?
Surya
Surya
The function body is empty
Surya
.
Hey, any one have some good books on c++ ?
Martin
.
I have started learning from YouTube course cpp for beginners. it's 4.5 hrs video.
But I'm enjoying learning it and I want to even master it. But don't know the path to go.
Martin
If you are already very familiar with C++, C++17 - The Complete Guide and Mastering the C++17 STL are quite good. (Or you could read the C++17/20 standard anyway)
Martin
Hmm... do you have experiences in programming in other languages?
.
No.
Martin
If yes, I suggest to watch CppCon and BoostCon videos. They dive deep in the new developments in C++.
.
Martin
Thanks.
Don't. Those are for experienced programmers.
.
Martin
What? Those are free videos.
Martin
Anyway. Start here:
Martin
Oops
Martin
https://www.youtube.com/watch?v=18c3MTX0PK0&list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Martin
It's a good bridge from basic C++ to more complex concepts
.
Onkar
Hey can anyone solve pallindrome problem through C ?
Onkar
https://www.hackerrank.com/challenges/shashank-and-palindromic-strings/problem
Onkar
Is there any solution for this through C ?
Deleted Account
Am working on a zoom replica looking forward to having anyone interested to join me through development and we build it up together
Onkar
Ak
Help me make a flowchart
Noble Friend
😬oops
YK Y
Deleted Account
Anonymous
Hello
Anonymous
Question 1. 50 points
Here we want to model the spread of the COVID-19 epidemic!
Assume that ENCE112 Country get it first infection from a gentleman who flew in from China-Town, Wuham. Assume also that each without isolation, any covid-19 patient infects one other person. If we assume that each covid-19 infected person is isolated after just one day.
a. Derive a recursive formula for the number of infected persons in n-days. 10 points
b. Develop a recursive algorithm for the formula you derived in “a.” above. 15 points
c. Translate the algorithm in “b.” above into C programming language and run it. 5 points
d. Generate the results of the first ten (10) days in a table of two columns, the first column holds the days and the second column holds the number of infected persons. 10 points
e. What will happy if each covid-19 patient infects more than one person per day before isolation? Repeat “d.” if the infection rate is two (2) instead of one. 10 points
Anonymous
Anonymous
Anonymous
Anonymous
This was my solution
Anonymous
Does anyone have any other method of solving it?
Anonymous
?
Anonymous
?
I’m asking to see if I can make any alterations to the work I’ve done?
Anonymous
Onkar
Anonymous
Dima
Admins are so rude here
Anonymous