Merve
void uart_send_string(volatile uint8_t * str)
{
while (*str)
{
UART_Transmit(*str++);
}
}
Merve
but ı cant send 0 value, and ı should to send 0 value
Merve
do you have any suggestion?
Suka
Merve
oh you mean character?
Merve
volatile uint8_t s2dizi[4]= {"0",0x80,0x01,0xFF,0x3A}
Merve
it is not currect ı think
Suka
oh you mean character?
string as in {'0',0} if you sent char ig it will error because while loop seeking 0 to stop
Suka
Merve
I want to divide the series as well
Merve
Merve
what should ı do
Merve
Is it my array send function?
Suka
but if you feed string and want your function to send integer you can
transmit(*str++ - '0') but this only valid for string of number only
Suka
Is it my array send function?
void uart_send_string(volatile uint8_t * str, int len)
{
while (len--)
{
UART_Transmit(*str++);
}
}
perhaps something like this
Anonymous
scanf("%c",&c);
got it next problem
input
#include <stdio.h>
void main()
{
int length,breadth,area; 4
printf("enter the length of rectangle");
scanf("%d\n is the length",&length);
printf("enter the breadth of rectangle");
scanf("%d\n is the breadth",&breadth);
area=length*breadth;
printf("%d is the area of rectangle",&area);
}
output
enter the length of rectangle4
4
enter the breadth of rectangle4
6422292 is the area of rectangle
Anonymous
so 1why i need to give 2 no.s in length?
and the area is ????/how
Suka
Anonymous
Suka
Anonymous
enter the length of rectangle5
8
enter the breadth of rectangle9
40 is the area of rectangle
Merve
void uart_send_string(s1dizi , 0 )
Merve
What do I write in int lengt
Merve
oh ı am confused
Anonymous
i had given length input as 5 then 8
Adarsh
Anonymous
Merve
volatile uint8_t s3dizi[8]= {0x00,0xAA,0x10,0x00,0x80,0x01,0x11,0x3A};
Merve
for example this
Anonymous
Dont use \n in scanf
ok but still
enter the length of rectangle5
8
enter the breadth of rectangle9
40 is the area of rectangle
output
Merve
so lenght is 8, am ı right?
Suka
Suka
Merve
ok ı am goint to try
Suka
Merve
:)
Merve
you are amaznggggg
Merve
thanks a loooot
Gakume
/get cbook
Aksa
Hai Madam..!!
Aksa
How can I share this group to my friends
Nameful
Pradevel (Pratyush)
Aksa
Thankyou😄
Anonymous
😂
systemQuery
std::string selectQuery = "select * from new_user where id='" + id+" ' "; I m trying to fetch data from db but in select query its not taking id in where condition here i m getting the error == expression must have integral or unscoped enum type. int ID is in int format in mysql database
systemQuery
anyone have any idea about this
systemQuery
i hav made a crud in C++ with mysql db
Hemant
/get
Nurlan
/get argument
Mr Rambo
I have a one doubt in C++ programming
Mr Rambo
Anyone help me
Mr Rambo
Here
Nurlan
No!
Bumpy
hey everyone , i implemented Binary Tree using templates and also overriding iterators (preorder inorder postorder)
*** i need no initial the destructor of the class with the postorder operator ***
ans this is doesnt work :
~BinaryTree() {
for(auto it = begin_postorder(); it!= end_postorder();it ++) {
delete it.get_node();
}
Bumpy
note that im overloading the operators of the iterators ++ , -> , *
Mr Rambo
I need help in one assessment anyone help me here
Mr Rambo
Create Player.h and Player.cpp C++ only. to implement the below. You will also need to create a Player playerDriver.cpp class as described file to test your Player class implementation. The Player class has the following attributes: Data Members (private): : string : name double The player’s name points The player’s points Member functions (public): Default constructor Set name to an empty string points Parameterized constructor to value 0. Takes a string and and double assigning this order getName() name and Returns the player’s points , in name string getPoints() Returns the player’s as a points double setName(string) Sets the player’s as a name returns nothing) setPoints(double) Sets the player’s (and points returns nothing) (and
Mr Rambo
Can anyone help me in this question
Papa
read rules of this group. no one will share their assignments and homework. /report
Hirrolot
https://www.reddit.com/r/programming/comments/nkmbps/compiling_algebraic_data_types_in_pure_c99/
Mr Rambo
👍
Anonymous
Different b/w void main and int main
Depply explain
Parra
Akshay
Postfix to infix program in c using structure.
systemQuery
Vitaliy
hello, I can help several people in projects if there are small tasks. I need a few positive reviews for the upwork profile, so I made the price for my help almost twice as low (I usually work from $ 15 per hour). Specialist in SEO, WordPress, html5/css3/js, SMM, UI / UX design. in private messages, I will provide a resume, my website, you can see a freelance account with orders that I performed.
klimi
hello, I can help several people in projects if there are small tasks. I need a few positive reviews for the upwork profile, so I made the price for my help almost twice as low (I usually work from $ 15 per hour). Specialist in SEO, WordPress, html5/css3/js, SMM, UI / UX design. in private messages, I will provide a resume, my website, you can see a freelance account with orders that I performed.
I love how many rules you have managed to break in one message, congratulations
Vitaliy
Pavel
20BCS5685_AnishaKumari
Can a programming student take ethical hacking course and can he/she reflect it in their resume if they have a good knowledge of it?
Anonymous
20BCS5685_AnishaKumari
What's OT?
20BCS5685_AnishaKumari
This link has expired.
Pradevel (Pratyush)