Posts
 
Reputation
Joined
Last Seen
Ranked #483
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
10
Posts with Upvotes
10
Upvoting Members
8
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
6 Commented Posts
0 Endorsements
Ranked #2K
~26.2K People Reached
Favorite Tags

55 Posted Topics

Member Avatar for restrictment

'Thinking in C++' is a perfect book for beginners and it also explains most of OOP aspects well

Member Avatar for emeraldamerican
0
6K
Member Avatar for srinath reddy

[QUOTE=srinath reddy;1661911]thank you[/QUOTE] i think she meant "Why are you posting it here?" :D, i have the same question in mind, also i'd like to see your code converter(but i have big doubts you are not lying)

Member Avatar for Jeff_11
0
1K
Member Avatar for dospy

i've recently engaged in an argument with my dad about CDs and DVDs vs memory sticks and i basically stated that since nowadays it is common for almost everyone to have at least a 16GB stick, CDs and DVDs are basically becoming useless/non-convenient. he countered me stating that CDs have …

Member Avatar for deceptikon
0
229
Member Avatar for dospy

i want to construct a Message class which encapsulates and handles data for sending over a network; i want to acheive something like this: Client->Send(new CMsgPacket("Some Message", CHAT_COLOR_WHITE, CHAT_TYPE_SERVICE)); // send function deletes the data after processing it // this is the CMsgPacket class class CMsgPacket { private: int Msg_Len, …

Member Avatar for RonalBertogi
0
285
Member Avatar for dospy

the basic idea is that i have a config file where i need to take entries in different formats(the key is always a string and the value could be any type: int, float, string etc) from and the file has the following style: firstentry 1.5 secondentry 35 thirdentry somestring and …

Member Avatar for sepp2k
0
392
Member Avatar for Azmah

you don't have to buy a book, search on google the book name followed by PDF and you'll find pdf file(witch you don't have to download if you don't want) where you can learn from ex: "thinking in c++ pdf" - >[url]http://www.lib.ru.ac.th/download/e-books/TIC2Vone.pdf[/url]

Member Avatar for Labdabeta
-1
473
Member Avatar for dospy

first of all, sorry if this thread is in the wrong section, but i think this is the most appropiate one i need clear instructions for installing AND configuring QT for my machine(i am running windows 7 on 64bit) i don't want other reference links unless they perfectly suit my …

Member Avatar for dospy
0
134
Member Avatar for Jennifer84

i honestly think he means "a way to spoof IP" and probably by modifying the packet content to replace his true IP with a fake one, which, as far as i know, is not 'reliable' since you will be able to spoof the (sent) packets' IP, but you won't be …

Member Avatar for rubberman
0
294
Member Avatar for Dman01

because that could be triggered by others application which modify the clipboard. i cannot help you OP, sorry

Member Avatar for dospy
0
230
Member Avatar for dospy

i'm learning about networking on a site and there says there are 3 types of sending data: unicast, multicast and broadcast in the unicast case the IP layer encapsulates the IP destination(let's say "derp"). the interesting fact i've read about the unicast is that all machines within the same network …

Member Avatar for Taywin
0
119
Member Avatar for 'AnKo

