Beginners - April 2010 (Page 4)

by tysonc
Question about structures
 
Ok so I have declared a struct type: struct Protein { string Name; string Species; string Sequence; }data; and initialized each type for the "data"...
[5 replies] Last: Well I've been lied to then... I'm furious right now. Thanks for the ... (by tysonc)
Euler's Number/Taylor Series
 
Hey all, so I have a homework assignment(I don't want the code written for me) in which I have to calculate Euler's Number using the Taylor Series approximation...
[2 replies] Last: Wow, that makes alot of sense now. Thanks alot, I was looking at it f... (by BaronInara)
fatal error LNK1120: and error LNK2001:
 
here is my code: //.h file code: #include <string> #include <iostream> class Employee { //attributes private: std::string name; // instance v...
[2 replies] Last: working code see line 31 //.h file code: #include <string> #incl... (by goldenchild731)
Problem with the iostream source
 
I'm a beginner so I'm not entirely sure what the problem is but I'll describe it as best i can. OK the source I'm writing is perfect. I've quadruple checked it ...
[2 replies] Last: You probably have a template problem. I need code to be sure though. (by firedraco)
by haim
2d array grades evaluation
 
I have to write program to evaluate students' grades in class of size that user determines.I have to find and print students' average in class. find and prin...
[2 replies] Last: thanks very much. (by haim)
by EEVIAC
stucture array
 
Could someone please give me an example of how to use cin >> to input data into a simple structure array..
[3 replies] Last: Related responses: http://www.cplusplus.com/forum/beginner/11472/#msg... (by Duthomhas)
numeric TEdit
 
How can I make sure that I can only write numbers in a TEdit component of the VCL? Thanks!
[3 replies] Last: Ah. Alas, there are no pre-defined TMaskComboBox controls... you would... (by Duthomhas)
program terminates with status -1073741510
 
I can't seem to figure out why my program won't run. compiles with no errors but windows error pops up and says that program has stopped working. Needless to sa...
[1 reply] : Hey there... first off... It's really bad practice to pass an uninitia... (by attaboy)
Not running the loop
 
In this program, I am trying to have users enter the ID of an employee, and then have the function SearchList find the correct ID and display the respective wag...
[no replies]
Error C2105: '++' needs l-value
 
Here is my code #include <string> #include <iostream> #include <iomanip> using namespace std; class Acct { private: double balance; ...
[12 replies] Last: Great! I'd say it's working as expected, then. The number of tran... (by moorecm)
by patcc2
question about functions and arrays?
 
If i have a array with a size of lets say where b is changing throughout the program. When i have a function in the int function ( am i allowed to put int ...
[1 reply] : you can't dynamically create arrays unless you use the new keyword. ... (by oghmaosiris)
by ToniAz
Pointers for arrays
 
Hello everyone! I've got this "pickle": const int SIZE = 3; int a = {1,12,43}; int *pa = a + 3; Let's say that: &a = 0x3fffd1a what about ...
[4 replies] Last: Doh! you're right. 0+3 = 3 lol............... (by oghmaosiris)
Inheritance Issue
 
This my code //.h file code: #include <string> #include <iostream> using namespace std; class One { public: int a; One(); One(int a); ...
[3 replies] Last: Oh i see Two *t1 = new Two(0,0); Thank You (by goldenchild731)
by vulee
short ciruit or buggy?
 
This snippet ran as expected. It displayed 3 ( 1 exclusive or 2). However, when using unsigned short properties = (buf[idx++] | buf[idx++]); it displa...
[2 replies] Last: | is not EXCLUSIVE OR , it is just plain OR or INCLUSIVE OR... (by guestgulkan)
Thread Porgramming in C++
 
Hi, this question is not about specific about C++ but could anyone provide any better link for thread programming in c++
[2 replies] Last: You might also try Intels Thread Building Blocks: http://www.threading... (by magnificence7)
by Tonyh
Why doesn't this work?
 
If someone could fix this for me? WITHOUT USING ADVANCED METHODS, it would be great. #include "stdafx.h" #include <iostream> #include <string> using name...
[1 reply] : Ah, nevermind, I took the long way out and rewrote it. #include "st... (by Tonyh)
Pure virtual question..
 
I was playing around with inheritance when I realized this results in a linker error regarding Test(). For some reason I thought this is valid code, so pure vi...
[5 replies] Last: It would also be valid for the program to link then crash with a pure ... (by jsmith)
by EEVIAC
How long will C++ be useful ?
 
This might seem like a stupid question, but I havn't been learning C++ for very long, although I am making progress. As hardware technology becomes more so...
[6 replies] Last: Not even Assembly is completely dead yet. C++ will probably live on fo... (by Albatross)
Composition
 
Here is the code: #include <string> #include <iostream> using namespace std; class Engine { //attributes private: int size; int cyclinders; ...
[4 replies] Last: got it thank you guys std::cout << "Car1" << "\n\tCar Name: " << c... (by goldenchild731)
by menson
comparing character and int
 
I want to write a function counting number of letters in the string. for example: Enter a string: 2010 is happy Number of letter: 7 Actually, I want t...
[1 reply] : Take a look at these: http://www.cplusplus.com/reference/clibrary/cct... (by mcleano)
April 2010 Pages: 123456... 35
  Archived months: [mar2010] [may2010]

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