General C++ Programming - November 2012 (Page 22)

hey, about file pointers
 
Hello! the question is in C! (sorry for that) : Is it possible to run with two pointers on the same file having each of them point to different location..? Le...
[1 reply] : It's the same in C and in C++: there is only one file I/O position ind... (by Cubbi)
Undefined Reference Woes
 
I've been helping a friend out with their class on C++ and the most recent program has us stumped. The .h/.cpp files were given to us in a "do not touch" manner...
[15 replies] Last: Alas, the benefits of sequential memory locations of arrays but the sp... (by Volatile Pulse)
HELP! Structures!!
 
I have this assignment, and the teacher said that it is open internet, open book, etc. I cannot figure out how to do the last part! 1.Create an array that co...
[16 replies] Last: I ended up having to submit it as it was, but i got it to work, for th... (by akemikanegae)
by dfith
ld: duplicate symbol
 
I have 3 header files, x_tuple.h, node.h, rbtree.h. The three compile fine together but when I compile them with rbtree.cpp and main.cpp I get: ld: duplicate...
[5 replies] Last: Thanks for that explanation.. it makes a lot of sense. When researchi... (by dfith)
pointer management within methods
 
I have a question that has been in the back of my mind for a while now and up to now I have assumed that the objects are destroyed after the function call but t...
[3 replies] Last: Thanks for clearing that one for me ! (by itsgoingtocrash)
Server only receives from client[0]?
 
Client 's messages get received and relayed back to other clients perfectly through the server, but if any other client (client , client , etc.) try the server ...
[no replies]
by hudak
please help me
 
#include <iostream> #include <cmath> using namespace std; int main(void) { double TotalArea; double AreaSquare; double Areatriangle; double Areacir...
[2 replies] Last: 1) if you are using dev c++ use {#include<conio.h> and getch()} 2)in t... (by Legendary Praveen)
Guidance for small gaming programs in C++
 
Greeting everyone This is my 1st post in this website i found this website very interestingly with good number of programmers, I am new to c++,I want to cr...
[8 replies] Last: i tried them but didn't worked (by Legendary Praveen)
File Handling Problem..
 
Say i open a file using fopen() for writing and leave it open.. i keep writing to it, finally the buffer will reach its limit save the data to file(just like f...
[6 replies] Last: http://www.cplusplus.com/reference/clibrary/cstdio/setvbuf/ (by Chervil)
why overloading getline return std::istream&
 
like below,in my book, it's part a Student class function declaraction: friend std::istream& getline(std::istream& in, Student& stu); why the return type is...
[9 replies] Last: In C++11, the 'real code' is: if ( static_cast<bool>(getline(std::ci... (by cire)
Boost Tokenizer Class
 
I am using the Boost tokenzer class to parse very large (100mb +) csv files. The results are generally very good; however, my current implementation requires m...
[3 replies] Last: Thank you both for your replies. hamsterman: I agree with you tha... (by Chris3300)
C++ knowledge for game programming
 
I soon want to be able to make a little game with C++, and I was wondering what knowledge/skills will I need to create a basic 2d game. By skills and knowledge ...
[10 replies] Last: Thanks, Guys really helpful :D. And I might message you skarla when I'... (by DJLad16)
Hash Function CityHash C++
 
Can Anyone provide me a link to where I can find the C++ code for CityHash fucntion.
[9 replies] Last: > CIthHash is a hash function like Pearson hashing. > it maps a string... (by JLBorges)
double linked list
 
this code is not running although the compiler does not show any warning or error anyone can help? //doubly linked list #include <iostream> using namespa...
[2 replies] Last: ok i will try it thanks for the suggestion by the way :) (by ahmadtariq16)
by AceK
HOW CAN I CREATE A SOFTWARE INTERFACE TO THE INTERNET?
 
Hi there, I've written a small console program that is suppose to work like a chatroom. My intention is to have my girlfriend install the program on her compute...
[3 replies] Last: Check out SDL and SDL_net. It makes socket connections very simple. ... (by closed account zwA4jE8b)
friend class member function must use "inline" ?
 
here's the overview of the code: // file name -- "tv.h" class Tv; // forward declaration class Remote { public: void voulmeDown(Tv& t); } class Tv { privat...
[4 replies] Last: All function definitions in header files must be inline functions. Th... (by cire)
Exe file crashes when closed...
 
I figure that I should probably figure out how to allocate a memory buffer or something so that the the exe file does not crash when it is done. I want to have ...
[11 replies] Last: @Quantum7 Just think of these as ideas, there's always more than one w... (by Chervil)
by hudak
need help
 
Develop and run a C++ program to perform the following: A. Present the user with a menu to select one of the following options: 1. Convert from Celsius t...
[1 reply] : Wrap your code in [cod e][/c ode] tags Say which line is 48 You are ... (by hamsterman)
Counting Certain Characters
 
I am creating a program in which the user inputs a letter and a phrase and the comp outputs the amount of that certain letter in the phrase. My code is as fol...
[7 replies] Last: No worries! Thanks for all the help. (by mckizzlealmond)
problems while making and moving characters on the screen
 
I had to make a game console which i successfully made. Now i have to make a character that looks like a person and moves on the screen when you press a certain...
[1 reply] : Moving around the console screen? Try 'space' character. (by Imadatobanisa)
November 2012 Pages: 1... 2021222324... 51
  Archived months: [oct2012] [dec2012]

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