Beginners - April 2012 (Page 37)

by Mikko1
If else statement doubt
 
The question is to search for a book title and display the details.If book title does not exist give appropriate error message. When i tried this program it is...
[2 replies] Last: :S This is logic problem. Your code does exactly what you wrote, but... (by Shinigami)
C++ magic square help.
 
I am taking a beginning programming class, and we need to make a program where the user enters in a 4x4 square of random numbers. Then the program needs tell th...
[5 replies] Last: Ok so I talk to my professor and he said that we cannot use loops beca... (by onetime47)
by yoko
Number check in an eof, adding the numbers, and check digit in?
 
I have written the file and store it to my computer. However, this is not the issue. The issue is the numbers are not showing up to what I need. I need the tens...
[1 reply] : end of file is bool function that returns true if the file pointer is ... (by ui uiho)
using classes, struct, int, char or the like in other .cpp or h files
 
im having trouble using classes, structures, ints, and char in files that need the stuff in them. I have tried using the include <example.h> in the .cpp file I...
[2 replies] Last: #include "example.h" Use quotes for files in the same directory. (by Lowest0ne)
creating a function which takes in two arguments(words) and checks if one is present in the other
 
Howdy, I am trying to create a function in which i compares two words and sees if one is present in the other and output the remaining word at that occurrence, ...
[5 replies] Last: cout is a function. and i only used std::string which you use and a ve... (by ui uiho)
String streams!
 
I have a simple encryption program here. I have to alter it so I can format the the name lines so that "King Beast Kong" would come out "Kong, King B." and "Fay...
[16 replies] Last: No problem. (by CJC0117)
Please help me xplain...
 
hello guys..good day..this is my 3rd day of learning how to program and I stumbled upon this code and I really don't understand a certain part of this program.....
[4 replies] Last: No, N should not be changed. The for just verifies whether j fits the... (by frema)
by ND04
Help with trivia program
 
I am a bit confuse to where the last part of the program that asked me to calculate and display the number of correct and incorrect answers. Please help. #in...
[3 replies] Last: that is wrong. read the second post in the beginner forum and that exp... (by ui uiho)
Guessing game-help me with my assignment please..... (1,2)
 
due 15 APRIL The Assignment The game to play is a well known number guessing game. Alice asks Bob to pick a secret number between 1 and 15. When Bob has sel...
[22 replies] Last: there is no way to rewrite an actual random number. you can do clock()... (by ui uiho)
Square Root Function
 
#include <iostream> double squareRoot(double number) { const double ACCURACY = .0000001; double lower, upper, guess; if (number < 1) { low...
[9 replies] Last: figured out the do-while. I shouldn't of included that code below the ... (by rsh0117)
is there a way to measure time elapsed using a c++ program?
 
I went through this forum and got to know that the time() does this. But, I'm not quite sure I understand how to use this function. Here is an outline of the ...
[3 replies] Last: hey look at this just do some adjustments.. /* difftime example */ #... (by unixbased)
Line Output. (homework)
 
Yes this is homework but I just need some direction please I am looking to pause my 31 line file at line 24 and wait for the user to hit enter. I have tried...
[2 replies] Last: Thank you! I will use that logic! Thanks for the direction (by TNavy99)
NFS World HACK
 
I need help making NFS WORLD HACK to change cars. Can someone help me. Where do I start?
[5 replies] Last: This is a forum for programmers, not gamers. Navigate towards this sit... (by closed account zb0S216C)
Array size question
 
Hi there, I know that for an array that is declared like T array the size of the array can always be found by using int size = sizeof(array)/siz...
[7 replies] Last: [quote=Gaminic]On this topic: If there is no way to find the size of t... (by Duthomhas)
by Ch1156
Dinosaur battle game
 
I made something like this and posted for help a while ago, but that code was sloppy so i re-wrote it all and now i have a problem. I put in a random number gen...
[18 replies] Last: It can make your job easier, you can create a "Basic" Dinosaur, and cr... (by S G H)
by Dmahn
infinite while loop
 
I'm writing a program to demonstrate the use of structures. here it is: #include<iostream> using namespace std; struct courseRecord { int myTests...
[2 replies] Last: Get rid of the do/while loop. So then you would just have: for (a = ... (by long double main)
assignment: replaceSubstring Function (1,2)
 
Hi all, I've written most of the code for this assignment, however I'm stuck on one part. Here's the assignment: Write a function named replaceSubstring. The ...
[23 replies] Last: if string1.substr(starting from i, to the length of string 2, equals ... (by Athar)
can someone help me with this homework problem?
 
Consider the code segment: int Num = 13; cin >> Num; if (Num <= 15) cout << 13 << setw(2) << Num; cout << '+'; Suppose the user h...
[5 replies] Last: wow, it definitely worked lol. i understand now thanks. if you dont ... (by byronflds)
How long do you think it took to make this game?
 
http://www.homestarrunner.com/disk4of12.html Also, I have about a 2000 line RPG that I'd be interested in converting to this games format, how would I go about...
[4 replies] Last: Well yeah, I just me like how the entire game works, looks and runs, I... (by facebookisgayyy)
Having problem with function to set bits
 
I'm working on an assignment where I have to implement a class called BitArray which has functions that perform bitwise operations. I'm working on the Set() fun...
[5 replies] Last: Got everything working, thanks for the help JLBorges! (by deeburt)
April 2012 Pages: 1... 3536373839... 66
  Archived months: [mar2012] [may2012]

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