Beginners - November 2009 (Page 21)

How to access ZZ in a function?
 
I'm trying to write a function to find the number of twin primes (x and x+2 are both primes) between a and b which can be any very large integer. If I used ...
[3 replies] Last: Are you including and linking the necessary files? (by Bazzy)
by warp
Having a problem. I can`t compile "++count;"
 
Hello. I am just getting in to this language, and in the context of that I have started my biggest project to date. Iam making a program where you can enter...
[9 replies] Last: The count function is adding 1+ for every entry. Where should I inster... (by warp)
by rej3kt
do while loop is skipping
 
Hi all my do while loop is skipping one of my questions that i'm trying to ask. It is skipping the manx cat tail question, the only other prob is that it is no...
[11 replies] Last: got it sorted by adding another cin.getline underneath it =) (by rej3kt)
I feel like a newbie again, If functions not working
 
This is baffling me beyond belief, I have scryed through my code a million times. When i run this program the IFs in MovPlayer(); don't work. The first one alw...
[3 replies] Last: I can't thank you enough herbert. (by Dissimulation)
by prob
writing files
 
I am new to this and need some help. This program is suspose to write the assignment name, points possible, and grade in a file. Then it is suspose to display i...
[3 replies] Last: He probably thinks it does something else. (by closed account S6k9GNh0)
How can i make this?
 
i want to make something like this. How can i do it. http://up181.siz.co.il/up1/dzmeayx1dnkz.jpg
[16 replies] Last: I don't agree with hacking for use. I will hack a game to see if I can... (by closed account S6k9GNh0)
Errors with my C++ code
 
The entirety of my error: scrab101.cpp: In function ‘void drawreplace(char&, char&, char&, char&, char&, std::ifstream&)’: scrab101.cpp:1159: error: no m...
[6 replies] Last: What does that particular line look like now?? (by guestgulkan)
Using the at() function of string to reverse a string.
 
Hello all, I have an assignment which reads: Using the at() function, write a C++ program that reads in a string by using getline() and then displays the ...
[8 replies] Last: I know that you have to use the at() function, but in the interest of ... (by jsmith)
by timHe
Addresses of extern variables
 
Hi, I've just been trying to share some data across files, and there's something I don't understand which I think might be behind some of the problems I'm ha...
[4 replies] Last: To answer my own question: yes. I made a couple of stupid assumptions ... (by timHe)
by btripp
Problem with istream operator
 
Ok. This isnt the first time ive run into problems with classes ive made before. I have created a school class. Here is the header file. #ifndef SCHOOL_H ...
[9 replies] Last: thanks for the link. (by btripp)
error LNK2019: unresolved external symbol
 
I was trying to compile my C code when a fatal error came up. the error is: >lab 10.obj : error LNK2019: unresolved external symbol "void __cdecl best(struct...
[1 reply] : You didn't define neither check() nor best(). You only declared them. (by helios)
Program falls through to end
 
Hello everyone. I am getting into the gist of the C++ programming language. =) I have come up with a problem and I've been brainstorming for hours. It has somet...
[1 reply] : I haven't looked at your entire program because thats a lot of code to... (by mcleano)
by bugs
question about _stdcall
 
I am learing MFC. Here comes a question about _stdcall in MFC RTTI structure. #define PASCAL _stdcall struct CRuntimeClass { ... ... CObject* (...
[2 replies] Last: Thanks! It helps a lot. (by bugs)
by Thade
Object oriented programming
 
Hi, working on an assignment we got at school. And Im kind of stuck. When i try to compile, I get an error message each time. Tried different solutions to w...
[1 reply] : Your function void komplex::ganger(komplex &B) is declare... (by jsmith)
checking entry for a valid integer
 
I have a program that checks two inputs for integer values and it works fine but the code I have now is rather long. If I needed to check for 20 entries, is the...
[1 reply] : // Returns true if the string "checkInteger" can be parsed as an in... (by jsmith)
largest element in a row and column
 
Row = 12 largest = matrix ; for (col = 1; col < 2; col ++) If (largest < matrix ) Largest = matrix ; if i wanted to make this a function i would hav...
[1 reply] : What is the precise purpose of the function? A handy shortcut for g... (by PanGalactic)
by ztein
left of '->fullname' must point to... it does
 
When trying to compile, the following error appears: (34) :error C2679: binary '!=' : no operator found which takes a right-hand operand of type 'char' (or ...
[3 replies] Last: R0mai: Thanks for info. Duoas: Will try it, thanks. Will need ... (by ztein)
Cout Result
 
I would like to display as follows: Circle (4.67, 28.65, 66.75) ---------------------------- How do I cout using.... cout << "Circle: (" << 4.67...
[8 replies] Last: I think you just simply forgot to put std::cin.get(); in your codes.. ... (by nemesiscplusplus)
trouble with classes
 
hi, ive been trying to learn classes but i cant grasp it... what do you guys recommend i learn before attempting to learn classes?
[6 replies] Last: thanks for the reply demosthenes2k8, ill give it a shot. (by shadowvillian)
while getline problems
 
Hey folks, im having a problem with the getline function, iv looked through all the other threads about getline and i cant find any that address my problem. So ...
[1 reply] : I don't see you attempting to seek or clear the stream in the code tha... (by kempofighter)
November 2009 Pages: 1... 1920212223... 25
  Archived months: [oct2009] [dec2009]

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