Beginners - September 2011 (Page 41)

how should a file containing a class be called in the makefile?
 
For example, I have three files: main.cpp myclass.h myclass.cpp -main.cpp #include's myclass.h Below is the makefile. My problem is that if I change...
[4 replies] Last: This tutorial explained it to me: http://www.cs.umd.edu/class/fall200... (by closed account S8hvC542)
Comparing a Single Variable to Many
 
Hi everyone, I'm a beginner to programming in general and I'm wondering how I can compare multiple variables (like 50 in an array) to a single variable until tw...
[1 reply] : A for loop and a comparison would be your best bet. (by firedraco)
Help for Beginner Programming on a Mac
 
Hey guys, I just moved up from Java to C++ in my school for my major(comp sci), and I've run into a bit of a problem. It's going to sound outrageous but bear...
[3 replies] Last: http://lmgtfy.com/?q=xcode+c%2B%2B+hello+world (by ascii)
Which compiler to use with K&R book?
 
I just started reading the C programming K&R book, it's an old book from 1988. So how am I gonna write programs with this book? Is there any software out there ...
[18 replies] Last: The 1988 second edition is standard, well the first printing is 'based... (by closed account 1vRz3TCk)
by wtf
Possible to use macros for a counter variable?
 
I tried: #define counter_var 0; ++counter_var; But I get error: non-lvanue in increment.
[5 replies] Last: in a way, yes, because it pollutes the namespace and ignores scope rul... (by Disch)
C++ Socket flags
 
I'm working on a program that uses a CSocket, and the original coder decided to use a while loop with the CSocket.Receive call. Below are the options I have fo...
[4 replies] Last: I may need to learn how to read, which is fine by me. I don't understa... (by silvermice)
by wtf
How can I do this with macros:
 
I want to have an error message that prints the variable name, and its current value. so far I have: #define describe(a, b) cout << "param_a = " << a <...
[3 replies] Last: Just because they're inside quotations? Macros don't expand if they'... (by shacktar)
by wtf
Executing functions before main.
 
I just read here: http://www.cplusplus.com/forum/beginner/1988/7/#msg26845 that its not a good idea. I never knew that before. Can anyone explain whY?
[16 replies] Last: Have fun. LOL. I'll try. (by wtf)
by wtf
boolean operators for bitsets
 
How can I write a template for boolean operators for bitsets? I want to be able to do something like: template <class itemtype> bool operator < (bitset<itemt...
[7 replies] Last: Thanks with your help i was able to come up with: template<unsigned ... (by wtf)
clipboard software
 
Does anybody know where I can find a clipboard software that can be embedded in a c++ program? I'm using using windows 7 and VS2010, and if possible could yo...
[1 reply] : The windows API has functions to easily access the Clipboard and GUI l... (by coder777)
Code doesn't compile ? Function overloading
 
Line 23|error: call of overloaded 'swap(int&, int&)' is ambiguous Why is it telling me this? I thought I was allowed ambiguity with function templates? ...
[3 replies] Last: ah shoot alright, thank you. (by georgewashere)
Averages and Random Grades
 
I haven't been around coding in a long time, and I decided to get back into it so I can website design, one of the assignments I did last year, I got and knew w...
[4 replies] Last: int grades; cout << "Number of Grades (1-5): "; cin >> grades; wh... (by closed account EvoTURfi)
Saving complex object data to a file
 
Hello! I was trying to create a file where object data could be written, so that different programs could use it. I'm having trouble understanding just exactly ...
[5 replies] Last: Yes I am overloading the << operator. When you declare/define a frien... (by Galik)
Using ifstream and ignore()
 
Problem: Input The file contains several lines of input. Each line contains three data. First is the X number of hops that you will do to the given input, ...
[3 replies] Last: You don't know how to do input with files at all? See http://www.cplu... (by hamsterman)
by vusi
Assignment question
 
I have this question for my assignment please help> QUESTION 3: void FUNCTIONS WITH ONE OR MORE VALUE PARAMETERS You should only submit printouts for...
[6 replies] Last: i hv invited u personal and enterd u to the gtalk group for cos please... (by thabyle)
by ko2dy
sigma in c programming
 
i got an equation composed of sigma : b = E (xi-x)*(yi-y) for i=1 and the last i is n does anyone know how to write such program in C? since it is a bit bor...
[10 replies] Last: I must admit that I tend not to program to C99 standard due to the pat... (by closed account 1vRz3TCk)
anyone here fimliar with matlab?
 
as the title said.
[1 reply] : http://mathforum.org/kb/forum.jspa?forumID=80 (by Catfish)
Question about discrete math.
 
I don't know i should be posting here, but this homework problem is in CMPSC 313 so it may seem computer guys should be able to do that because it's in a comput...
[5 replies] Last: OH !!!!! OFCUZZ.. =.= sorry man.. i'm so stupid... (by hunkeelin)
Computer that calculates a secret number
 
Hello. I've been having some trouble with my recent program. I'm trying to make a computer which calculates a number the user decides secretly for him- or herse...
[1 reply] : Instead of Number, use two variables: minNumber (initially 1) and maxN... (by Blackavar)
Function not properly executing
 
Hi, so I'm new to the forum. My name is Alex, I am currently learning C/C++ off of the website: www.learncpp.com. I am fairly new at programming, only about a w...
[6 replies] Last: [quote=darkliight]I'm trying to self-study C++ and finding it difficul... (by closed account zb0S216C)
September 2011 Pages: 1... 3940414243... 48
  Archived months: [aug2011] [oct2011]

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