Register for your free account! | Forgot your password?

Go Back   elitepvpers > General > Say Hello
You last visited: Today at 10:50

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hello elitepvpers !

Discussion on Hello elitepvpers ! within the Say Hello forum part of the General category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1
Received Thanks: 1
Hello elitepvpers !

Hello,

I'm a programmer, and i'm intersted in network programming.

I find socket in C quite difficult !

Best regards,

Gianfranco Ramoser
gianfranco ramoser is offline  
Old 02/11/2011, 00:07   #2
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
Ok, well we could use a bit more discription lol...

Ever need some help in C++ codeing we have a very nice section of our forums to help you out too!!
Bаne is offline  
Old 02/11/2011, 02:31   #3
 
.Ash's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,175
Received Thanks: 540
Welcome to ePvp.

Hey can you teach me inipath? i got some of it down, but cant.. This is for dev c++, i will turn it into visual studio sometime later..

Code:
/* File config.txt:
num = 123
str = hello
flt = 12.2
*/
 
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
using namespace std;
 
struct Config {
    int    num;
    string str;
    double flt;
};
 
void loadConfig(Config& config) {
    ifstream fin("config.txt");
    string line;
    while (getline(fin, line)) {
        istringstream sin(line.substr(line.find("=") + 1));
        if (line.find("num") != -1)
            sin >> config.num;
        else if (line.find("str") != -1)
            sin >> config.str;
        else if (line.find("flt") != -1)
            sin >> config.flt;
    }
}
 
int main() {
    Config config;
    loadConfig(config);
    cout << config.num << '\n';
    cout << config.str << '\n';
    cout << config.flt << '\n';
}



// Wtf o.o return 0;
.Ash is offline  
Old 02/11/2011, 06:19   #4
 
~>Bl4Ck<~'s Avatar
 
elite*gold: 33
The Black Market: 116/1/0
Join Date: May 2009
Posts: 5,846
Received Thanks: 1,177
welcome to epvp
~>Bl4Ck<~ is offline  
Old 02/11/2011, 14:00   #5
 
elite*gold: 2
Join Date: Sep 2010
Posts: 324
Received Thanks: 184
welcome to epvp
xZanx is offline  
Old 02/12/2011, 04:44   #6
 
Taec's Avatar
 
elite*gold: 222
Join Date: Nov 2009
Posts: 14,600
Received Thanks: 7,399
Welcome to EPvp, love programmers
Taec is offline  
Old 02/14/2011, 09:10   #7
 
VastoStyles.'s Avatar
 
elite*gold: 2
Join Date: Jun 2010
Posts: 768
Received Thanks: 233
Welcome,
I think programmers are always welcome XD
VastoStyles. is offline  
Old 02/15/2011, 07:56   #8
 
elite*gold: 8
Join Date: Sep 2008
Posts: 716
Received Thanks: 148
welcome
.eXecution is offline  
Old 02/15/2011, 11:57   #9
 
elite*gold: 0
Join Date: Jan 2009
Posts: 62
Received Thanks: 6
Welcome to EPvp
kristokas is offline  
Old 02/15/2011, 14:27   #10
 
Aparello's Avatar
 
elite*gold: 4
Join Date: Mar 2010
Posts: 751
Received Thanks: 68
hello and welcome
Aparello is offline  
Reply


Similar Threads Similar Threads
hi elitepvpers.....!!!!
02/19/2010 - CO2 Private Server - 4 Replies
i made the server now likely its going good and my reg page is done.... here is the problem when i go create at account its done but the problem is when i go login the account i created its says failed to connect to the game server... and i also check my port and its open and good and change the shell.ini how come that i cant make it login can anyone help or solve my problem thnx....i will thinkfully and greatfull who can someone help me on this and give a creadits to him or who......
Yourmail @ elitepvpers.net // yourname.elitepvpers
09/29/2006 - Off Topic - 16 Replies
Hallo. Ich hoffe das ist okay ;> Wer eine eMail mit "[email protected]" oder Webspace mit "Deinname.elitepvpers.net" möchte" (Nur legale Inhalte) Soll mir einfach kurz und knapp ne EMAIL "KEINE PM!" schreiben.



All times are GMT +1. The time now is 10:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.