Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~4K People Reached
Favorite Forums
Favorite Tags
c++ x 34
Member Avatar for En1ro

Hi, Some time ago I saw a topic with assignments for different type of knowledge - newbie, beginner, advanced etc. and I tried to look up, but didn't find. Is there any topic, or website with these kind of things, just without tutorial how to do it? Thanks for help.

0
53
Member Avatar for Kadence

I'm a C++ beginner. What's an easy to use (in terms of both installation and use in code) library for using MySQL in C++? Is there one that's a lot more commonly used than others? Note that I'm using MySQL 4.1.22 on GNU/Linux. I've found the following: [LIST] [*][URL="http://dev.mysql.com/doc/refman/4.1/en/cplusplus.html"]MySQL++[/URL] [*][URL="http://www.sqlapi.com/"]SQLAPI++[/URL] …

Member Avatar for Kadence
0
697
Member Avatar for En1ro

[CODE=c++]int j=1; fstream kd("Gydytojai.sed"); while (!kd.eof()) // Checking if the entry already exist; { if (gydmas[j].vardas==pgyd.vardas) {ShowMessage(L"Gydytojo id jau egzistuoja"); pagalb=true;}; // if the entry exist, variable pagalb becomes true j++;}; kd.close(); [/CODE] Well, i'm checking if in the file Gydytojai.sed while it is not end of line checking if …

Member Avatar for En1ro
0
102
Member Avatar for En1ro

[CODE=C++]struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas; String pavarde; String adresas; friend ostream& operator<<(ostream& os, const gydytojas& obj) { os << obj.vardas.c_str() << obj.pavarde.c_str() << obj.adresas.c_str() << obj.gydid << obj.amzius << obj.specialyb << obj.telefonas << obj.asmkod; // Print the members to os like you would to …

Member Avatar for En1ro
0
134
Member Avatar for En1ro

This code is in Unit1.h [CODE=C++] struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; friend ostream& operator<<(ostream& os, const gydytojas& obj) { return os; }; friend fstream& operator>>(fstream& os, const gydytojas& obj) { return os; }; }; gydytojas gydmas[100]; [/CODE] And this code …

Member Avatar for En1ro
0
177
Member Avatar for En1ro

The problem is that i need to save in simple way the array of structure: [ICODE]struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] This is the struct & array. Code: [ICODE]gydytojas pgyd; pgyd.vardas[25]=Edit21->Text; pgyd.pavarde[35]=Edit22->Text; pgyd.adresas[50]=Edit24->Text; pgyd.asmkod=StrToInt(Edit23->Text); pgyd.amzius=StrToInt(Edit27->Text); pgyd.gydid=StrToInt(Edit26->Text); pgyd.telefonas=StrToInt(Edit25->Text); pgyd.specialyb=ComboBox5->ItemIndex; …

Member Avatar for mitrmkar
0
86
Member Avatar for En1ro

In Unit1.h private: [ICODE] struct gydytojas { int gydid, amzius, specialyb, telefonas, asmkod; String vardas[25]; String pavarde[35]; String adresas[50]; }; gydytojas gydmas[100];[/ICODE] Now in Unit1.cpp im trying to do simple thing: [ICODE]void __fastcall TForm1::Button18Click(TObject *Sender) { gydytojas.vardas=Edit21->Text; gydytojas.pavarde=Edit22->Text; gydytojas.adresas=Edit24->Text; }[/ICODE] Getting these errors: [C++ Error] Unit1.cpp(172): E2108 Improper use of …

Member Avatar for En1ro
0
2K
Member Avatar for En1ro

Hello: [code=cplusplus] #include <stdio.h> // for printf #include <D:\Programavimas\Naujas Darbas\SQLAPI\include\SQLAPI.h> // main SQLAPI++ header int main(int argc, char* argv[]) { SAConnection con; // create connection object try { // connect to database // in this example it is Oracle, // but can also be Sybase, Informix, DB2 // SQLServer, InterBase, …

Member Avatar for mitrmkar
0
578
Member Avatar for varshini
Member Avatar for En1ro

Hello, First of all thanks for time reading this post and the problem is that: I'm Using Borland c++ builder 6 and i want to connect to my database through BDE components, i added Database, Table and Query components, filled query , added params to Database and tried to connect …

0
62