Beginners - February 2010

class function "unknown symbol"
 
Afternoon, C++.com!! I'm hoping you can help me with something that I'm sure is really simple. I'm writing my first class function and so far it's compiling an...
[6 replies] Last: it's weird that it was compiling for you. It really shouldn't have be... (by Disch)
What can C do that C++ cant
 
ok so i've heard that C++ has a ton of advantages that C has. is it true that there is nothing that C can do which C++ cant, if that's the case, then am i rig...
[16 replies] Last: Yes, I know, that is why I said that it wasn't true that any program t... (by chrisname)
Problem with do/while loop or cin.getline
 
Hello, The program below takes a person's full name as input in Last, First, Middle format and outputs the same data in First, Middle, Last format. The purpo...
[2 replies] Last: Hello, So I contacted my instructor and he provided the cin.ignore ... (by closed account SNUXoG1T)
if statement nested in a while loop
 
Hi everyone I am taking my first programming class(c++) and I am having trouble compiling because of one syntex error! Can someone have a look? Any sugguestions...
[4 replies] Last: This is the error Error E2188 p03.43:Expression syntex in function m... (by breava83)
Compiling a program with classes?
 
Hey guys, I'm fairly new to programming, and in my C++ class, we're currently working on classes. I have a program due on tuesday, and I began writing it yes...
[3 replies] Last: Wow, I just potentially did the stupidest mistake ever. In transferrin... (by burzum619)
Inverse sine in degrees?
 
How would you find the inverse sine in degrees? I can get sine in degrees by using this: out=sin((in)*pi/180); But I can't get the inverse sine in degrees....
[1 reply] : sin() takes an angle in radians and returns it's sin in range [-1; +1]... (by hamsterman)
by stuck
iterators
 
Hii all I have a vector of class objects. The class has some private data and public function. Can I access the class members with the help of the iterators....
[5 replies] Last: In order to access the data, consider adding a 'get' method. For exam... (by moorecm)
by baross
Function call - The calculation function call not returning the calculations
 
#include<iostream> #include<cmath> #include<iomanip> using namespace std; //Function prototypes char display_Menu(); double money(); double Inte...
[2 replies] Last: there is one, it's also the only function that is inconsistent with th... (by gcampton)
using continue type behavior in switch
 
My question is about using something other than goto to go back to the beginning of operations from the default of a switch statement. I think it could be done ...
[5 replies] Last: interesting, ok thanks for following up on that. (by foobarbaz)
by w0ot
Converting to Multidimensional Arrays
 
Hi all, i have the following codes, but i would like to know how can i transform my codes to become using multidimensional array codes. Appreciate if anyone cou...
[10 replies] Last: perhaps he means: name | salary | bonus name | salary | b... (by gcampton)
by michy
strcpy
 
hi, here comes a simple question for all experts, I have the following code: char filename ; strcpy(filename, argv ); now my filename is argv , if my ...
[6 replies] Last: omg my mistake.. i get it ... thx helios! and Disch. (by michy)
Question on Boost sregex_token_iterator end
 
Sample code from boost regex package: #include <iostream> #include <boost/regex.hpp> using namespace std; int main(int argc) { string s; do{...
[no replies]
by gcr114
for loop with counter value
 
In the following code, a user will input a number (number must be greater than 2) and will create a running multiple total. The counter should stop at the user ...
[2 replies] Last: try while loop, it may be very simple while(number >= 2) { ... (by Maimaje Bello Abdullahi)
by baross
Problem with switch statement -Returning ANSCII codes
 
#include <iostream> #include <iomanip> #include <cctype> #include <cmath> #include <conio.h> using namespace std; char display_Menu(char Choice) {...
[6 replies] Last: Thanks Duoas it helped I appreciate your help. (by baross)
by cmccmc
quick question
 
I know using system("anything") is bad but I was wondering if it could be harmful at all using system("TITLE Program title") since all it does is change the nam...
[6 replies] Last: I decided I would try the unicode way but using SetConsoleTitle( _T("Y... (by cmccmc)
How to make a for loop into a do/while loop
 
I know in the for loop you have inttialization, condition and expression do you just bring those things inside the body? any example would be much appreciate...
[5 replies] Last: guessNum = 0; do { cout << " What would you like to guess... (by Random)
cin.ignore and cin.get statment
 
Input data is: 10 20 30 40 50 60 10 20 30 40 50 60 10 20 30 40 50 60 70 80 The input statement is: cin >> a >> b >> c; cin.ignore(10...
[3 replies] Last: Thanks I figured it out!! (by MicMagicFly)
logic problem with parsing input file.
 
I have to parse this input file, the file can contain comments much like shell scripts start with a '#'. Blank lines also should be ignored. 2 functions are use...
[12 replies] Last: I didn't mean to say you were wrong earlier simply that I couldn't see... (by gcampton)
by Random
Assign varied contents to a Vector without an Array
 
Hello there, How would I go about assigning varied content into a vector without multiple push_back() statements? so far, the only method I've found is using...
[3 replies] Last: @R0mai If you notice, the link you posted uses the exact method I... (by Random)
Super simple, detrimental Emulator problem
 
Does anyone...know how to hit the "=" sign in a ccs64 emulator. I have seriously drained every resource I can find and can go no further in my learnings until ...
[2 replies] Last: Haha, thanks but I was already there. They will not send me my confir... (by fireseed)
February 2010 Pages: 123... 32
  Archived months: [jan2010] [mar2010]

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