соня
guys can you help me 🥺 I want to create accdb database by using ADOX in C++ But when Im trying to connect ADOX import text me that he cant open msadox.dll #import "C:\Program Files\Common Files\system\ado\msadox.dll" rename_namespace("ADOX") and because of it, I guess, I cant use ADOX object pointers ADOX::_CatalogPtr m_pCatalog = NULL; ADOX::_TablePtr m_pTable = NULL; can someone help me how to fix it
соня
windows 10, using visual studio
соня
I've tried to set path in debugging-environment, but it still doesnt work, but I have msadox.dll on my computer
соня
Can I see code once ?
https://pastebin.com/bsyvPM3w
соня
Thanks
thank you for trying to help 🥺
Sebas Tian
No
then... char *string=(char *)malloc(10); char *temp=(char *)realloc(string,11); if(temp==NULL) free(string); else string = temp; ?
Sebas Tian
Yes
thank you
〽️
Hello, there was an error in the code I wrote, can you help me?
~radhika♡
thanku😁
Jagadeesh
#include <stdio.h> int main () { int i, j; int a [8] = {1, 2, 3, 4, 5, 6, 7, 8}; for(i = 0; i < 3; i++) { a[i] = a[i] + 1; i++; } i--; for (j = 7; j > 4; j--) { int i = j/2; a[i] = a[i] - 1; } printf ("%d, %d", i, a[i]); }
Jagadeesh
how it prints 3,2
Anonymous
Hi
Harry
long long int m[2][100000000000000000]; (There are 18 zeroes above) This causes an error, "array is too large". So how can it be rectified?
Dima
lol
Dima
use dynamic allocated arrays
Dima
why tho
Harry
use dynamic allocated arrays
long long int *m= new long long int[2*1000000000000000000]; This too says, "array is too large'
Dima
its just silly to allocate such a large array
dearfl
that more than 1024PB memory I think
Anonymous
for which operating system ?
Anonymous
compiler ??
Anonymous
gcc
...
https://code.visualstudio.com/docs/cpp/introvideos-cpp
Alfred
Hi
Anonymous
Hi
Yes
Alfred
Yes
Newbie
Anonymous
Newbie
Who ??
Anonymous
anyone expert in c Graphics ??
Alfred
Anonymous
Anonymous
Graphics in c
Anonymous
Graphics in c
You already wrote that. What graphics?
Anonymous
A GAPI? 2D? A library?
Anonymous
By library, I mean one which provides an abstraction
Anonymous
Graphical user interface
Anonymous
You got QT, GTK and such for that
Anonymous
And for Win32 you have the WINAPI
Anonymous
Although u can also use QT and GTK for Win32
Anonymous
How to install gtk for Mac OS
Anonymous
Idk
Anonymous
Complete set-up
Anonymous
Graphical user interface
Just for next time 'GUI != Graphics'
Anonymous
Graphics mean something else
Milwaukee
Hello l have a code which lm not sure were lm making an error
Milwaukee
#include <iostream> #include <string> using namespace std; struct College { string Regno; string Fname: string Sname; }; int main() { College trust; cout<<"Enter Regno "; cin>>trust.Regno; cout<<"Enter Fname "; cin>>trust.Fname; cout<<"Enter Sname "; cin>>trust.Sname; return 0;
Milwaukee
It's not working still 😔
Mohamed
H
M
How to compare between string and struct string ?
M
In c language
Sebas Tian
void func1(long long int *array){ ... } int main(void){ long long int arr[5000]; func1(arr); return 0; } In that code, the var arr will be passed as arg of func1(). How would it be passed? A copy of all 5000 long long int's or just a pointer (long long int *) ?
Sebas Tian
then do it is better than: void func1(long long int array[]){ ... } ... right?
Golden Age Of
then do it is better than: void func1(long long int array[]){ ... } ... right?
Its actually the same, when you pass your array, you dont pass it for real, you pass a pointer to the first element of the array.
Sebas Tian
Its actually the same, when you pass your array, you dont pass it for real, you pass a pointer to the first element of the array.
Thank you bro, i was in doubt because i've heard of doing that with struct's, passing just the pointer not the struct itself to avoid copy all elements of struct
Anonymous
In c language
Inbuild function available
Anonymous
Anonymous
If you have brew package manager that is
Anonymous
Yp
artemetra 🇺🇦
sus
Morsal
How to calculate sum of 2D array by recursive function?
Prabhat
How to calculate sum of 2D array by recursive function?
Make a recursive function to calculate sum of 1D array. Make an array and store sums of all rows/columns in it. Pass that array again to the function created.
Anonymous
Hey anybody knwing howvto add members in a telegram group
Anonymous
#include <stdio.h> int main() { printf(" 11\n 1 2 1\n 1 3 3 1\n 1 4 6 4 1\n 1 5 10 10 5 1\n1 6 15 20 15 6 1\n"); return 0; // Return exit code 0 meaing the program ran successfully. }
Anonymous
its to print to stdout stream
Anonymous
theres puts and other print functions but printf is usually the best
Apk
Yo this isn't a cheat group.
Anonymous
Can anyone tell about websites which have C++ problems to solve and to learn C++?