Beginners - July 2011 (Page 52)

Stuck on BST. Adding multiple elements into nodes
 
Hello Evereyone, I was wondering if someone could explain me how to add multiple elements into one node. I got the idea but it doesn't work. Here's what ...
[8 replies] Last: Yes. I just changed functions. So I took your advice and made a follow... (by niebyl2002)
How can i write this?
 
#include <iostream> using namespace std; int main(){ char a=12345; cout<<a<<endl; system("PAUSE"); return 0;} How can i write 12345 number in c...
[16 replies] Last: Thank u Janlan. (by Helegurbann)
by Drue
Include Source
 
The title pretty much says it all. I've got my Periodic Table program working, though still in the process of adding elements. I have a header file with al...
[2 replies] Last: Thanks. I thought of it but didn't think it would work. (by Drue)
Is the sites tutorial complete?
 
Basically, I want to know if the sites tutorial is a complete guide to C++. I started reading another tutorial on a graphics engine, and got caught on the th...
[3 replies] Last: I dont think any c++ resource is complete unless your reading the c++ ... (by acorn)
input accepts to many answer
 
I am making a quiz, and I am having trouble with this code block: string answer2; cout << "PC stands for: " << endl; getline (cin, answer2); trans...
[5 replies] Last: much thanks m4ster r0shi. I always find that my programs contain some ... (by xXmusicmanXx)
by acorn
are callbacks and function pointers the same thing
 
Are callbacks in win32 just like function pointers in c++
[3 replies] Last: crips I wish I could explain stuff as well as you. that was awesome th... (by acorn)
by acorn
static functions
 
I have a question about static functions. I did some googling and just want to verify it. Would it be correct to understand that a static function in c allows t...
[2 replies] Last: ok. oh I never noticed that about line 26. it does look like one. ok. ... (by acorn)
Need help... A couple of errors.
 
I'm nearing the end of my first computer science class, an extremely concentrated, compacted 5 week class. I have this program to write as an assignment. Everyt...
[1 reply] : Okay, I fixed the problem with the segmentation error, but still don't... (by FuzzyOne)
plz help me (polymorphism in c++)
 
why this error happen? http://f.cl.ly/items/0o0k2g3T3y3v3v2z232F/polymorphism.png Code: #include <iostream> using namespace std; class base { public: int i...
[5 replies] Last: You need to assign a proper value to the member i. That it is done usi... (by ne555)
fstream at spaces rather then new line
 
This may be super simple. Not sure. 1. How would I read in from a file. But have the read in stop at a space rather then a newline? 2. Make no...
[2 replies] Last: I tried it and it worked great. I was overly complicating it on myself... (by edithsong)
by SpreX
program doesn't return value
 
I need help with this program. #define DEBUG #define SHOW_INVARIANTS #include <iostream> using namespace std; #include <string.h> #ifndef DEBUG #define ASS...
[1 reply] : [code firstline=103]char String::operator (int offSet) const { AS... (by ne555)
Unknown runtime error
 
U stands for uppercase letters, l stands for lowercase letters,n stands for numbers and c is the total letter of characters. I am trying to get it to count how ...
[3 replies] Last: Good to hear! Remember to mark the topic as solved. (by shacktar)
function question from a noob
 
Hello I'm a C++ noob. I've been learning functions and ran into something that I would like my program to do but do not really see how. I'm sure it can be do...
[7 replies] Last: acorn is correct, his is more efficient, though perhaps the compiler w... (by anonymous23323124)
by Kurt
Adjusting Sprite Speed
 
Hello, I've recently been learning about programming in C++ with SDL and have learned a great deal with the help of the tutorials on http://lazyfoo.net. Current...
[2 replies] Last: Delay created quite a bit of lag unfortunately but I've had some succe... (by Kurt)
bugged compiler??
 
Hi Everyone, I have a function that looks like this: void load_file(string filename) { typ_small arr ; for(j = 0; j != N; j++) arr = 0; ifstream...
[4 replies] Last: Ah thanks, yeah I was using an integer to point to a memory location (... (by ausairman)
by chetan
help me guys...
 
i want to read a text file i.e. 1095,4008,0055 1095,4008,0057 1095,4008,0060 1095,4007,0049 1095,4009,0049 1094,4008,0059 1094,4008,0053 with 3 ...
[1 reply] : Try creating arrays. (by Janlan)
Uninitialized variable
 
Hi! I'm working on a program but can't seem to figure out one run time error which keeps popping up, if anyone can give some ideas? The error is: "Run-Time C...
[3 replies] Last: Mmmm.....yeah! Didn't notice that....thank you :) (by monkeyboy)
Need help with basic login system :( (Using cmd)
 
Hello, Here is my source: http://pastebin.com/6Ni4gFyS It checks the userDB.dat file which holds the main admin account, the db holds: Sam abc123 If I ...
[1 reply] : I guess you could first check the username then make a string filename... (by Breadman)
Checkers Game - Double Jump Check
 
This is My Code. I am Trying to Restrict the Checker to Jump When it Can. And It Should Give Error if at that Time any other checker is moved instead. It Works ...
[2 replies] Last: thank you so much for ur concern.... can u explain to me what flags ... (by ChanGeZi)
by Phiru
I need help about serialization.
 
That matter is that I have KcFile Class below. class KcFile { private: char * m_pbuff; public : void WriteInt(&p_buff); void WriteFloat(&p_bu...
[3 replies] Last: Also this class is for understaing how File I/O works. (by Phiru)
July 2011 Pages: 1... 5051525354
  Archived months: [jun2011] [aug2011]

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