Beginners - November 2008 (Page 15)

Structure/variable troubles
 
So I have two montlybudget variables, one being a constant amount and the other available for input. My problem is the achieved variable gets a error reading no...
[7 replies] Last: Good eye. I do feel a little dumb for making the mistake, but thank yo... (by cascade384)
by gaoria
Cant compile in DevC++
 
I'm using Bloodshed DevC++ but it cannot compile,and only displaying this message "The system could not find the file specified".And when I start it,it displays...
[9 replies] Last: Thanks Anantmishra (by gaoria)
User-Function not returning the new value
 
when i use the following code: String Reverse(String c) { String temp; String temp2; int tempsize; tempsize = c.length(); while(tempsize >...
[3 replies] Last: The C++ Standard Library already comes with the string class that melk... (by Poke386)
by avels
Geometric Series - replace pow
 
I have a problem to replace "pow" in my program below (infinite geometric series).If the input a=2 and r=.99999 the program will get the answer so slow. Otherwi...
[6 replies] Last: It's a different pair of shoes! Notice that the next member or the ... (by melkiy)
Pointer protection?
 
Hello all, I'm working my way thru "C++ A Beginner's Guide" by Herbert Shildt from the MSDN web site. Right now I'm about half way thru Chapter 4, pointer...
[1 reply] : In most operating systems each program works within its own address sp... (by melkiy)
Fuction Overload
 
I'm trying to use a fuction overload to display a int float and a double. Seems it only wants to display a int. Any help greatly appreciated #include...
[1 reply] : If not to criticize other aspects.... i'm sure it displays all right, ... (by melkiy)
by xxyk
How to prompt a shell in C without using system function or execve family?
 
How to prompt a shell in C without using system function or functions in execve family? for example, I wanna prompt "/bin/sh". Thank you.
[no replies]
how to write a program to read a number n
 
and print n 2 ,n 3 .
[4 replies] Last: @firedraco: I know, but I saw all @ankitsikka1992 topics like this aft... (by Karql)
Looking for a mentor.
 
Learning c++ is something i'm trying to do very hard, and i think i would be able to learn it better if i had someone who would give me assignments and then che...
[2 replies] Last: Thread is done i have found a suitable mentor. any mopre post woill be... (by Codeghoul)
Program closes on If then statement
 
I'm wanting to take some programming classes at my college next semester, so I figured I would practice a bit before hand. I've never done any kind of programmi...
[18 replies] Last: Yeah, it has been stumping me for a few days now and I was trying to f... (by xSlay3Rx)
prime numbers
 
to print the list of prime numbers between natural numbers "1" to "n" we have that "sqrt(n)" algorithm. is there any other algorithm so that the compiler takes ...
[4 replies] Last: In terms of memory usage, all you really need is a boolean array to in... (by jsmith)
Math problem
 
How to generate a code to solve for 't' in sin(t) = (-1<any real number<1)xt. Also, plz tell the specific name of such kind of problems, if any. Let me explai...
[2 replies] Last: Check out http://en.wikipedia.org/wiki/Arcsin It has a formula f... (by jsmith)
function usage
 
can u tell me HOW AND WHEN to use switch() and break() function. also the header files for the same
[2 replies] Last: Read this: http://www.cplusplus.com/doc/tutorial/control.html#break ... (by Bazzy)
by Timbo1
Game componenet missing
 
Hello can anybody help me? I am creating a game here is the code with the error: #include "Library.h" ;void main(); { // Generic welcome screen. ...
[1 reply] : Too many semicolons: change ;void main(); into void main() ... (by Bazzy)
by Timbo1
Game code
 
I need some help with my game: here is Main.cpp code: #include "Library.h" ;void main(); { // Generic welcome screen. cout << "\n\nWe...
[3 replies] Last: When a function has it's return type as void , it means that it does... (by guestgulkan)
How to make a program to enter the base and its power and print its reult???
 
Can anyone correct this please? #include<iostream.h> #include<conio.h> #include<math.h> void main() {clrscr(); long num,result,pow; cout<<"enter the n...
[5 replies] Last: Bazzy, Your right, I should have stated that ^ means xor not power. (by Hypersion)
by Claymz
Calculator
 
just an error i cant get through... error C3861: 'atanf2': identifier not found #include <iostream> #include <cmath> #include <string> using namespa...
[8 replies] Last: omegazero yea ive fixed that already, so it has 2 parameters but its t... (by Claymz)
by Ryborg
Making a polymorphic logger
 
I'm doing some more C++ learning here, and I have some questions about cleaning up a vector that contains abstract base classes. I created a simple "console"...
[2 replies] Last: Perhaps you could add a pure virtual clone() method to the Logger clas... (by seymore15074)
Making a spreadsheet?
 
I was wondering if there was a way to make a spreadsheet type of thing without having to put a whole *bleep* load of strings, couts, etc... Like just a string o...
[3 replies] Last: I'm not sure if this is what you want to hear or not, but if you send ... (by seymore15074)
by cbdb
having alot of trouble with my class
 
im taking a c++ online class and im really in trouble because i didn't get my book on time and now im behind and im also really stupid and cant do it so does an...
[5 replies] Last: Change your include line to: #include <iostream> ...and then every... (by seymore15074)
November 2008 Pages: 1... 1314151617... 19
  Archived months: [oct2008] [dec2008]

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