- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 10
- Posts with Upvotes
- 10
- Upvoting Members
- 8
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: 'Thinking in C++' is a perfect book for beginners and it also explains most of OOP aspects well | |
Re: [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) | |
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 … | |
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, … | |
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 … | |
Re: 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] | |
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 … | |
Re: 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 … | |
Re: because that could be triggered by others application which modify the clipboard. i cannot help you OP, sorry | |
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 … | |
Re: 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++) { … | |
t to do something like [code] void f1(int a[][]) {//do smth } //and call the function like this F1({{1,0},{2,5}});[/code] | |
Re: [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 … | |
Re: 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) | |
Re: 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 | |
Re: 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? | |
Re: first post your code, then we will help none will do all your work for you read the forum rules please | |
Re: or you can write the namespace contents and than wrap it all in the namespace u wanted | |
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 … | |
Re: 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 | |
Re: 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.. | |
Re: >> 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 … | |
Re: 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 | |
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 … | |
Re: [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 … | |
Re: [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 | |
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 … | |
Re: [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] | |
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 … | |
Re: 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 |