Beginners - March 2012 (Page 21)

by roryn1
Creating a program that takes the weight of a class and turns it into one grade using arrays.
 
Hello, I'm really new at this, I'm trying to create a program that asks the user for 5 weights in a class, eg(10%-midterm, 30%-final etc..), asks for the 5 gra...
[no replies]
array help; inputting into array
 
/* 7-10 Salary Array Design an array that lists the salaries for ten salary grades. Write a function that will give each grade a fixed dollar raise, and a...
[4 replies] Last: Just basically returning variable from function storing it into the ar... (by Subzero030201)
Calling a Function
 
Why won't this work? case 2: int grades(); break; and when i initialize the function it wont work int grades() { vector<int> teachernum...
[12 replies] Last: yeah already got that and fixed it (by Timothy Palmer)
Program Calculates Cumulative GPA
 
I created a C++ program that calculates the average of a class based on the number of home works, the grades of those home works, the number of tests, the grade...
[no replies]
Only Read Numbers in a string
 
Im trying to only show the numbers in a string from user input. Right now i cannot get it to cout anything. Help please. Here is the code . #include <ios...
[2 replies] Last: It looks like its working, just print out the value of inputval. num ... (by histrungalot)
non-lvalue in assignment?? WTF?
 
This is due in 50 minutes, so hopefully this gets a quick response. I'm getting an error that the internet isn't giving a clear response for. First and forem...
[3 replies] Last: An L-Value (Left-Value) is an operand* that can appear on both the lef... (by closed account zb0S216C)
Static Methods and Data Members?
 
Alright, I'm having trouble trying to figure out how to control the number of objects created in a class using a Static Member. For example if this is the code...
[3 replies] Last: I got it, thanks. (by MMhawk607)
Beginner array question?
 
#include <iostream> using namespace std; int main() { int x ; for(int i =0; i<= 8; i++) x = i; return 0; } Identify the error in the above c...
[2 replies] Last: Thanks! (by Algar32)
Help with a little calculator program :/
 
Here is what I have thus far: http://www.text-upload.com/read.php?id=314581&c=3847000 Basically I want it to add the first two parameters when the third p...
[9 replies] Last: // In the includes: #include <math.h> // Then use cout << pow(2,5); ... (by S G H)
Stuck! (1,2)
 
Hey guys I'm really stuck on this problem. I have asked about this before but you guys give hard to understand and complex answers for a person who is relative...
[38 replies] Last: Haha I figured it out before you even said it! Also check your PM's E... (by closed account G854izwU)
no match for 'operator>>' in 'std::cin >> part' and idk what im doing wrong plz help due tommrrow
 
#include <iostream> #include <iomanip> using namespace std; int main() { const int SIZE=5; int part ; float price ; int j; float ...
[14 replies] Last: just took taht out i dont even need it. I'm not even using k anymore. (by Glenda Hayes)
Char character positions.
 
Hey guys! If I have a char variable and I want to find what letter is in spot 3 how would I do it? char achar = "abjhlsjdo" I want to see whats in sp...
[3 replies] Last: I bet you didn't understand what i tried to explain you, Lol. Oh, well... (by S G H)
how to creat a set of data output file ?
 
Please help me, dear experts I am using for loop to calculate a set of output with different parameter value in 'a'. a = {1.2, 2.2, 3.2, 4.2}; for diff valu...
[3 replies] Last: based on binarybob350's help, I modify something so that I can have on... (by ppcandy)
Where should I put the semi-colons, I don't understand it.
 
Ok, here's my code as below but I am getting errors about missing ';' before the ')'. I've worked in vb.net and no such problem would exist in vb. Anyway, I d...
[4 replies] Last: I understand it now, TYVM for your help, I shall try to clear out the ... (by Legjendat)
Pyramid sums, increasing effeciency
 
For fun, I'm trying do the following problem I found online: http://www.codechef.com/problems/SUMTRIAN The object is to output the largest possible sum of val...
[3 replies] Last: As for that, I'd start at the bottom. (by Athar)
Getting character from console at a specific position
 
I'm making a program where the user can press arrow keys to move around and press other keys to print characters on the screen. I'll use _getch() to take input...
[7 replies] Last: Anyways the function should be: short CursorPosition_x, CursorPositi... (by S G H)
My first ever program written in an IDE and 2 issues
 
Two Issues: first : How do i create multiple files in a project using codeblock 10.05. The code in main.cpp compiles and runs but if i add another file to t...
[3 replies] Last: Thanks guys for your prompt response. Actually b>0 was why i used the ... (by Emmanuel11)
Please help
 
I have a little problem trying to create this little program that calculates: arithmetic average (aka "media") // geometric average (aka "media2") // harmonic a...
[1 reply] : Hey mate couple of things I noticed, firstly not sure if this is an is... (by wizzmitch)
Opening/creating files
 
I've already written a good size program, for a slight beginner. Part of what I've done, is that it will look to see if my file "Namefile.txt" is open, if it i...
[6 replies] Last: *Program starts* cout << "program loading..." << endl; c... (by TruYadoo)
Memory used by programmes
 
Ok, I'll admit I don't know much about how computers work, how they assign memory etc. Anyway I've been using C++/SDL to play around with a few things and I've ...
[3 replies] Last: reserving memory for 300000 integer in runtime it leak the memory t... (by naqib)
March 2012 Pages: 1... 1920212223... 71
  Archived months: [feb2012] [apr2012]

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