Beginners - March 2008 (Page 3)

by samsom
please help with this assigment
 
In this assignment you are required to design and implement a mark analyzer information system. This mark analyzer system will read data of a group of stude...
[2 replies] Last: i dont no where to start and it goes like this .. When the user press... (by samson)
small tutor question
 
CExample::CExample (const CExample& rv) { a=rv.a; b=rv.b; c=rv.c; } Therefore, the two following object declarations would be correct: CExample e...
[4 replies] Last: Ok now I could have used logic and ASSUMED everything you just typed g... (by moonshadow9988)
saving arrays into a file. How?
 
Anyone out there who can provide me with an example of a program that can save including the necessary includes to include. ty
[2 replies] Last: thankyou ropez I will try (by Karlinods)
by fubar
escape multiple nested loops
 
Hello all, I have a program that I am unable to rewrite without either a goto statement or using 'return 0;' twice. Once at the end of main(), ...
[15 replies] Last: Well, thank you very much for your help, ropez! The only thing that... (by fubar)
by natt
problems with poker
 
hi, I have a poker program. I am trying to determine when there is a pair in the hand dealt. I just can't get it to work, I'm not sure where I'm going wrong if ...
[3 replies] Last: Thanks for pointing out the looping of column, I've sorted it now so I... (by natt)
FUNCTIONS PLease help
 
Hi im having trouble getting the function to return the right values for i and q... heres my code # include <iostream> # include <cmath> # include <iomanip...
[3 replies] Last: It doesn't matter, he is trying to return two seperate values from the... (by closed account z05DSL3A)
by dorjay
Can u to acess function of this class??
 
#include<iostream> #include<conio.h> #include<string> using namespace std; class RoughStrings { public: int minRoughness(string, int); }; ...
[2 replies] Last: Of course you can change the line this this: int RoughStrings::mi... (by guruplus)
by yang
what does "1u" mean? when we use it?
 
hi all: I found some code for insertion sort like this: //...code for (unsigned int i = 1; i < n; ++i) { for (unsigned int j = i; j > 0 && array[j ...
[4 replies] Last: There's a difference between declaring an unsigned variable, and an un... (by ropez)
reducing fractions
 
i need to write a function that reduces a fraction to proper form. For example, a fraction with a value of 0 2/6 would reduce to 0 1/3 and a fraction with a val...
[1 reply] : There are two fraction implementations in the Sourcecode section. You ... (by ropez)
Prime Numbers
 
Does anyone have any ideas on how to make a program that check if a number is prime
[7 replies] Last: I guess so. I don't know what I was thinking when I wrote that. (by magicalblender)
Question about arrays and external input files
 
Hi, I'm writing a program that needs to load 20 integers into an array from an external input file then print the contents of the array in tabular format. I...
[2 replies] Last: Thank you very much, that worked, cant believe it was that simple. Tha... (by danielmarc)
by dorjay
how to scan a vector<string> ???
 
can any one tell how to scan a vector<string> v ; cout<<"Enter a string"<<endl; cin>>v; // ???? how to scan a string into vector ......is there another way ...
[4 replies] Last: thanks it works (by dorjay)
by iggi
long double = crash?!?
 
I have this program, it works for MOST numbers entered, but once I enter "123456", the program just exits. Here is my source code: #include <iostream> us...
[3 replies] Last: Some compilers are able to optimize tail-recursion functions, like you... (by magicalblender)
Help checking code
 
Is there anyone willing to let me e-mail them a program I'm having trouble with? There is an input file as well. I'm having trouble with getting it to even prod...
[2 replies] Last: Come on dude.....!! Just post the code into the forum, so we can have ... (by cleveland2000)
by hazda
Algorithm?
 
Hi ya’ll Say for instance you have a surface divided into squares and an object which is supposed to move through all these squares. Sum squares have obsta...
[1 reply] : You need to be a little clearer on your question. Did you really mean... (by gzero)
Reading Editing and Saving Hex Files
 
Hi all, been a long long time since i did any programming and i was shaky then at best. I got a little program i want to write, and i was wondering if anyone c...
[8 replies] Last: Thanks ropez! Ewu, i usually do use a hex editor, however im trying... (by bowdendr)
increments and decrements
 
i still don't understand how the pre and post works. it's a little confusing for me...
[2 replies] Last: The preincrement will increase the value then the compiler will use th... (by EWu)
what is wrong with this program
 
# include <iostream> using namespace std; int main () { int num1, num2, num3, num4, num5; int num6, num7, num8, num9, num10; ...
[4 replies] Last: And when you want to find the biggest value you use this function: ... (by EWu)
by optima
microsoft visual studio 2008 pro
 
I am very new at this. I just installed a fresh copy of Microsoft Visual Studio 2008 Professional and this is my first time using the software. I cant seem t...
[4 replies] Last: I am using a portable version of dev-c++ (it's free) and I don't have ... (by EWu)
help Coding
 
I have a program that prompts the user to put in to dates and then calculates the days the problem is if someone were to put in a / the code would not work prop...
[1 reply] : I just put some help in the program and now it should work. Check it o... (by EWu)
March 2008 Pages: 12345... 15
  Archived months: [feb2008] [apr2008]

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