Beginners - October 2012 (Page 65)

Need help with program
 
My assignment is to write a program that asks a user to enter two 1 x 3 vectors and then calculates the product. [a1 a2 a3] = first vector and [b1 b2 b3] = seco...
[4 replies] Last: You don't have to declare three different structures for holding three... (by codewalker)
kindly help???
 
hello, I'm a student now and I have aproject on visual C++ , the project is to design and implement a CAD software to be used as a modeling tool for a 3D object...
[1 reply] : It seems to me that C++ would not be the language that you would want ... (by Endl3ss)
by Serri
Problem understanding how to get PId
 
using the MSDN library i came up with this code, however it is not working and i can't really understand why :< int main() { HWND WindowHandel = FindWindo...
[6 replies] Last: Disch has said pretty much what I was going to say. The only other ... (by guestgulkan)
by sul
std::set problems
 
Why doesn't this code work: #include <iostream> #include <set> class myc { public: int a, b; myc(int aa, int bb) {a = aa; b = bb;} myc operator...
[4 replies] Last: It seems that set has to be declared to something before using it in m... (by Endl3ss)
Can you take out that returned 0 thing?
 
I was wondering if there is any code that can take out the statement thing at the end of the program? (Process returned 0 <0x0> execution time : x s) I want to ...
[1 reply] : It appears only in Code::Blocks -- it's typically used for debugging. ... (by closed account zb0S216C)
by E21C
help C++ problem using while loop
 
I need to run a program that counts how many people got A, B, C, D, or F by entering the letter (note) each person got using the while loop in c++ here is wh...
[14 replies] Last: The progam isnt detecting when i introduce an invalid note, is countin... (by E21C)
How to generate random FLOAT numbers between a specified range?
 
Hi guys I'm trying to generate a random float number between 1.00 and 20.00 ,i know that for integers we use this code: int r; r=rand()%20+1; ...
[2 replies] Last: Range scaling is another approach here, and is what I would generally ... (by Disch)
Whats missing in my program????
 
You are given a text file (grades.txt) that contains the following grades for a group of students: Tommy Lane 88 76 52 70 65 80 Mary Smith 90 88 96 90 98 94...
[2 replies] Last: I see these things 1) You want to print last name, first name separat... (by codewalker)
opengl setup xcode
 
Does anybody have some easy and basic opengl, glut code that xcode compiler can run?
[no replies]
by noczod
Pause probleM
 
Hey just starting out and I am following a book called A beginning guide to c++ though game programming. I have made a few of the programs so far, and I keep ha...
[2 replies] Last: Second thread on the Beginners section, titled "Console Closing Down".... (by Moschops)
Starting GUI programming
 
Hello all, I have been programming for about a year. I took two classes (intro to Computer Science 1 & 2), and I program a ton on my own. Just little silly p...
[3 replies] Last: SDL's video focus is on "drawing", which primarily applies to games be... (by Disch)
Do While loop trouble
 
I've written a program that acts as a Math Tutor and I want to make it so that the user has 5 attempts to get the question right. I want to use a do while loop ...
[2 replies] Last: Ok that makes perfect since. Thanks for your help! (by closed account Ebf21hU5)
Linked List
 
#include<stdio.h> #include<stdlib.h> #include<conio.h> struct NODE { int info; struct NODE* next; }; NODE* createnode(int d) { ...
[2 replies] Last: oops..i missed it..thnx for pointing out.. (by vgoel38)
convert to array
 
hey guys, can anyone help me how to make an array out of this? #include <iostream> using namespace std; void decToBin(int num, int base); int main()...
[7 replies] Last: You could do this, which is assigning each number to an integer array ... (by TheJJJunk)
Free memory of array that is pointed to
 
Hi there, sorry for posting this quite redundant question, but I think I really didn't get the point and I wonder if this problem really equals the "how to d...
[1 reply] : *pp was never allocated using new, so you cannot delete it. new floa... (by Moschops)
by Hyl
Precision question
 
Hey guys, I have a code like this: E = (1.0/128.0)*(cos(4.0*m)) + ((7.0/8.0)+(1.0/32.0)*(sin(4.0*m)))/(4.0*cos(4.0))*(sin(4*m)) + (pow(m,2.0))/16.0 - 1.0/12...
[1 reply] : Are you sure you get that output? I get -0.246092. #include <iostream... (by Peter87)
Enter X Y and Height
 
Hello, So I am creating 5 objects of type Box, each with an x, y, and z component. I then attempt to calculate the Volume of each box and print it out for ea...
[3 replies] Last: int Box::getVolume() { for (int i=0; i<5; i++) { return Volum... (by Fransje)
User to exit the program
 
Hi guys and Girls First of all i want to say that i am very new to c++ as i have just started learning it at college. My assignment will be issues soon where...
[8 replies] Last: Thats it. Thank you so much guys for all your help :) (by mcoliver88)
by G3PO
Long Max question.
 
So I'm working on my first program for class, and I'm still very new to all of this. My program is supposed to "assign the largest and smallest short, int, an...
[7 replies] Last: I think so yes. Looks like that's the sort of thing which was asked fo... (by Chervil)
Why c++ and other languages don't have built in classes?
 
Everyone have to built some basic classes when learning the oop concept and even for developing database for some organization some some classes are frequently ...
[5 replies] Last: some classes are frequently used like student class While learning C... (by Chervil)
October 2012 Pages: 1... 6364656667... 84
  Archived months: [sep2012] [nov2012]

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