General C++ Programming - October 2011 (Page 19)

Compiling error.
 
I have a program that I have fully working if I only use 1 .cpp file and .h file together. Problem is I have to link 2 .cpp files and the header file. w...
[4 replies] Last: You appear to be missing a header guard on wizard.h and it's being i... (by Alrededor)
by jkayme
Array of pointers question: segmentation fault
 
Hello everybody! I'm getting a segmentation fault, and I'm not sure why. Basically I'm trying to print out a game board where '@' ('iblock' class) is the bor...
[6 replies] Last: Sorry I couldn't get back to you keineahnung, but thanks for your help... (by jkayme)
Recursively search a string to find a character
 
I will admit, this is a homework problem, but I have tried writing the code and am having a bit of trouble getting it working. The function is supposed to se...
[4 replies] Last: Thank you guys for your replies, but the function was given to us and ... (by cdseasholtz)
completing calcs within program
 
I have a .cpp file that gathers the number of occurances of a letter in a .txt file and also gathered the count of total letters to get the percentage. I am hav...
[2 replies] Last: Thank you appreciate it (by luithlej)
by jackie
Xcode I/0 File
 
Ok, i am running a Link List program and want to Save all the Data onto Files. Thats fine. But i cant find the files any where in my Mac.. can someone tell ...
[8 replies] Last: Try running your program in release mode. Debug mode can cause some pr... (by jackie)
Do you have to copy over static data in a copy construcutor?
 
If I have a static singleton pointer in my class do I have to provide my own copy constructor to handle the copying or will the compilers version work? I know ...
[3 replies] Last: Yes. (by shacktar)
Input using getline
 
int main (int argc, const char * argv ) { int numberOfAtoms = 0; ifstream in; char atomsIn ; in.open("Volume.crd"); if (!in.is_open...
[7 replies] Last: [co de] "Please use code tags" [/co de] If you want a const char*... (by ne555)
error LNK2019: unresolved external symbol
 
I keep getting these error messages: "error LNK2019: unresolved external symbol "void __cdecl MainPhase(class std::vector<class std::basic_string<char,struct...
[1 reply] : Your declarations of Beginning , DrawForKaiba , and MainPhase take... (by shacktar)
by Jabu
Help with internship application
 
I did systems support which is the same as MSCE, I am in the second year of my computer science degree, I wanted to apply for an internship program, but I am co...
[1 reply] : If you are in computer science talk to your professors and see what th... (by Azagaros)
Matching two strings
 
I have generated 1000s of strings. I want the program to match each of the string to 20 master strings and display those generated strings which match with any ...
[2 replies] Last: If you are speed obsessive. Create a hash_map<string,int> and put you... (by mik2718)
by Tatipu
Which loop should I use?
 
Okay saying that I have this line of code cout<<"Number of characters: "; cin >> n; And I want the user to input nothing higher than 100 and nothing lower th...
[no replies]
by kw1991
need help please
 
i need help on a few things in my program here is the code: const int NUM_SCORES = 6; typedef struct { int day; int month; int year; } Date; ...
[3 replies] Last: ok but the problem im having is i don't know what the code should be t... (by kw1991)
do....while loop problems
 
I'm very new to c++, and having alot of issues with a project I have to do. The project is Write a program in which: A random integer between 0 and 500 is gene...
[1 reply] : You need to be in a loop until the correct number is found (not 2 loop... (by eypros)
C++ Books.
 
In one of my earlier posts, I asked the best place to learn c++ online. I was directed to books, as I figured. I was told to get "The C++ Programming Language",...
[1 reply] : did you try the tutorial in on this site? http://www.cplusplus.com/doc... (by Azagaros)
by eypros
Gtkmm questions
 
Hello, I am learning Gtkmm and trying to figure out the examples in the " Programming with Gtkmm ". Anyway I have some question: 1) Is there any forum ded...
[no replies]
[win32 API] Load & Show Images from Resource
 
Hi, I want to create "loading" animation, I have 4 images in resource, how can I show one of them at selected 'point' and then delete it? Thanks!
[6 replies] Last: ok, but I have another problem, I can't show image with BitBlt() in on... (by mekkatorqu)
READING AND WRITING MULTIDIMENSIONAL ARRAYS
 
HI I'M NEW TO BORLAND C++, AND WE HAVE THIS PROJECT ON IT. I REALLY NEED TO KNOW HOW TO WRITE SEVERAL MULTI-DIMENSIONAL ARRAYS INTO A FILE THEN READ THEM BAC...
[3 replies] Last: how do you put them a and b in one file instead of many files? I reall... (by blackened789)
Single Nouns to Plural Nouns Program!
 
I have a problem here, I need to make a program that asks the user to input a noun and the program will make it plural (irregular nouns are not counted) i go...
[11 replies] Last: nvm i already did it, i'll mark this as solved :) (by MaZtRHaXoR)
Passing 2D array into function
 
I've a question regarding C++. Let's say I have a function which searches an array for a specific number. I also have a two-dimensional array which I will...
[2 replies] Last: Ugh, now I feel like an idiot. The whole time, all I had to was change... (by TrippyJing)
Singleton Unresolved External in Seperate Library
 
Hey there everyone, busy implementing a globals class with all the singletons I need in my "Engine" project. I had handled this differently prior, but felt it n...
[4 replies] Last: Anyone have any thoughts on that? NULL is a macro that's automatic... (by shacktar)
October 2011 Pages: 1... 1718192021... 36
  Archived months: [sep2011] [nov2011]

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