Beginners - March 2009 (Page 5)

by Tuthon
Program to calculate a function with masive
 
Can you help me to change this program to work with a masive. #include <iostream> #include <cmath> using namespace std; double f (int x, int n) { ...
[5 replies] Last: wherever importance то joint (by Tuthon)
Can you use if statements in a switch statement?
 
I'm working on a project for my class, & I'm using a switch statement. But I need to use if statements in my switch also. Is it possible? For instance, swi...
[2 replies] Last: Oh ok. Thanks! I was just making sure since switch statement is anothe... (by kenneth196)
by lipune
c question
 
what is the meaning of this; #if _cplusplus extern "C" { #endif
[1 reply] : if compiling with a C++ compiler, then declare everything inside the e... (by jsmith)
by gogo
Problem with Enters
 
I want to write a program which will be able read from keyboard(but when there are Enter entered from keyboard program will be finished!) and write it in the te...
[1 reply] : Why not just have the user enter a special character or number to end?... (by eker676)
Struggling with inheritance (passing variables between classes/functions)
 
Hi all, Thanks in advance for taking a look at this, I'm just starting out, so I'm sure the form will make your head hurt. Nevertheless, what I have here is a ...
[4 replies] Last: Thanks Seymore15074, I think suggestion #1 is probably the way to go. ... (by Harmoni Bond)
by pjesh
Babylonian Algo.
 
"Write a program that inputs an integer for n , iterates through the Babylonian algo. until guess is within 1% of the previous guess and outputs the answer as d...
[3 replies] Last: To print something out, use cout. I'm guessing that wasn't what you... (by eker676)
by Dval
Figuring out mutators
 
Hi, I'm hoping some folks can help me figure out mutators. Here is what I've learned thus far. I create a new int. I give that int a value. I pass that int...
[3 replies] Last: Yes both numbers will be in hex. cout does keep it formatting options... (by eker676)
by Honger
First Program Math
 
So i started lurning C++ and it's going pretty well. So i thought lets start to write without any help, and the help i need search it up. But now i've made a si...
[7 replies] Last: Ok i've found out maybe the issue i guess.. I use netbeans on linux u... (by Honger)
Problem using isgraph()
 
Hello i am new to c++ and i am having a problem with using isgraph() from the cctype library in my program, what the program is doing is reading a file in binar...
[2 replies] Last: never mind, i figured it out...cant beleived i missed it *cries* (by sPOT902)
C++ Inheritance Code - Error problems...
 
// Lab 1: bankAccounts.cpp // Test program for Account hierarchy. #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::s...
[2 replies] Last: Thanks so much!! ... i knew it would be something stupid like that. Bu... (by arclite)
how to find error of my coding?
 
this is my code of McD simulation but i can't find the error.. if can, i don't want the header file because its difficult for me to find the error.. 1 C:\Dev...
[1 reply] : The messages actually tell you what's wrong. Have you read them? L... (by kbw)
by lipune
c question?
 
what is the meaning of this struct ast_channel *(* const requester)(const char *type, int format, void *data, int *cause); 2-what is the use of static struc...
[1 reply] : 1. This is a variable declaration. requester is a constant pointe... (by kbw)
by ocean
Interaction with IP config
 
Hi, I want to make a win console application which will allow me to change my IP? Can someone help how to start or where to look of such information. T...
[2 replies] Last: Hi helios, do you maybe have some code for that kind of interaction... (by ocean)
by nubee
Proper function placement assistance
 
Can someone look at this code and tell me if I am on the right track? I am trying to modularize this program using three functions, besides the MAIN Its obvi...
[3 replies] Last: I just did a quick visual inspection first. After compiling it I fo... (by eker676)
by gogo
When there are 2 Enter, program will be finished!
 
I want to write a program which will be able read from keyboard(but when there are Enter entered from keyboard program will be finished!) and write it in the ...
[1 reply] : What???????? Do you mean a keylogger? (by justinformed)
I need this to make a histogram of the users...i am not sure how to do it
 
I am new at c++ and this program is supposed to look at whether the customer is amazed, pleased, ect. but i can't figure it out....i need help asap...this is my...
[1 reply] : Make the player variable into a 2 element array and swap between 0 and... (by eker676)
by Reaver
Try-Catch(bad_alloc) [i cant find my fault]
 
i have an exercise in my Uni and i am a little bit confused about the try-catch exception... class Pilot //Class Pilot { public: ...
[10 replies] Last: Please post your complete source file (unedited) and the complete comp... (by jsmith)
passing reference into constructor
 
If I have a class named "whatever" with a string member str, and it has the following constructor: whatever(std::string & s) : str(s) {} Does s get copi...
[2 replies] Last: Ok, thanks. (by elabelle)
Passing arguments to cmd
 
All, I need to know how do i pass arguments on cmd to a CPP program using int main(int argc, char * argv ) Please help me with anything, source code or j...
[9 replies] Last: You say you want to take cmd commands as arguments but you need to be ... (by mcleano)
by Muidem
Problem retrieving values from an array
 
I've written a little Student class as part of a project I'm working on. However, I'm stuck on trying to retrieve values from an array. I understand my program ...
[2 replies] Last: Arg ><, I'm a java refugee so I keep forgetting about passing by refer... (by Muidem)
March 2009 Pages: 1... 34567... 29
  Archived months: [feb2009] [apr2009]

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