Beginners - October 2012 (Page 70)

by jblv
Problem with trigonometric function
 
Hello, Variable z2 is not returning the real value, which is the ~z1. The formula is right but somehow it doesnt work, maybe someone could explain why. Many ...
[3 replies] Last: the division of an integer with another integer always gives an intege... (by Pter0dactyl)
getting problems
 
#include <iostream.h> int main() { int a, b, c, d, q; cout<<"what you wanna do???\n"; cin>>q; if (q=='1') { cout<<"first side\n"; cin>>a; cout<<"second sid...
[2 replies] Last: thank you that really helped me!! (by abeginner23235616)
by Kallan
Shortest path of maze using BFS
 
Hi, I´m trying to make maze solver using Breadth-first search and my program can already find the way out of the maze but I don´t know how to keep track of th...
[no replies]
dynamic object
 
Here my goal is to enter employee record and then display it.Delete specific record then display again all the records using dynamic memory management. #i...
[4 replies] Last: define destructure for employee class By this do you mean a destruc... (by TheIdeasMan)
String subscript out of range error
 
I'm trying to create an ad hoc scanner that reads a calculator language. When I execute the program, I get an error saying the following: "Debug Assertion Fai...
[3 replies] Last: This line is already if(holder == 'r' && holder[x+1] == 'e') ... (by vlad from moscow)
by cmad
new to c++,stuck on assignment
 
i am new to c++ and have this assigment to do and i am having problems with all of it basically, reading in from a file, creating the functions etc. i ended up ...
[4 replies] Last: To make it clearer... Where is the return type for your main function... (by Aceix)
how could i get and set data on an array of objects? cant find a tutorial anywhere
 
so im looking into what this is... class classname is this an array of class objects? if i wrote class classname is that classname object number three...
[2 replies] Last: No, that's an array of 6 forward declarations of " classname ", which ... (by closed account zb0S216C)
by Ch1156
Create folder with fstream
 
I was wanting to learn more about fstream and how to manipulate files better. I was wondering how would i simply create a folder with C++? i did it before but i...
[12 replies] Last: Try changing mkdir(str.c_str(), mt); to _mkdir(str.c_str()); ... (by Peter87)
by nahla
Writing a salary algorithm, completely new to this
 
I am trying to write an algorithm to calculate salary, that will receive a 3% raise every year.  If making $20,000 this year, the salary next year would be $20...
[7 replies] Last: You might find it useful to write out your methodolgy as comments, the... (by TheIdeasMan)
Flowchart
 
Can anyone give me an example flowchart to convert infix - postfix
[2 replies] Last: Hashimatsu -> Thanks a lot friend :-) ,,it useful (by zhumpex)
Printing dynamic arrays
 
Hi! I'm still quite new to c++ and I've found a problem with one of my projects. So I have this array void Interface::vecProd(){ Product *p; p=new Produ...
[1 reply] : p=new Product ; mean that you have just one array p .... (by chipp)
by iggle
Stuck on HW Assignment
 
Hey everyone, I'm new to C++, new to programming, and new to this forum. I have a HW assignment that I am stuck on. The program "kind of" works correctly, but i...
[2 replies] Last: Thank you for the reply. I was killing my brain trying to figure that ... (by iggle)
Compound Interest program - 1 of 2 posts
 
I am going to need to put this in two posts, the assignment first, the code second. I am getting errors that I cannot use pow as a function, what am I doing wr...
[2 replies] Last: The pow function takes 2 arguments - x to the power of y. Also, consi... (by TheIdeasMan)
by Kovs95
Tic Tac Toe
 
Requires: variables, data types, and numerical operators basic input/output logic (if statements, switch statements) loops (for, while, do-while) arrays ...
[5 replies] Last: @Need4Sleep wrote: EDIT: when xhtmlx typed that code he must have mad... (by TheIdeasMan)
by nahla
Totally new to C++, can't seem to get this simple code to work?
 
#include <iostream> int main() */ { double radius = 11; /* centimeters; double pi = 3.14 double sphere_volume = (4/3)*pi*(radius * radius * radius); ...
[9 replies] Last: learn more about syntax and C++ basics too :) (by chipp)
by nahla
What does this error mean?
 
Here is my code: #include <iostream> using namespace std; int salary(int); int main() { const float r = 0.03; float money, t = 10, c = 18,000, salary = c*(1...
[2 replies] Last: Try declaring and initializing each variable on its own line. (by pogrady)
Help With Struct for the first time
 
Ok i have been working on this for close to 9 hours or so combined and i could use some help. I have some data that i am suppose to put into a struct then us...
[2 replies] Last: thanks, I think you saved the few hairs i had left on my head. (by MasterHex)
Help with 2 dimensional char arrays
 
...
[2 replies] Last: #include <iostream> #include <cstdlib> #include <cstring> using names... (by Kruschev)
by Cynicc
output
 
I'm trying to make a rectangle box in notepad using C++ codes. Anyone know which codes I need to use to accomplish this? I tried using ASCII and ANSI but it's n...
[7 replies] Last: that did it, Thanks so much (by Cynicc)
new ram faster than motherboard
 
hi, new here. is this a problem? i am told laptop motherboard is speed 667, while the new ram speed is 800. i just don't want any slowing. if wrong ...
[no replies]
October 2012 Pages: 1... 6869707172... 84
  Archived months: [sep2012] [nov2012]

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