Beginners - March 2011 (Page 40)

by uTil
undefined reference to constructor
 
Hi I'm afraid that the following code is giving me a "undefined reference to 'strSet::strSet(std::basic_string<char, std::char_traits<char>, std::allocator<char...
[13 replies] Last: An IDE should do that for you. (create new project, add file to proje... (by Disch)
Cin and Array Problem
 
Hey - I'm writing a complicated program, and decided to try a few small test programs to make sure what I'm doing is right, and I have run into a problem. I can...
[6 replies] Last: Pretty much. (by hanst99)
by jonsto
I need to revise this code to copy files using binary I/O (1,2)
 
This program is named CopyFile.cpp, which copies files using text I/O. I need to revise the following program so that it copies files using binary I/O. #inc...
[21 replies] Last: [quote=sohguanh]Why need vector<string> or other data structure to inc... (by ultifinitus)
Array with unknown size
 
Suppose I declare an array. The C++ language demands I declare a size along with the name. I must state a or b etc etc. Suppose further that this array is to ...
[10 replies] Last: Yes, they are still there. '\0' into a char is simply the number zero;... (by Moschops)
writing an integer backwards
 
I've been given the challenge of writing an integer backwards. The barrier I've hit hard is trying to extract a single digit from the number. basically I hav...
[1 reply] : Hint: You are thinking about the decimal system here. In the decimal s... (by hanst99)
return type specification for constructor invalid
 
When I try to run this program, I'm told "return type specification for constructor invalid". I've got my semicolon after the end of the class, so I'm not sure...
[4 replies] Last: That did the trick :) Thanks! (by mybluesock)
Logical error in -ve number
 
in the following program I only want the concept from U that what should i do so plz don't correct the code by ur-self I want to do it my self.in the following ...
[1 reply] : now only line 11 belongs to the if. use {} to have several statements ... (by hamsterman)
by caneta
Vector of a template class into another class
 
Hi everybody. I have a template class which works fine: template<class T> class Flag { string flagName; vector<T> paramList; typename vector<T>::itera...
[7 replies] Last: I'm getting creazy, trying to create a minimal example with boost. He... (by caneta)
VTD-XML 2.10
 
VTD-XML 2.10 is now released in Java, C#, C and C++. It can be downloaded at https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/. This rele...
[no replies]
by sdbd
c++: set and class with set
 
Hi people, I have an orrible error,someone can help me? I post the code file main.cpp #include <iostream> #include <stdlib.h> #include "Neighbor.h" #i...
[2 replies] Last: Yes, i'm italian. I'm sorry for the comment in italian! Today i solv... (by sdbd)
by mpgz
Structuring code with a string function in Visual C++
 
Hello, I am writing my 1st app in Visual C++ Express and I have some questions. I have a text box and a button. The user is asked to enter any word in the t...
[no replies]
by much29
How many words are in the C++ language (1,2)
 
I'm engineer, but not a programmer. My question is simple but it's hard to find the answer by using search engine. "How many words are in the C++ language?" ...
[25 replies] Last: I believe Computer Science is a fairly young discipline in comparison ... (by sohguanh)
How to write this formula
 
Im trying to make a program using the compound intrest formula. The formula is A = P(1+(r/n)^nt how would i write this out in code, because my compiler i...
[2 replies] Last: Thanks(sorry about the vocabulary mix up), but your answer worked perf... (by SOCIALISTICmeow)
Clean UP--
 
I'm new to c++ ,ish. I made a simple calculator and want to know if theres a way to either clean or shorten my code. Or if its better to declare and write EVER...
[3 replies] Last: thnx hamsterman: i had actually though of using add, subtract, afte... (by Widget360)
Simple File Input/Output
 
For this assignment, I'm snagged on what to do next. I'm supposed to be moving contents of one file (containing about 100 random numbers and spaces) to an outf...
[1 reply] : I think I finally found a section in the book to help me. It appears ... (by khouser)
Segmentation fault (1,2)
 
I am pretty sure that I am getting a segmentation fault because of the '(' in my function. The function is suppose to check the grouping of an equation. tem...
[32 replies] Last: ok so now the debugger is saying that t=t->next; is where the fault is... (by sorthon123)
Nested For Loops, im LOST
 
There are 1,000 students and 1,000 lockers, numbered from 1 to 1,000, on one side of a long hallway. The first person went down the hall and opened every locker...
[16 replies] Last: Okay, how would you go about getting the number of factors then? (by Browni3141)
by gabyam
Problems with type char arrays
 
I have to write a simple program for school in which a teacher has to enter the following information on the students: number, name, and GPA. At the end, the pr...
[2 replies] Last: Thank you very much! The program works just fine now. (by gabyam)
Bit Flags
 
I understand bit-flags but I don't know how to create them. So far this is the only way I know how to create a bit-flag: struct Bit_Flags { int Flag_F...
[3 replies] Last: Thanks, Hanst. I was going to ask how I can test to see what flags wer... (by closed account zb0S216C)
szAppName (1,2,3)
 
Hi, could you give me some information on the following code: int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int iCmdShow)...
[50 replies] Last: Thanks, i understand now. (by TpOreilly)
March 2011 Pages: 1... 3839404142... 52
  Archived months: [feb2011] [apr2011]

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