Beginners - November 2012 (Page 57)

by AIVIO
Download Visual C++
 
Hi! I still have problems with compiler. Does anybody know how can I download Visual C++? I mean the free version (Express 2010). I don't have internet at home...
[15 replies] Last: @Zereo, yes. they restrict, even iran gov. restricts it too, I mean lo... (by AIVIO)
Check duplication for my function
 
the work i done so far for it #include <iostream> #include <string> using namespace std; template< class T > class Set{ private: T *type; int siz...
[8 replies] Last: Your iterator needs an default constructor. But you cannot leave Set ... (by coder777)
Would like some help with a do while loop.
 
I have this assignment that I am stumped on. I need to input a user id number such as 1111 and have the user then input the book code then the book cost. The ...
[11 replies] Last: if (book_code == '#') Why not make this the condition for the inner... (by TheIdeasMan)
by eyali
template class like Java
 
Hi all, Im new to c++ but not to programming as I've been programming in Java for a while now. In java one can define a template class like this: ...
[1 reply] : > Can I do it in c++? SFINAE is the primary C++ mechanism for compile... (by JLBorges)
Output Precision
 
Hello again, I've gotten this basic program to work however I'm having difficulties adjusting my output. Why am I unable to output double decimal places? head...
[7 replies] Last: Works, and the solution above really is complimentary. I tweaked with... (by zero117)
by Growl
Primes < n
 
Hey! There are two main problems with this program: * Program counts 1 and 0 as a prime * I didn't get where to write this form 2^k -1 in the program code.. ...
[12 replies] Last: THANKS A LOT! :) I'm done with connecting parts together - all work... (by Growl)
Sorting integers, characters, and decimals
 
I need to sort integers, characters, and decimals in ascending and descending order. I need to take the input from a user and take those numbers/characters and ...
[no replies]
logic error
 
The input file is as follows: first line: these are the test answers every other line: ID followed by student answers The problem is that the last set of stu...
[3 replies] Last: Thank you, Chervil for your prompt and extremely helpful response! -... (by estex198)
by Ryusko
Character arrays and scope
 
Hello, I'm testing a program that will create an array of objects (Equipment) from values parsed from a text file. Equipment objects have 6 integer values and a...
[2 replies] Last: Update: I fixed this problem by using string objects instead of c-str... (by cire)
is there a way to store all my include headers and call that one thing?
 
is there a way to have all the include header files in one place and i just put that variable name at the top of my main function? i ask cause i have a feeling...
[3 replies] Last: Basically, yes. Just do that and then include headers.h, or whatever y... (by Ryusko)
by xhoso
Parsing a string
 
I have to parse a string of numbers, separated by commas(i.e. 1,2,3,45,677,89,234,...etc.). I can get almost all of it, but I am having trouble getting the last...
[no replies]
try catch for string and int . help (1,2)
 
for exampl.e concept int ID = 0; do{ cin >> ID; try{ throw ID; } catch( int e ){ if( typeid(ID).name() != typeid(int).name()){ ...
[20 replies] Last: last part already . someone help? (by Felicia123)
Access violation reading location issue
 
I am using Visual Studio Express C++ 2010 edition on Windows 7 and I am having trouble trying to debug an Access violation reading location error when a class o...
[5 replies] Last: So I deleted the default property sheets used for VS 2010 Express beca... (by dwillatberwick)
array partition
 
hey i am trying to write a function -------------------------------------------------------------------------------- int partition(string a , int n, string ...
[3 replies] Last: Yes, you can create a new array to store the values first. You can tr... (by fg109)
Prime Numbers
 
I have wrote a function to check to see if a number 1 -200 is prime. However, I am trying to write it to a file but I am having trouble figuring out how to do i...
[9 replies] Last: Yep that worked thank you guys a bunch this really helped me understan... (by JBIRD304)
by kske
Deck of Cards
 
Can someone help me figure out why this program won't work? It's suppose to simulate a deck of playing cards. This is the error message I keep getting: cards.c...
[2 replies] Last: So if I initialize x everything should be fine? Could you try running ... (by kske)
c++ bubble sort help.
 
So im doing a program where i need to take dates from a text file and insert it into an array and do the following: Create a minimal DateType class which provi...
[2 replies] Last: thanks a bunch! this will get me started. Thanks again. (by rb26dett26)
Why won't this simple code build?
 
Just a simple homework for class: main.cpp --- #include <iostream> #include "averager.h" using namespace std; int main () { Averager my_avg(0, 0); my...
[6 replies] Last: I completely forgot your response. Been a couple of days since I've la... (by Dcoates91)
can someone identify the error in my funtion?
 
I continue to get error: try.cpp: In function `double trigSum(double, double)': try.cpp:30: parse error before `)' token try.cpp: In function `int main()...
[9 replies] Last: that worked thanks to you all. (by byronflds)
Help parsing a file
 
Hello, I want to read escape characters from a file to format the output of text in a shell. The format is [Key Value] and the contents of the file are: ...
[4 replies] Last: 27 makes much more sense now. (by Lowest0ne)
November 2012 Pages: 1... 5556575859... 75
  Archived months: [oct2012] [dec2012]

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