Beginners - October 2011 (Page 5)

by Muly
Help with reading from file
 
Here is file: meal.dat \\ I have create the file using Sources Files (visual studio) B 100 E 515 S 45 D 520 and here is the code #include <iostream...
[3 replies] Last: @Muly Here is your program that first asks which entry to show, pri... (by whitenite1)
I need help formatting some printed C-strings
 
I am doing an assignment for my Object-Oriented Programming class, in which there is a class called Book. Its member data are two char arrays, one called "title...
[no replies]
Polymorphism Question
 
Hi all, Consider the following: class base { public: base(); }; class derived : public base { public: derived(); }; cla...
[3 replies] Last: Steps I took to debug: 1) Run the program, select option '5' from t... (by Disch)
Get address of the function in memory
 
hi, sorry for my english, i'm form russia) i have followind task: Description: An application that sends encrypted packets to an outside server (use WinSock f...
[no replies]
printing a unique 2D array with alternate 1's and 0's
 
I want to print 2D array which is like this.. If size is 5*5 then it output should be: 00000 01110 01010 01110 00000 My code is this: #...
[2 replies] Last: It will do you a lot of help to use a consistent indentation style as ... (by Duthomhas)
c++ help
 
Hi all im new to this site. I started college and im using Borlands C++. Im finding it going over my head. Anyone know a book that can help me to learn c++??? o...
[4 replies] Last: i hope this one will really help u. book by robert lafore http://www.4... (by asfandahmed1)
comparing strings
 
two strings of unknown length. how can we compare them? i am trying the following method. it is giving segmentation fault. I guess the problem is in line 5 and ...
[7 replies] Last: None mentioned? The elements index of any array starts with 0 thus the... (by Litaken)
string empty line
 
hi How can a string recognize an empty line? I'm having an issue debugging because my while loop gets stuck when ever it reaches an empty line (its seems as...
[4 replies] Last: Why does does ifstream stop when it reaches an empty line? (this isn't... (by Blessman11)
Can someone PLEASE correct my code?
 
I-ll highlight the lines considered wrong by the computer. #include<fstream.h> ifstream fin("case.in"); ofstream fout("case.out"); int main() {int n,cn...
[1 reply] : What errors and warnings are you getting from the compiler? Note that... (by andywestken)
Using Iterator in the list with type of pair
 
Hi, As you can see I have used pair for two type of data in a list here is my simple code and i intend to: 1.Initial my list to five space with all char = a a...
[6 replies] Last: Oh thanks now it works ... i didn't see any info about pair type in it... (by behzadkh)
is there any problem with my coding ......i cant compile it .
 
#include <iostream> using namespace std; int main() { char employed, recentGrad; cout<<"Answer the following question with either Y for Yes or...
[2 replies] Last: your code if fine . I have checked it by copy pasting it on to my c++.... (by punjabian)
by Chavis
Template's acting up...
 
Can someone tell me why while i'm adding units to this coreArray, the program pauses. Here's it is: ___________________________________________________________...
[5 replies] Last: Think of an array as a variable that can store multiple units at once.... (by Chavis)
by sipher
Dynamic allocation of array problem for histogram. Looking for some hints.
 
Hello everyone, I am a fairly new programmer, I'm gonna explain my problem fairly in depth, but I don't anticipate it should be a very long answer. I am working...
[2 replies] Last: Thank you so much! Thankfully it was a simple fix (such as not being i... (by sipher)
How does Learning C++ lead to windows form?
 
Ok question... I really want to get into creating windows form applications but I know debugging is important first so really IDC how long it takes to be good a...
[4 replies] Last: I assume by "Windows form" you're talking about GUI in general, becaus... (by helios)
Can i make this with out "using namespace std;"
 
sir can make the this with out using namespace st; it possible but i am not know i can make this please help me: #include <iostream> #include <string> ...
[3 replies] Last: Yup most DEF, You can use "STD::" like what they said above. An EXAMPL... (by iBLooDiESiN)
what is wrong with this simple function?
 
int _tmain(int argc, _TCHAR* argv ) { char cFilename = "c:\\Program Files\Diablo II\Diablo II.exe"; const char cAction = {"open"}; ShellExec...
[15 replies] Last: i give up i'm goin to bed. Sad part is i just wanted to make a simple ... (by markyrocks)
Sorting
 
How do you sort? I searched the internet and see so complicated ones. Can anyne give me a simplest way to sort? I am familiar with up to pointers.
[10 replies] Last: There is it. And it actually works. thanks!! But I thought it was hard... (by biplav17)
I can't figure out what my prof is talking about. (1,2)
 
In validtemperatures, remember that you can test a bool without a comparison; that's one of the two reasons for using bool instead of int. bool validtempe...
[28 replies] Last: Thanks a lot everyone. This was really helpful. I highly appreciate it... (by Cosimo Vilardo)
Need help with my final program.
 
My program doesnt seem to be working correctly. Can someone help me out? #include<iostream> #include <fstream> using namespace std; ifstream infile("in...
[7 replies] Last: @Cosimo Vilardo I fixed up the program a bit. You can compare the co... (by whitenite1)
Using a Function to find the lowest score
 
Any Help would be nice. #include <iostream> using namespace std; double getJudgeScore(double judge); double findLowest(double lowest); int main() ...
[9 replies] Last: OK, I realize that I'm skipping around here, but...you do realize that... (by mzimmers)
October 2011 Pages: 1... 34567... 59
  Archived months: [sep2011] [nov2011]

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