i think he wants to know that if there is a way to output variables with a loop statement which contains only one instruction whithin the brackets like this: int age = 32; char name[50] = "Pickatchu"; double height = "1.65"; for(int i = 0; i < 3; i++) { …

Member Avatar for Ancient Dragon
0
139
Member Avatar for dospy

t to do something like [code] void f1(int a[][]) {//do smth } //and call the function like this F1({{1,0},{2,5}});[/code]

Member Avatar for dospy
0
123
Member Avatar for TheNNS

[CODE]#include <iostream> #include <fstream> #include <string> using namespace std; int main( ) { ifstream in("abc.txt"); string temp; vector<string> vect; while(getline(in,temp)) vect.push_back(temp); for(int i = 0; i != vect.size( ); i++) CONSOLE_Print(vect[i]); return 0; } [/CODE] this should work, and it's smaller too edit: if you want to skip blank lines …

Member Avatar for TheNNS
0
3K
Member Avatar for meme dreame

instead of [CODE] void student_grades(student_grades&paste){ name=name.paste; Id=Id.paste;[/CODE] try [CODE] void student_grades(student_grades&paste){ name=paste.name; Id=paste.Id; [/CODE] also, you'd better follow some tutorials of how to write clean code and improve your writing style because you code layout is horrible(no offense)

Member Avatar for meme dreame
0
110
Member Avatar for TheChosen0ne

i think he means that he can write an web page using C++ for ex. a console - server that imitates the behavior of an HTML written website; it is possible, tho a lot more effort to write it

Member Avatar for Moschops
0
143
Member Avatar for terey

you must provide [B][U][I]CLEAR[/I][/U][/B] details if you want people to help you, what exactly is suppose your code to do?

Member Avatar for gyme20
0
95
Member Avatar for Isaac1024

first post your code, then we will help none will do all your work for you read the forum rules please

Member Avatar for dospy
0
74
Member Avatar for sergent

or you can write the namespace contents and than wrap it all in the namespace u wanted

Member Avatar for dospy
0
100
Member Avatar for dospy

i've downloaded the last version of boost(1_47_0) but i don't know how to build it, i tried to find a tutorial on google but that didn't help much because it was for a very old version and some thing changed. anyway, my compiler does have minimal support for C++0x, will …

Member Avatar for dospy
0
153
Member Avatar for sanuphilip

if this is your homework it means that you should know to do it, it's not our fault that you didn't learn when you have to. we can't do that for you, we only can guide you to the right direction, not build the path for you

Member Avatar for dospy
-1
342
Member Avatar for Sunshine2011

describe your problem in more detail, anyway if i got it right, you can't do what you want cuz the compiler won't let you return a reference to temporary object(declared in the function body) ps: your code isn't even valid so i can't tell exactlty what you really want..

Member Avatar for vijayan121
0
159
Member Avatar for FRGT/10

>> Basically, because you didn't call it properly, you've unintentionally overloaded the function, but you don't have a definition/implementation of the overloaded version. i think you'r wrong about that, you cant declare a function as this [CODE] b.getLeafCount(); [/CODE] you must use :: operator to tell the compiler that it …

Member Avatar for homeryansta
0
312
Member Avatar for syaminismail

none will do your homework unless you at least try and tell us what you don't know, if you know nothing about how to do it, too bad, go and learn

Member Avatar for Narue
0
224
Member Avatar for dospy

i've seen many programs using printf( ) for outputing(probable ported from C) but anyway, is there any difference between printf and cout? also i've seen many functions(expecially in windows.h) using w_char*(wide char string) as arguments or return value(and it bugs me because it makes difficult to use with strings) what's …

Member Avatar for dospy
0
271
Member Avatar for ntrncx

[CODE] ConstructorX(string first):firstName(first) [/CODE] basically, when you pass an argument to this function, your program will: 1)create an string object(first) 2)copy contents from the argument passed to the object 3)firstName will be initialized with the object(note: another copy activity) now, if you use this way [CODE] ConstructorX(string &first):firstName(first) [/CODE] your …

Member Avatar for dospy
0
225
Member Avatar for D.M.

[QUOTE=jackmaverick1;1652695]I wouldn't go with the microsoft products because they are too resource heavy, and are too complex for simple things.[/QUOTE] the more complex, the more flexible IMO msvc is a very good compiler since it has a lot of interface facilities, as well as a lot of flexibility

Member Avatar for pseudorandom21
0
327
Member Avatar for dospy

i have this question in mind since i first found out that you can declare and array like this [CODE] <type>* nArray [/CODE] how does the compiler how much storage to allocate? i've heard that it doesn't allocate any storage, it just points to some address and when you use …

Member Avatar for dospy
0
105
Member Avatar for caut_baia

[QUOTE=firstPerson;1659034]Yes I think Visual studio [b]2010[/b] has it[/QUOTE] not really, MSVC 2010 has little support for c++ 0x for example the syntax [CODE] for(int& x : <some vector/array/pointer>) [/CODE] is not valid same goes for 'constexpr' and many more.. for more vizit [url]http://blogs.msdn.com/b/vcblog/archive/2010/04/06/c-0x-core-language-features-in-vc10-the-table.aspx[/url]

Member Avatar for caut_baia
0
443
Member Avatar for dospy

i really need a GOOD socket tutorial, i've followed some of them from google but they aren't complete, i know that socket programming is forked into many categories, basically i am interested blocking & non blocking sockets, synchronous & asynchronous sockets(used with select() and FD_ISSET macro etc) PS: i know …

Member Avatar for dospy
0
168
Member Avatar for buzz9948

the code looks fine to me, what exactly is the problem? edit: noone will do the functions for you if you don't at least try to... we are here to help people, and by giving them the full code we don't help them at all, they need to understand first

Member Avatar for palav sandeep
0
128
Member Avatar for dragon_chick

my guess is that you put the [CODE]srand((unsigned int) time (0));[/CODE] in a while, am i correct?, if yes, just move it first line after main. remember, srand must be called ONLY ONCE(ofc, excluding the cases when you purposely call it more than one time) for the code to work …

Member Avatar for dragon_chick
0
415
Member Avatar for anujthefuhrer
Member Avatar for dospy

when you want to decript a program's protocol how do you do it? you use an packet listener(eg. WireShark) and try to figure out what each packet means? is this the only solution? cuz it seems to me like a lot of hard work, is there anything to make this …

Member Avatar for dospy
0
191
Member Avatar for coolboym99

noone will help you to do such a program because your purpose of using it is just stupid. it's like you would want to keep yourself tied when you know how to escape

Member Avatar for doug65536
0
159
Member Avatar for anujthefuhrer

[CODE] int a[10]; int* b = a;//b pointing to a[0] b++;//now b pointing to a[1] //b[0] == a[1] //b[-1] == a[0] b[-1] = 123;//exact same thing as 'a[0] = 123;' [/CODE]

Member Avatar for Narue
0
189
Member Avatar for Zssffssz

font has nothing to do whit ofstream, ofstream is used only for writing to a file the text editor that you are using has features that change the font, but that doesn't have anything to do with what the file contains

Member Avatar for Zssffssz
0
104
Member Avatar for dospy

i am planning to start learning how to use threads. my question is: should i first learn windows.h's functions for threading before boost to get the pattern or should i jump right to the boost threads? ps: sry if i posted in the wrong section

Member Avatar for dospy
0
251
Member Avatar for markfw

i am not sure what's the deal with all this unsigned/signed issues, my guess is that has something to do with the fact that after it reaches it's top/bottom range, a variable starts 'resetting' from the other side(if you understand what i mean) anyway, if you want a function to …

Member Avatar for mike_2000_17
0
202
Member Avatar for Tom_Weston

try this [CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main( ) { char* test; cin.getline(test, 256, '\n');// note: use cin.getline( ) for getting string inputs string Stest(test); ofstream myfile(Stest.c_str( ));//myfile.open( ) does not create new file myfile << "Test\n"; myfile.flush( );//needed for the file to be …

Member Avatar for Tom_Weston
0
107
Member Avatar for dospy

there are 2 common ways to loop through a vector 1: [CODE] vector<int> myvec; // let's assume it's initialized for(int i = 0; i != myvec.size( ); i++) { // code // access by 'myvec[i]' } [/CODE] 2: [CODE] vector<int> myvec; // let's assume it's initialized for(vector<int> :: iterator i …

Member Avatar for dospy
0
182
Member Avatar for dospy

basically i have a header full of function prototypes(util.h) and a cpp file with the functions body [CODE] // util.h #include <ctime> uint32_t GetTime( ); uint32_t GetTicks( ); // util.cpp #include <util.h> uint32_t GetTime( ) { return GetTicks( ) / 1000; } uint32_t GetTicks( ) { return clock( ); } …

Member Avatar for Fbody
0
2K
Member Avatar for marirs07

you basically can't 'find out the address' of something that does not exist, you need an instance of the given class/struct to take out it's address when you say, for example [CODE] struct MyStruct { int someVarName; };[/CODE] you don't declare anything(you just Define), thus you can't take it's address …

Member Avatar for marirs07
0
3K
Member Avatar for Jsplinter

you could use a void pointer(ofc you'll have to add more interface to your class to eliminate error prone as void pointers are very dangerous)

Member Avatar for gerard4143
0
154
Member Avatar for GSLENK

i think the problem is your project properties try this: File->New Project->Win 32 Console App now, a window will pop up; DO NOT PRESS FINISH Click next, make sure that the application type is 'Console application' and uncheck the 'Precompiled heather' box and check 'empty project' box everything should be …

Member Avatar for dospy
0
178
Member Avatar for dospy

i've never knew how to use command line arguments since the first source code i used to edit(and from i learned basics of c++) was using a config file to 'read' user input data on program startup and not command line arguments. now my question, what's the difference between using …

Member Avatar for dospy
0
2K
Member Avatar for Xide

push_back() is a function that pushes an element into the vector [CODE] std::vector<int> variables; // this creates an empty vector of int variables variables.push_back(1); // is the same thing as variables[0] = 1, except you are not allowed to set values using "variables[0] = 1"; if you do, your program …

Member Avatar for mrnutty
0
167
Member Avatar for ghostile

as a little piece of advice: next time you are dealing with containers/typed/functions etc defined in a header you could try this site, it's very helpful [url]http://www.cplusplus.com/reference/[/url] this might help you if you're still having some trouble using 'list' [url]http://www.cplusplus.com/reference/stl/list/[/url]

Member Avatar for dospy
0
231
Member Avatar for Rmaure

more irritant thing is that what you're asking has less matter with c++ and more with logic, you should really try harder, it's not so complicated

Member Avatar for dospy
0
222
Member Avatar for dospy

hi, i am new to this forum so i made this post for presenting myself oh, and for those who would say that i registered about 3 years ago, i must say that when i registere, i didn't intend to be active on forum, i registered only to put one …

Member Avatar for e-papa
0
176
Member Avatar for dospy

what's the difference between: [CODE] // main.h #ifndef X_H #define X_H #include "point.h" // supposing that point.h contains the declaration of Point class class MyClass { private: Point m_Point; //... }; #endif // main.cpp #include "main.h" //... [/CODE] and [CODE] // main.h #ifndef X_H #define X_H class Point; class MyClass …

Member Avatar for dospy
0
116

The End.