Beginners - November 2011 (Page 37)

by KuPosu
Function Call *Help*
 
I cant not figure out whats the problem with my function call. I keep getting these errors. prog5.cpp: In function `int main()': prog5.cpp:48: error: no m...
[9 replies] Last: Probably since n is an int, *n has no meaning so the compiler is confu... (by firedraco)
Plz help super noob (run-time check failure #3 variable is being used without being initialized
 
Can anybody plz help, very new to programing,trying to make program to display largest of a number of inputs.Code i have is /*Program showing largest number...
[2 replies] Last: thankyou so much for your speedy reply (by bobby brown)
Can someone check this code out?
 
I need to write a program that displays e^x for a non-negative integer (x). The number x will from user input. It is sufficient to use 10 as a max number for n....
[1 reply] : Your while loop at line 30 requires x > 11 , but it's only ever set t... (by jim80y)
Starting With C++
 
I have just finished an introduction course to Object Oriented Programming and I am really enjoying it so I would like to continue. The only problem I have is t...
[1 reply] : HI, as you told that you have basic knoweledge then you may use bjarn ... (by codekiddy)
Getting an extra result
 
I can't for the life of me figure out what I'm doing wrong. I have four dates that are being read in. 01 01 2011 5 04 04 2010 10 11 23 2009 200 03 01 2004...
[4 replies] Last: binarybob350: That fixed the problem. I really appreciate it. Why does... (by thechad90000)
reading bitmaps & manipulating them
 
hi How can bitmaps be read and then be interpreted (for example trying to know/check the size of the image and the colour a pixel happens to be )? Any go...
[5 replies] Last: Well then, you want to learn about these functions here. you can googl... (by WilliamW1979)
inheriting mutator functions?
 
So I'm trying to figure out what is wrong with this program but Cay Horstmann doesn't want to explain it to me :( #ifndef ENTREE_H #define ENTREE_H #include ...
[3 replies] Last: When you create a class that is also a part of another class class do... (by WilliamW1979)
Help with program -Beginner
 
Hello, I have been working on my c++ code for quite sometime and have not been able to get the output correct in it. It is a mortgage calculator that asks the u...
[4 replies] Last: Well if you're not allowed to use that. On line 11 remove your first t... (by hbjgd)
What's next?
 
Okay, I'm going to keep learning C++ console programming for awhile, but I'd like to know what roads are open to me now. I have a lot of the basics in my hea...
[3 replies] Last: socket programing or network programing to be more precize is as it sa... (by codekiddy)
why doesnt this work on microsoft visual c++?
 
#include <stdafx.h> #include <WinSock.h> #include <windows.h> #include <iostream> #include <fstream> using namespace std; int main() { int co...
[7 replies] Last: All IDEs do the same thing: compile and then link. Sounds like dev c+... (by andywestken)
need to change this graph
 
heres my graph: │ │ │ ...
[10 replies] Last: Magic Numbers http://en.wikipedia.org/wiki/Magic_number_%28programming... (by andywestken)
cin.getline help!
 
this is the code i wrote for a project (a part) #include<iostream.h> #include<string.h> #include<stdio.h> char nm ; int i; class plog { char name ; ...
[1 reply] : cdeblast, your major prob is that you are trying to use both cin and c... (by SpectresShadow)
Alternative to GetChar();
 
I'm trying to find a way witouth using getchar() to escape a fonction. Much like an emergency exist. Exemple: for(;;) { Somethingisgoingonhere(); } The go...
[no replies]
Read data from an input file
 
Hello, i am having trouble bringing data that is located in a .txt file into my code. My instructions are to read the data into my code, using nested for-loops....
[6 replies] Last: i have no idea if any of what i have is correct, im just going by what... (by Grimlocke46)
Continue with program only if condition is met
 
I need to write a program using only if else statements that prompts a user to enter an account number and beginning balances. Account number needs to be betwee...
[2 replies] Last: A simple, though probably inelegant, way to do this is to use your ||... (by TimL)
by Taino
Prime numbers Application
 
Hi, I have an assignment that requests that two integers be provided in a range and that these numbers should be checked if they are prime or not. I am h...
[no replies]
problem in reading file
 
i want to read this hex values from a file "8F 78 C6 12 BA 98 A2 16" and put this value in a variable long long and to ignore the separators to be the value lik...
[2 replies] Last: Use a char buffer to read 8 bytes from the file, then just cast to lon... (by modoran)
Easy String question
 
I am writing a function that finds a specific string in a character array (c style string). As far as I know something like this doesn't already exist in the st...
[6 replies] Last: Very silly of me. I used a simpler test case and realized that I neede... (by trentkg)
Help writing a program
 
As the title says I need help with writing a program that will do the exact following output Enter hours: 145 Result: Sunday, 1 am PROGRAM ENDS the ra...
[7 replies] Last: else if (hours>0 && < 12) cout << "a.m."; This is wrong. I think yo... (by Moschops)
confusion about const
 
In my program there is a function: void findLeaves1 (const Node <Comparable> * & t) const { .... ... Node <Comparable> * u1 = t; .....v.push_back(u...
[4 replies] Last: Agreed. The use of const_cast is pure evil. :-P Maybe someday when p... (by webJose)
November 2011 Pages: 1... 3536373839... 65
  Archived months: [oct2011] [dec2011]

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