Beginners - March 2012 (Page 12)

inexplicable problem...!!
 
the output of this code is 1.3 E-34 1.4E-35 ... WHY?¿!! #include <fstream> #include <iostream> using namespace std; #define n 5 #define m 5 float t...
[1 reply] : I have not looked through all your code because in the very beginning ... (by vlad from moscow)
problem with for & if combined!!
 
Hi! I have a problem when I try to do this: for (i=1,i<n,i++) for (j=1,j<m,j++) { if (j=1) { ax =70;...
[1 reply] : if (i=1) = is assignment. You want ==, which is comparison.... (by Disch)
sine function is not working
 
Hi everybody.. I want make graphic sine. When i compile.. everything is ok. But, when i got run..he didn't working.. Though exe file had made.. this is my code...
[2 replies] Last: Peter87.. i'm got it, Thanks.. (by sackmac)
by seppel
HELP PLEASE: Microsoft Visual C++ 2010 Express ERROR?
 
Microsoft Visual C++ 2010 Express: "The source file is different from when the module was built. Whould you like the debugger to use it anyway?" Even if I ha...
[8 replies] Last: Not the rebuild button. I was talking about the new file button. See m... (by NerdTastic)
Don't know how to fix these errors
 
I don't even know what these errors mean. Here's the code, but I don't know how to get rid of the problems I'm having. #include <iostream.h> #include <i...
[6 replies] Last: @mWest thank you that makes sense! (by NerdTastic)
by balv11
float function
 
I have to write a float function where I input 5 scores and the lowest score is thrown away and the average score is worked out for the 4 highest ones. So if I...
[2 replies] Last: Thanx, I didn't even think about that. (by balv11)
by rome
getting average score of 5 of highest 4 input values
 
Hi there I am SO stuck on an assigment question. I am definitely doing something wrong,i have chopped and changed it so many times, i just cant get it right...
[11 replies] Last: In calcAverage(), add lowest = findLowest(...); before the 'sum = ..... (by Gaminic)
Limiting Variables
 
I am working on a project for my computer science class, and I have to make a guessing game, but the computer is doing the guessing. The user picks a number fro...
[4 replies] Last: maybe a function that generate the number between min and max : int ... (by Vins3Xtreme)
Hey, problem with a do while loop
 
Hey all I need some help with this multiple quiz I'm doing, if got most of it done, however I want it so that if the user types in a letter which isn't one o...
[1 reply] : if you don't want that the question is repeated then put it before 'do... (by coder777)
replace a value in a array!
 
Hi everyone, im workin on a project require me to declare a line of symbols and replace one of the symbols with another symbols. for example if first lin...
[no replies]
Segmentation fault. Confused.
 
Hey guys, just wondering if someone can take a look at this and possibly tell me why i'm getting a segmentation fault. I've tried putting cout statements to see...
[9 replies] Last: This may clarify it further. Jade L. Scholz studentName = "Jade L. ... (by vin)
by Zu007
Trigonometric functions cos0
 
#include<conio.h> #include<iostream.h> #include<math.h> void main() { clrscr(); double a,p=3.14159265358979323846; int x; float rad,b,c; cout<<"Ente...
[1 reply] : It gives correct cos0 value. In other news, this void main() is not... (by Moschops)
Stroustrup std.h
 
I'm reading the Stroustrup c++ book. I downloaded his "std_facilities_lib.h" header file at http://stroustrup.com/Programming/std_lib_facilities.h After muc...
[1 reply] : I wouldn't have thought there would be any issues with the header file... (by guestgulkan)
Does anyone have ideas on how to stay motivated?
 
Hello I recently got into C++ about a month or two ago and am extremely excited about learning. The only problem I have is that the book I am going through righ...
[5 replies] Last: It might be good to write down what parts make up a function, and care... (by Gaminic)
by ooplus
Codeblocks and simple error
 
I am getting error: expected ')' before 'p' in the following code and i have no clue why!!! #ifndef COORDINATE_H_INCLUDED #define COORDINATE_H_INCLUDED ...
[1 reply] : You may need to include the <string> header. (by Zhuge)
none
 
.
[9 replies] Last: Well, the thing is rather simple: good() will return true if data ext... (by webJose)
by SmYte
Program Loop ignoring cin
 
I've have some basic knowledge in c and i'm rather new to c++. However, i've heard that there are problems with scanf and cin not reading in values to refresh t...
[8 replies] Last: Ahh, so this inputs 100 lines? Works fairly well but spacing is a bit ... (by SmYte)
IO Trouble
 
I'm a college Junior in Comp Sci but I've never messed with C++ before and I'm having some trouble with the IO. I'm trying to read in a file that looks like: "0...
[11 replies] Last: In case anyone was wondering, I solved my last problem. The variable b... (by Chris Walton)
I'm confused on how to do this program C++
 
Hi, my professor told me to write this program in my Computer Science Programming Class but I have no idea on how to do this. Can someone give me tips or help m...
[8 replies] Last: Hmm there's so many functions that you guys listed that I have no idea... (by Chaofun)
by klae
Creating a Basic Guessing Game Question?
 
Hey I need help I am supposed to create a simple guessing game using c++ This is the instructions: Complete project 5, page 283, as modified below, using C+...
[7 replies] Last: Hey I just re did my code in general and it worked better for me here ... (by klae)
March 2012 Pages: 1... 1011121314... 71
  Archived months: [feb2012] [apr2012]

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