Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
42% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
4
2 Commented Posts
~37.2K People Reached
Interests
sports , computers , music
PC Specs
Win 7 Ultimate Fedora 11

93 Posted Topics

Member Avatar for vbx_wx

[CODE] void HandleConnection() { cout << "You are connected !!!" << endl; char temp[30]; Recv(temp, sizeof(temp)); if(temp[0] == 5) // test for version { cout << "Version good" << endl; char* reply = new char[2]; reply[0] = 5; // version reply[1] = 0; // method choosed (no auth required) Send(reply, …

Member Avatar for Jake_7
0
20K
Member Avatar for vbx_wx

This is how I want my XML file to look: [code] <root> <data> <track src="123456"> <desc id="1" mt="audio/mp3" ra="24" dr="221" nv="10005761">Madonna - La Isla Bonita</desc> <clipdata>PD94bWwgdmVyc2lvbj0iMS4wIiBlb</clipdata> </track> </data> <completed/> </root> [/code] And this some part of my code: [code] AttributesImpl atts = new AttributesImpl(); AttributesImpl atts2 = new AttributesImpl(); AttributesImpl …

Member Avatar for peter_budo
0
243
Member Avatar for vbx_wx

I am not used to php but i need to use a script now, but it always give me a windwos error. This is my script: [code] $PHP_PATH = "c:\Program Files (x86)\PHP\\"; $PHP_PATH = addcslashes($PHP_PATH, ' '); $VR_PATH = dirname(__FILE__)."\VRClient.php"; $VR_SERVER = "http://localhost:8080/vrmobile/VRServer"; $handle = popen("C:\WINDOWS\system32\cmd /C start ".$PHP_PATH." -f …

Member Avatar for vbx_wx
0
115
Member Avatar for vbx_wx

I'm trying to print all .pdf files from a partition using Boost.Filesystem and Boost.Regex but when I run my program, Visual Studio 2010 gives me an Abort error. Here is my code: [code] path Path = "e:\\"; boost::regex reg("*.pdf"); for(recursive_directory_iterator it(Path); it != recursive_directory_iterator(); ++it) { if(boost::regex_search(it->string(), reg)) { cout …

0
56
Member Avatar for vbx_wx

I want to open a process in the background and it should be invisible in both Linux and Windows. I made something like this, but I don't know the console still appears on the screen: [code] command = "cmd /C dir c:\\" startupinfo = None if os.name == 'nt': startupinfo …

0
56
Member Avatar for vbx_wx

How can i rewrite set::inser() function,using a vector::insert() : [code] class Set { std::vector<T> set; public: void insert(const T& t) { set.insert(set.end(), t); } [/code] I tried to insert them at the end,but it wont work corectly.

Member Avatar for dexblack
0
140
Member Avatar for vbx_wx

I have a sockets projects using tcp/ip and it is structured like this: [code] class Socket { int desc; Socket(); // create socket here }: class TCPSocket: public Socket { public: int send(); int recv(); }; class ClientSocket: public TCPSocket { public: void connect(); }; class ServerSocket: public Socket { …

Member Avatar for vbx_wx
0
168
Member Avatar for vbx_wx

With witch header do you use this function ? I tried winsock2.h, ws2tcpip.h with no luck. Any help please ?

0
111
Member Avatar for vbx_wx

I am trying to send a structure via tcp/ip,i dont know if i am doing it good,it prints a strange chaarcter in my screen.Here is my code that i am using to send and recv: [code] void Send(const void* buffer, int size) { int n; if((n = ::send(desc, (char*)&buffer, size, …

Member Avatar for gerard4143
0
144
Member Avatar for vbx_wx

I made a server and i tryed connecting using a telnet saying "Connection refused" . What am I doing wrong ? Thanks in advanced. [code] /* * server2.cc * * Created on: Jan 29, 2011 * Author: astanciu */ #include <iostream> #include <winsock2.h> using namespace std; class Server { WSAData …

0
68
Member Avatar for vbx_wx

I made a lot of client server programs using tcp/ip but how do i know what version of socks protocol i used ? I just heard about socks5 and i was confused what kind of version i was using until now . Thanks

0
60
Member Avatar for vbx_wx

Hello,my question is: Is there any way i can make my current account to have admin rigths? I search on google but instead of give my current account admin priviliges it created a new Administrator account. I am using win 7

Member Avatar for caperjack
0
118
Member Avatar for vbx_wx

Is there any difference between polymorphism implemented in c++ and the one implemented in python ?

Member Avatar for bumsfeld
0
74
Member Avatar for vbx_wx

[code] class A: def __init__(self): print 'A()' class B(A): def __init__(self): A.__init__(self) print 'B()' class C(B): def __init__(self): B.__init__(self) print 'C()' c = C() [/code] Cans omeone help me explaining what am I doing wrong here? I`m getting an error like: [code] B.__init__() TypeError: unbound method __init__() must be called …

Member Avatar for vbx_wx
0
131
Member Avatar for vbx_wx

[code] a = 10 def foo(x = a): print x a = 5 foo() [/code] Can someone explain why it prints 10 ?

Member Avatar for vbx_wx
0
101
Member Avatar for vbx_wx

I am getting this error when compiling in Eclipse Indigo in windows: [code] mingw32-make all 'Building file: ../src/testing.cpp' 'Invoking: GCC C++ Compiler' g++ -I"c:\MinGW\lib\gcc\mingw32\4.5.0\include\c++\tr1\" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d" -MT"src/testing.d" -o "src/testing.o" "../src/testing.cpp" g++: no input files mingw32-make: *** [src/testing.o] Error 1 [/code] Can someone help me …

Member Avatar for vbx_wx
0
123
Member Avatar for MasterGberry

complete code would be usefull. I guess you miss typed there and its: [code] Patch::Patch(const Patch& p) not Patch::Patch(const Patch^ p) [/code]

Member Avatar for MasterGberry
0
1K
Member Avatar for vbx_wx

How can i get the content of a pop-up(that has no adress) from a specific website?

Member Avatar for group256
0
72
Member Avatar for vbx_wx

[code] 09:00 Johnny Bravo 10:25 Dexter laboratory 11:55 Cow & Chicken ..................... 18:10 I am weasel .................. [/code] Anyone knows a method to implement if i enter 10:30 to print whats on at that hour? (Cow & CHicken in my case) Thanks.

Member Avatar for richieking
0
84
Member Avatar for vbx_wx

Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this …

Member Avatar for -ordi-
0
117
Member Avatar for vbx_wx

[code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the …

Member Avatar for TrustyTony
0
86
Member Avatar for vbx_wx

Hello,how can I make the 2 for`s to work at the same time to find out the diferences between A and B ? Thank you. [code] A = "gtggcaacgtgc" B = "gtagcagcgcgc" C = "gcggcacagggt" D = "gtgacaacgtgc" def cromo(a, b): inc = 0 for i in a: for j …

Member Avatar for woooee
0
207
Member Avatar for vbx_wx

[code] lis.py class mylist: def __init__(self,l): self.data = l; def __add__(self,l): self.data = self.data + l def __repr__(self): return self.data main.py from lis import* x = mylist([1,2,3]) x = x + [4,5] print x [/code] Why is it printing None? What do I did wrong,Thanks.

Member Avatar for vbx_wx
0
95
Member Avatar for vbx_wx

Anyone know why i get this error in eclipse when i compile any program: [code] error: to generate dependencies you must specify either -M or -MM [/code]

Member Avatar for vbx_wx
0
105
Member Avatar for vbx_wx

Hello,I have a problem in my prolog project about Train Routig: I have a few link: [code] link(milano,paris). link(milano,berlin). link(paris,budapest). link(berlin,madrid). ................. [/code] I need to make a route() predicate that takes a origin city and a destination,and a list path. The list path should contain what city traverse for …

0
61
Member Avatar for vbx_wx

[code] void* thread(void* arg) { std::cout << "Hi" << std::endl; return arg; } void clientFunc(TCPSocket* s) { pthread_t pid; pthread_create(&pid, NULL, &thread, NULL); pthread_join(pid, NULL); } int main() { ServerSocket s(4543); try { while(1) { clientFunc(s.accept()); } }catch(Error& err) { err.what(); } } [/code] My question is, how can I …

Member Avatar for daviddoria
0
105
Member Avatar for vbx_wx

[code] void* thread(void* sockArg) { TCPSocket* s = (TCPSocket*)sockArg; s->showUser(); return sockArg; } int main() { ServerSocket serversocket(4543); try { while(1) { TCPSocket* socket = serversocket.accept(); pthread_t pid; pthread_create(&pid, NULL, &thread, socket); pthread_join(pid, NULL); } }catch(Error& err) { err.what(); } } [/code] Why doesnt my s->showUser(); gets called ?

Member Avatar for mike_2000_17
0
85
Member Avatar for vbx_wx

I`m getting the following error in my code(line 65): [code] error: expected constructor, destructor, or type conversion before ‘*’ token [/code] [code] namespace SocketSpace { class Error { public: Error(const std::string& msg = 0) throw(); const char* what() throw(); ~Error() throw(); private: std::string message_m; }; class Socket { public: void …

Member Avatar for vbx_wx
0
144
Member Avatar for vbx_wx

Hello ,I want to implement a client server program,but I wish to use more OOP into the design(inheritance,virtual....),I only come up with this design and I nedd some pointers what can I do better,any sugestions will be welcome,Thanx [code] class TCPSocket { public: virtual void send(std::string buffer_m) throw(Error); virtual void …

Member Avatar for vbx_wx
0
130
Member Avatar for vbx_wx
Member Avatar for SgtMe
0
56
Member Avatar for vbx_wx

[code] int main() { const char* p = "Hello"; cout << sizeof(p) << endl; } [/code] Why this is 4 ?

Member Avatar for nbaztec
0
99
Member Avatar for vbx_wx

I know how to test for a blank space,but how can you test for more than one blank ?

Member Avatar for vinitmittal2008
0
288
Member Avatar for vbx_wx

[code] #include <iostream> #include <cstring> using namespace std; int main(int argc, char* argv[]) { const char* p = "1111"; int len = strlen(p) - 1; int a[len]; for(int i = 0; i <= len; i++) { a[i] = ~(p[i]- '0'); } for(int i = 0; i <= len; i++) { …

Member Avatar for gerard4143
0
94
Member Avatar for vbx_wx

Is there any diference between: [code] X* x = new X; X* y = operator new X; [/code]

Member Avatar for arkoenig
0
93
Member Avatar for vbx_wx

[code] package cls; public class main34 { public static void main(String[] args) { for(int i = 2; i <= 100; i++) { for(int j = 2; j <= i; j++) { if(i % j == 0) { break; } else { System.out.println(i + " "); } } } } } …

Member Avatar for apines
0
88
Member Avatar for vbx_wx

How can i right shift a binary number and display all of the positions in java ?

Member Avatar for Taywin
0
109
Member Avatar for vbx_wx

[code] import java.util.*; package everything_is_an_object; class MyClass { int i; char c; } public class Main { public static void main(String[] args) { MyClass x = new MyClass(); System.out.println(x.i); System.out.println(x.c); } } [/code] My error is on the second line,that was generated by my IDE,with the package. What si the …

Member Avatar for Ezzaral
-1
88
Member Avatar for vbx_wx

Anyone knows some good books about OOP in C++ ? But not books with theory,i want to learn how to implement oop.

Member Avatar for Fbody
0
57
Member Avatar for vbx_wx

[code] #include <iostream> using namespace std; class X { public: X(int) { cout << "X()" << endl; } void f() { cout << "f()" << endl; } }; class Y: public X { public: Y(int): X(1) { cout << "Y()" << endl; } }; class Z: public X { public: …

Member Avatar for mike_2000_17
0
105
Member Avatar for vbx_wx

[code] class Security { public: virtual ~Security() {} }; class Stock: public Security {}; class Bond: public Security {}; class Investment: public Security { public: void special() { cout << "Special Investment function" << endl; } }; class Metal: public Investment {}; int main() { Security* s = new Metal; …

Member Avatar for vijayan121
0
105
Member Avatar for vbx_wx

How can I define an operatpr [] for this class ? [code] #include <iostream> using namespace std; class Vec4 { float f1,f2,f3,f4; public: Vec4(float ff1, float ff2, float ff3, float ff4): f1(ff1), f2(ff2), f3(ff3), f4(ff4) {} float operator [] (int index) { } Vec4 operator + (const Vec4& v) { …

Member Avatar for mrnutty
0
92
Member Avatar for vbx_wx

[code] string& f() { string str = "name"; return str; [/code] I need to return a reference to a string,but i am confused how to return corectly from f(),any help ?

Member Avatar for Ketsuekiame
0
109
Member Avatar for vbx_wx

Why my program doesnt print ? [code] #include <iostream> using namespace std; class String { string s; public: String(string ss): s(ss) {} string substr(int pos = 0, int n = string::npos) { string str; int j = 0; for(int i = pos; i <= n; i++) { str[j] = s[i]; …

Member Avatar for Ancient Dragon
0
94
Member Avatar for vbx_wx

How can i calculate an expresion of type string: [code] strng eval = "129 + 23 - 54 * 2 / 4"; [/code] Any ideas?

Member Avatar for bunnyboy
0
92
Member Avatar for vbx_wx
Member Avatar for mayyubiradar
0
78
Member Avatar for vbx_wx

Why am I getting this errors when running this program where i tried to create 2 specialized templates to use int and double: [code] #include <iostream> using namespace std; template<> int sum<int>(int* array, int start, int stop, int init = int()) { int* stp = (array + stop); int* str …

Member Avatar for sandy#123
0
455
Member Avatar for vbx_wx

Why copy remains empty after every assgment in for() ? [code] int main() { const char* c = "abcde"; int size = strlen(c); char* copy = new char[size]; for(const char* p = (c + size - 1); p >= c; p--) { *copy++ = *p; } copy[size] = 0; for(int …

Member Avatar for muze
0
101
Member Avatar for vbx_wx

Does anyone knows a program so i can delete any folder,im having problems with some folders it keep saying permission denied .....

Member Avatar for Ancient Dragon
0
32
Member Avatar for vbx_wx

Can someone help me with a good template tutorial about c++ templates from begining to advanced ?

Member Avatar for Narue
0
27
Member Avatar for vbx_wx

[code] #include <iostream> #include <cstring> void rev(const char* str) { char* p = new char[strlen(str) + 1]; for(int i = 0; str[i] != '\0'; i++) { p[i] = str[strlen(str) - i]; } p[strlen(p) + 1] = '\0'; std::cout << p; } int main() { const char* s = "vBx"; rev(s); …

Member Avatar for LordNemrod
0
293

The End.