Beginners - May 2008 (Page 2)

by skev
calculating total
 
hey everyone. I've written a program but i can't seem to get it to calculate to total correctly could anyone take a look any give me a hand? thanks. #includ...
[7 replies] Last: thanks mate (by skev)
What's the problem with this program?
 
I have to combine two arrays(v1+v2) and create v3. #include<stdio.h> int main() { int i, j; float v1 ={{3,4,5},{5,6,7}}; float v2 ={{3,4,5...
[1 reply] : This line of code v1 + v2 == v3 ; compares the element in... (by icemanfan)
by kahmed
Compile and RUN a simple program in Microsoft Visual Studio 2008 Express Edition
 
Hi, Is there a step by step guide on how to compile and run a simple program like : #include <stdio.h> int main() { FILE * pFile; char buff...
[2 replies] Last: in addition to what Grey Wolf said u can also load up visual studio an... (by irishstevie)
sorting within the loops
 
im pretty new to programming an this solution has me stumped...the program generates 15 random numbers(between 0 and 999) and is supposed to display them in sor...
[2 replies] Last: Thanks, youve helped me out before a while back (by theDon85)
Function problem SOS?
 
ok i am new at function plz help me i wrote this program for a shoe distribution company ( classroom problem) where i have 5 salespersons. each salesperson go...
[10 replies] Last: See http://www.cplusplus.com/doc/tutorial/arrays.html for the docs on ... (by Faldrax)
by Roofio
New Line?
 
Hey The program works fine, but i cant understand why it doesnt go to a new line #include <iostream> using namespace std; int main () { int a, b...
[3 replies] Last: @buffbill The "\n" and std::endl do basically the same thing but ... (by bnbertha)
Classes and Vectors
 
Hi iv go this problem with this program Im trying to write. In it I have created a class which has a vector which stores pointers of another class. eg. c...
[3 replies] Last: The basic constructs you are using are fine, with the for loop and con... (by bnbertha)
by Roofio
strings
 
Hey, I ve pretty much just extended the example givin in the tutorial on this site, I was wondering if i could get the program to say the persons name from t...
[4 replies] Last: Thanks 4 that, and your help the other times, lol (by Roofio)
by Boman
Assistance with angle to compass bearing program
 
Hi all, this is for an assignment to output a bearing with N or S followed by and easterly or westerly bearing, if the angle is 0, 90, etc to 360 it should outp...
[16 replies] Last: No worries :) (by Zaita)
can anyone provide some input on this pointer problem?
 
Can someone provide some input on this assignment. I am not really any good with pointers. This is a simulation of a card game. It involves two classes: ...
[10 replies] Last: I get the impression that some courses have a mandatory programing mod... (by closed account z05DSL3A)
having trouble understanding functions and assignment on box dimensions
 
I am totally and utterly stuck. This is a distance ed course that I'm taking in school so when im stuck there is no one to go to...can anyone help? I need to ge...
[2 replies] Last: thanks...I think im starting to figure it out....slowly. (by chrissyln13)
release option
 
I use Code blocks for compilling C programs, and I want to know the difference between checking and not checking the "release" option when starting a project or...
[2 replies] Last: Also note: The Debug file is going to be like 10x bigger than your rel... (by Zaita)
by ebbo
HOWTO: return a variable from a void function?
 
Hi, Im working on a really simple RPG at the moment. This is one of the functions i made: void Attackfunc() { int nRand = Random(1,100); int nAtt ...
[12 replies] Last: Completely agree :) In this case yea a int f(); approach would be mo... (by Zaita)
operator overloading order of operands
 
Hi. I've been trying to overload operators in such a way that, for example: (object) + (native type) = (modified object) and (native type) + (obje...
[1 reply] : Ok, I figured it out. I just had to use a template declaration wi... (by DrenThales)
by cva
Short-cut Key (ALT-key) problem....
 
Hi everyone, Im having problem with the ALT key as it does't functions when pressed. The other keys are OK.Can u guys give me some suggestion what minght be ...
[4 replies] Last: Yes, that's it. (by Duthomhas)
Little problem with acumulative function.
 
Do a recursive function in C that calculates S: S = 2 + 5 + 10/3 + ...+ (1+n²/n) n is determined by you in the beggining. Please make it with n = 5 or highe...
[11 replies] Last: Alright, it makes a lot more of sence now. Thank you all, and sorry yo... (by krateron)
pattern recognize
 
hi how to write a pattern recognize program in vc++ and which functions are use to this program
[1 reply] : You need to provide more information about the sort of patterns you ar... (by bnbertha)
by Roofio
Basic input
 
Hey I am really just practising my C++ and i have found that i have forgotten most of the basics, can you please help me with this. I cant seem to figure...
[1 reply] : #include <iostream> using namespace std; int main () { int a, b; ... (by DiptenduDas)
by BabaG
c++ - path question
 
is there a way to return the current a account in c++? i'm thinking of how to return something like "/home/babag." i have a small app that i need to run on ...
[1 reply] : I am assuming the forward slash means you're on UNIX. In which case t... (by bnbertha)
by BabaG
c++ theory question
 
i've gotten my simple app working with lots of help from those here. many thanks for that! now i have a more theoretical question with regard to optimizing th...
[2 replies] Last: If all your variables are strings, it won't make much difference if on... (by Duthomhas)
May 2008 Pages: 1234... 12
  Archived months: [apr2008] [jun2008]

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