klimi
To explain the question
you can explain the question here, this is C group also, don't worry.
Anonymous
For example: Input) 3 3 (matrix 3×3) 1 2 3 4 5 6 7 8 9 2 2 (matrix 2×2) 2 3 5 6 Output) (0, 1)
klimi
Okay? and what is your question?
Anonymous
To explain the question
use a string search algorithm, instead of searching a character search an entire row in the larger matrix and then move on to the next row
Anonymous
Okay? and what is your question?
Now we want to find the zero-zero coordinates of the small matrix in the large matrix
klimi
and what is your question? what is the problem? What is the issue?
Anonymous
and what is your question? what is the problem? What is the issue?
The problem is that I can not write all of the conditions.
Anonymous
klimi
The problem is that I can not write all of the conditions.
okay, and why have you come to this group? We don't just provide the source code to your assigment... it is in the rules... If you are studying something... YOU should be the one doing the work to get the degree no?
Anonymous
Ok
klimi
you are welcomed to ask specific questions. but just... "Do my homework" won't work here
olli
Hello send me c programming notes in pdf plz
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
Anonymous
Good morning
Anonymous
Learn google search skills
Anonymous
helly guys, I want ask you a question : if c++'s complexity level is 10, what the qt's complexity level is?
Anonymous
C++ is Multi-Paradigm language, and QT is a Single-Paradigm "language", isn't it?
Igor🇺🇦
skipper
/notes
Eturnus
Why were were you excited? What functionality do you need there? You can try http://libxbgi.sourceforge.net/#SDL_bgi. It's port of graphics.h to SDL backend
I had seen some cool programs on internet which has been made using graphics.h so I was interested in learning
Igor🇺🇦
I had seen some cool programs on internet which has been made using graphics.h so I was interested in learning
I don't know what "cool apps" can be developed using this old framework
Revo
#best-book
Revo
/get rules
Revo
/get imhacker
Revo
What's that suppose to mean
Anonymous
/save rules https://t.me/programminginc/283193
Anonymous
/get cbook
Ken
Hey I want to print lines of file in reverse order for ex:-if file content is some {name} {college} I want to print {college} {name} Can someone suggest how to do it
zikry
hi can someone tell me how to show the total payment in the vending machine because in the output the amount didn't show, it just show 0.00
Phil
while(cur) see the reference there https://stackoverflow.com/questions/32153715/what-does-whilepointer-means-in-c @Adam_Sandlers_illegitimate_son
Starboard
/get
Starboard
/get cbook
Starboard
/get cppbookguide
.
#include <stdio.h> #include <stdlib.h> //bir dosyadan başka bir dosyaya yedekleme int main() { FILE *giris,*cikis; char kaynak[50],hedef[50]; char karakter; printf("Yedeklenecek dosyanin adini ve uzantisini gir:\n"); scanf("%[^\n]",kaynak); giris=fopen(kaynak,"r"); if(giris==NULL){ printf("Hata 1"); exit(1); } printf("Yedeklenecek dosyanin adini gir:\n"); scanf("%[^\n]",hedef); cikis=fopen(hedef,"r"); if(cikis==NULL){ printf("Hata 2"); exit(1); } for(karakter=getc(giris);karakter!=EOF;karakter=getc(giris)){ putc(karakter,cikis); } fclose(giris); fclose(cikis); printf("Yedekleme islemi tamamlandi Bravo"); return 0; } 2.dosyanın adını okumadan program sonlandırılıyor. Bakabilir misiniz?
Wisenky
cikis=fopen(hedef,"r"); you should open target source with write key: 'w'
Anonymous
👍
Muhammad Saad
How to draw a triangle inside a rectangle using SFML library?
Pavel
How to draw a triangle inside a rectangle using SFML library?
painter's algorithm? Draw the rectangle and then the triangle?
Vitalii
#include <stdio.h> #include <stdlib.h> #include "functions.h" double CalculationRate(type *pointer) { . . . } type *sort(type *head) { . . . } void printList(type *pointer) { . . . } void deleteElements(type **pointer, type **head) { . . . } Sorry, why it gives me error: expected initializer before 'double' ?
Vitalii
no matter which function is first
Vitalii
no matter which function is first
it gives me error looking at what data type is first
Vitalii
what's in functions.h ?
declaration of these functions
olli
declaration of these functions
most likely your error will be there, since this compiles just fine #include <stdio.h> #include <stdlib.h> typedef double type; double CalculationRate(type *pointer) { return 0; } type *sort(type *head) { return NULL; } void printList(type *pointer) { } void deleteElements(type **pointer, type **head) { }
Vitalii
type - is my data type, that means "struct SNode"
Vitalii
And idea is that I need to use "functions.h", because that's my header file
olli
And idea is that I need to use "functions.h", because that's my header file
Yes, but I would expect your error to be in "functions.h", and since you did not provide the header we cannot reproduce your issue
Vitalii
sorry, just a minute
Vitalii
#ifndef Function_h #define Function_h #define SIZE 50 typedef struct Sstudents { char surname[SIZE]; char name[SIZE]; int day; int month; int year; int exam1, exam2, exam3, exam4; double rate; struct Sstudents* next; }type; double CalculationRate(type *pointer); type *sort(type *head); void printList(type *pointer); void deleteElements(type **pointer, type **head); #endif
Vitalii
Ohhh, maybe that's compiler...weird
Vitalii
I used Visual studio, and it successfully worked. Ok, thanks and sorry about my problem😅
John
someone know how to do script in lldb?
Anonymous
someone know how to do script in lldb?
I have an assumption that lldb is backwards compatible with gdb
Zel
http://lldb.llvm.org/use/map.html
Низами
Hello everybody. I am recently working in C ++. There is a strange case with (DataGridView-> CheckBoxColumn). When the value changes, everything works as it should. But when checking for (if) I always get (False). What am I doing wrong ? private: System::Void Check_Click(System::Object^ sender, System::EventArgs^ e) { if (dataGridView1->Rows[0]->Cells[0]->Value == 1) // Always false { dataGridView1->Rows[0]->Cells[0]->Value = 0; // Set False } else if (dataGridView1->Rows[0]->Cells[0]->Value == 0) //Always false { dataGridView1->Rows[0]->Cells[0]->Value = 1; // Set True } }
Низами
Can value be int or bool? If its a grid it should be string.
I think this (Bool). (String) doesn't work. Or I can't figure out how to apply it correctly.
PANKIA
Given any number n and then count the prime numbers that are less than or equal to n. Pls help me I am a novice for C++
olli
Given any number n and then count the prime numbers that are less than or equal to n. Pls help me I am a novice for C++
Where's your code? What have you done so far? As the rules clearly state, we won't do your assignment/... for you.
Pavel
I wonder why C++ is faster than C on the benchmarks? Are there some optimizations for C++ that are unavailable for C? https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fastest.html
Pavel
That's their benchmark
As I understand this one is open, everyone can contribute their implementations and only the best are compared. So, it's kind of unbiased (unless there are less C programmers interested in writing for this program)
Anonymous
I wonder why C++ is faster than C on the benchmarks? Are there some optimizations for C++ that are unavailable for C? https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fastest.html
Definitely I don't know exact optimizations but in C++ there more opportunities to make compile-time computations and optimize stuff: for example std::sort will be faster than qsort because you don't need to erase function type
olli
No, you cannot compare <thread> and OpenMP
that's what I meant, taking the average is not useful if the algorithms are different.
Anonymous
I wonder why C++ is faster than C on the benchmarks? Are there some optimizations for C++ that are unavailable for C? https://benchmarksgame-team.pages.debian.net/benchmarksgame/which-programs-are-fastest.html
Also Jason Turner had this project rewriting Doom to C++ But it was too hard and the only thing he did is fixing errors when compiling with C++ And.. the Doom became 10% faster or so
Anonymous
how to working.....
Низами
Hello everybody. I am recently working in C ++. There is a strange case with (DataGridView-> CheckBoxColumn). When the value changes, everything works as it should. But when checking for (if) I always get (False). What am I doing wrong ? private: System::Void Check_Click(System::Object^ sender, System::EventArgs^ e) { if (dataGridView1->Rows[0]->Cells[0]->Value == 1) // Always false { dataGridView1->Rows[0]->Cells[0]->Value = 0; // Set False } else if (dataGridView1->Rows[0]->Cells[0]->Value == 0) //Always false { dataGridView1->Rows[0]->Cells[0]->Value = 1; // Set True } }
So, it work for me !!! Thank everybody :) private: System::Void Check_Click(System::Object^ sender, System::EventArgs^ e) { if (System::Convert::ToInt64(dataGridView1->Rows[0]->Cells[0]->Value) == 1) // Always false { dataGridView1->Rows[0]->Cells[0]->Value = 0; // Set False textBox1->Text = System::Convert::ToString(dataGridView1->Rows[0]->Cells[0]->Value); } else if(System::Convert::ToInt64(dataGridView1->Rows[0]->Cells[0]->Value) != 1) //Always false { dataGridView1->Rows[0]->Cells[0]->Value = 1; // Set True textBox1->Text = System::Convert::ToString(dataGridView1->Rows[0]->Cells[0]->Value); } }