Beginners - August 2013 (Page 41)

Graph using adjacency list
 
Hi Can anyone tell me how to code a graph using adjacency list as I am new to programming. Thanks in advance. Regards Kanwar
[2 replies] Last: Hi For every node i have a text file that stores the nodes which are ... (by Kanwarpreet)
Ignore please. Just figured it out (after a couple of weeks trying)
 
Help! The purpose of this exercise is to list all primes up to 100. It seems no matter what I do, I either miss at least one prime or I flag some composite nu...
[4 replies] Last: Thank you. (by david1229)
by koga
bool trouble
 
I have a class declare enum to hold 4 bools for movement . class game{ public: game(); void Run(); private: void Process_Events(); void handelPla...
[1 reply] : First of all your class declaration is incorrect. According to the C+... (by vlad from moscow)
Big number. Add commas to them if more than 4 digits
 
My code here works, but it gives a comma to a 4-digit number, e.g. 5890 become 5,890. But I actually don't want that. But if I change the <= 3 condition to <=...
[3 replies] Last: Just to show a way to insert those commas using the standard library. ... (by Cubbi)
Get Directory Path and create new one at runtime
 
How to create folder runtime and place output file into that folder in c or c++?
[4 replies] Last: The function you are looking for is "CreateDirectory()" my good man: h... (by Computergeek01)
I need code for a basic window.
 
I'm starting to build up my reference library and I was wondering if anybody could show me the code for making an empty window in C++ to put the program in. ...
[3 replies] Last: Thanks, this looks like it should. (by GrantPlusPlus)
infile arrays
 
How would one infile an array of numbers from a .txt file? i am trying to make a subprogram that infiles data stored in a .txt file and slightly edits the data ...
[no replies]
Operator Overloading problem
 
Hi, I am having some trouble with overloading the "-" operator. I am just going to paste the code here because everytime I try to explain the problem to the...
[16 replies] Last: Thank you guys sooo much. It is working properly finally. (by FlyingTr)
by Jemar
What would be the best title??
 
Our defense is near im thinking about the best title.. . if someone can help me what title is the best. . thanks asap god bless
[2 replies] Last: I've always liked "Your Benign Munifiscence". Sadly, my colleagues at... (by MikeyBoy)
by zionet
Problem with Matrix very very big m [1000000] [1000000]. How to implement?
 
Greetings, I'm trying to implement a very large matrix with the following line of code: int M But it does not work for the million. Can anyone expl...
[7 replies] Last: You have to install Boost. It's a 3rd party C++ library. http://www.b... (by kbw)
type casting
 
please explain me the meaning of reinterpret_cast<unsigned char *> in value = reinterpret_cast<unsigned char *>(trans.get_data_ptr());
[3 replies] Last: See also http://en.cppreference.com/w/cpp/language/reinterpret_cast fo... (by Cubbi)
c++ else if is skipped?
 
how do i change the code such that it wont skip the else if and if statements. whether i enter 5 , 2 ,3 or other integer , it just says value1 equals value2 i...
[2 replies] Last: omg it works! thanks very much (by reiki222)
Default case not working
 
Hello, Good day. I am working on a simple calculator involving switch cases. But i met with a problem which is only the default case for the first switch ca...
[2 replies] Last: The statement doesn't print out. (by ivan218)
object and pointer declarations
 
Like we have class: class ABC {}; Then what is difference b/w two following declarations: ABC abc; and ABC *abc; Where are use cases of these ...
[11 replies] Last: Milky Buoy, please give a detailed explanation so that itllb convenie... (by MikeyBoy)
by wawawa
convolutional codes with c++
 
Hello, please I am new to c++ and need to simulate convolutional code with c++ any suggestions on how to begin. Thanks
[7 replies] Last: you are posting his in the beginners forum, i don't think this is a be... (by Rechard3)
Pointer error when debugging.
 
My code is compiling but i receive error when i run with the debugger Aplicatie::Aplicatie() { UI::MeniuPrincipal *_pMeniu = new UI::MeniuPrincipal;...
[5 replies] Last: if you're creating a variable that all the functions of your object us... (by Rechard3)
by htmin
C++ container template
 
hi, I am try to write a container memcpy function. However, I can't pass my container as parameter. Could anyone give me a hint? At this moment, I create 1 mo...
[1 reply] : it works for me (by coder777)
by xx1182
Basic Tree Template
 
What i'm whilling to do is to create a basic Tree that accepts all kind of data. But i get an error when trying to dynamically initializate an arm. The Tree sho...
[6 replies] Last: somehow i think that you have a rather faint idea about what you're do... (by coder777)
by jkevin
Code tags
 
How do y'all use code tags???
[2 replies] Last: Another article, which covers some of the different types of tags and ... (by Chervil)
Why we use Namespace
 
In Namespace there are some classes, functions and structs. So what is the use of namespaces?Why we are adding all things in single collection? I had se...
[2 replies] Last: A crude example, i think this will clear ur doubt. namespace ABCBank{... (by SirSmilesaLot)
August 2013 Pages: 1... 3940414243... 51
  Archived months: [jul2013] [sep2013]

This is an archived page. To post a new message, go to the current page.