Hasem
Hii i am look for someone who help me to di my üniversite C homework
İ have 2 C homework and i will $100 for that please if someone want to help me please text me
あおい ハート
try input 5 5
Actually problem is when i input the decimal value for int variable then all other input are not asked and assigned as 0 why this happening?
Alex
Alex
あおい ハート
it works
Yaa 5 and 5 are int it works 👍
Anonymous
John
Prajal
Anyone suggest me
A telegram group for daily quizes and practise problem related to c++ or data structure and algorithm
Anonymous
Gullu
i am new here i want to start C language.. can u guide me.. from where i have to start
Gullu
notes any study material
Prajal
Gullu
thank u
Anonymous
Anonymous
hey there . while finding Maximum number instead of assigning yourself 0 to the maximum variable. To find maximum number what is alternate method the minimum number is assigned itself it is so I can can test negative numbers as well.
Anonymous
for example Code :
int max=0;
int arr[10]={1,2,3,4,5,6,7,8,9,10}
for(int i=0;i<10;i++)
{
if(arr[i]>max)
max=arr[i];
}
Anonymous
what can I use in place of max=0 instead of a minimum negative number . is there a keyword for minimum number?
Fabio
You could put max=arr[0]
Fabio
Someone could solve this problem?
A number in input show in output the level of pascal triangle
Example:
If I put 1 it will give me 1, if I put 2 it will give me 1 1, if I put 3 it will give me 1 2 1
Anonymous
Fabio
But you can use only while, for, if, and array no other stuff
Anonymous
Okay let me see
Andrew
Fabio
Igor🇺🇦
Only this I know
There are only for, if, and function to print there. 🤷♂️
Anonymous
But you can use only while, for, if, and array no other stuff
#include <stdio.h> int main() { int i, j, rows; printf("Enter the number of rows: "); scanf("%d", &rows); for (i = 1; i <= rows; ++i) { for (j = 1; j <= i; ++j) { printf("* "); } printf("\n"); } return 0; }
Hasan Emre
#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
struct element{
int data;
element* next;
};
element* root = new element();
void olustur(element *ptr)
{
for (int i=1;i<=10;i++)
{
ptr->data = i*10;
ptr->next = new element;
ptr = ptr->next;
}
ptr->next = NULL;
}
void swap(element *ptr, int sira)
{
element *ptr2 = new element;
for(int i=1;i<sira;i++)
{
ptr= ptr->next;
}
ptr2 = ptr->next;
ptr->next= NULL;
while(ptr2->next != NULL)
{
ptr2 = ptr2->next;
}
ptr2->next = new element;
ptr2->data = 111;
ptr2 = ptr2->next;
ptr2->next=root;
}
void yazdir(element* ptr){
while(ptr->next != NULL)
{
cout<<ptr->data<<endl;
ptr = ptr->next;
}
}
main()
{
olustur(root);
swap(root,5);
yazdir(root);
Hasan Emre
How do I split a list in half and add the second part before the 1st part?
Sandro
For your convenience I put all the code in one sourcing file, but remember that the right way is to use headers for definitions, declarations and so on and .c files for routines
Sandro
https://pastebin.com/wmuL89kw
Hasan Emre
Bron Pastebin banned in Turkey
Hasan Emre
That's why I can't access the code
Sandro
Try again, pick on the link
Hasan Emre
Not happening
Hasan Emre
Because the site is banned
Hasan Emre
İn Turkey
Sandro
I've sent you in PM
Vinícius
/get ide
Anonymous
Jaaa
Halil Aytaç
Emre pastebini de mi banladı oçları
Anonymous
Anonymous
Hello
Anonymous
How can I make a voice chat c++ socket ?
Ahmed Mohy
Hi am new and I studied at computer science I need full c++ course and wht should first learn ?
Fabio
Well theory
Fabio
How a programm works
Fabio
Then you need to learn how to write it so you need to start with the basic stuff
Ahmed Mohy
Ahmed Mohy
Wht about program language how many language should I learn ?
Fabio
It depends on what you want to do
Fabio
For websites html for games phyton or java
Fabio
C and c++ are very similar so you could learn only one of them then you could go to learn java then html
Ahmed Mohy
Can u advise me
Ahmed Mohy
?
Ahmed Mohy
Fabio
Start from c++
Ahmed Mohy
Ahmed Mohy
??
Fabio
Search on internet
Fabio
Video lessons on YouTube
Ahmed Mohy
Ok I need to be perfect on pc games developer
Jaaa
If i has a stirng ABC then it contain a substrng AC. or not🤨
Anonymous
Dear I like to learn these languages
Anonymous
👍
Anonymous
Hi
Prajal
Jaaa
Anonymous
Is there any python channel?