Beginners - June 2015 (Page 22)

classifying number
 
Question 2. Write a function, initialVar, to initialize the variables such as zeroNum, oddNum and evenNum using the paramete reference technique. Write anot...
[4 replies] Last: tqvm (by newbie99)
Help how to store a linklist in a binary file
 
hi all please help me how i set a linklist and finally it stored in a file and how to read that file show. here are my code #include "stdafx.h" #include <fstr...
[4 replies] Last: A linked list is useful for your program, but less so for a file. It... (by Duthomhas)
Pointers to Functions
 
Hello All, I was hoping someone could help me out with a knowledge check here. Let's use the following as an example declaration: const double * (*pa ...
[2 replies] Last: > (*pa) is first element. (*pa) is second element pa yields a re... (by JLBorges)
arrays/find frequent terms
 
Hello, I am trying to writing a C++ code that will count the words from a text file. I want the code to output the top 5 most and least most frequent words ...
[3 replies] Last: You code build OK for me, so I'm not sure... Usually if the compiler ... (by andywestken)
What kind of loop to use? How to limit terms on a line?
 
This is a program testing Ulam's Algorithm that says any positive integer would always reduce to 1 if the following algorithm was repeated a sufficient number o...
[7 replies] Last: Hi Andy! That's a good idea. I knew checking for counter == 10, 20, a... (by newbiee999)
Can't figure out what is wrong with my input
 
Can anyone try to tell me what is wrong with my input thus leading to a bad output ? #include<iostream> #include<string> #include<iomanip> using namespac...
[6 replies] Last: I need to use exactly strcpy ... As BlatantlyX has said, strcpy work... (by andywestken)
by srtzyf
node redefinition
 
Write your question here. // merge.h struct node { int info; struct node *next; }; void divideList(struct node *,struct node **); struct node *...
[1 reply] : #include "merge.c" You didn't show us merge.c, but I'll bet that ... (by AbstractionAnon)
lists, classes and inheritance
 
Is it possible to create a list whose members consist of different classes, which derive from the same base class?
[1 reply] : Not exactly, but you can create a list of pointer-to-base-class, which... (by shadowmouse)
by ar2007
mingw32-c++.exe: error:
 
Hello everyone. I installed the version code :: blocs 13.12 as required by the installation instructions. Now, if I try to compile any code, I get the following...
[2 replies] Last: hi LB, thx for help. tried these flags in code :: Blocks-> Project->... (by ar2007)
getline compiler error
 
I want to use getline in order to read data from a text file. The file opens successfully and the program can read the data from the file when I use the followi...
[2 replies] Last: Oh, thank you very much, I didn't know that! (by very novice)
by pravi
C Structures Wrong Output
 
What is wrong with the program in C? <#include<stdio.h> #include<conio.h> struct boat { int age; char name ; }passengerinfo ; void main() { ...
[1 reply] : The problem is that you've only allocated space for 2 passengers. Chan... (by dhayden)
Can someone help with an equation?
 
I have to make a program that calculates the bill for renting a car. The problem is I have to make it calculate the days rental fee for the car like this. ...
[5 replies] Last: I'm 6 weeks in to my first programming course. You're off to a good... (by dhayden)
How do i make C++ ask a question
 
Hey, what is the code that makes C++ ask a question like, what country do you live in? and save the answer to a file. Or, if that is impossible, how would i mak...
[3 replies] Last: In the code above the file name is a relative file path which means th... (by Tom56785)
What is this exercise asking us to do?
 
What is exercise #7 in this link asking us to do? http://en.wikibooks.org/wiki/C%2B%2B_Programming/Exercises/Iterations Write a program that asks the user to...
[6 replies] Last: I can confirm that this works for positive integers. (by BlatantlyX)
Analogue Clock on Visual Studio 2013
 
Hi everyone. I have a c++ project to make that includes an analogue clock. User will input a city from around the world and the output is an analogue clock tha...
[1 reply] : QT is certainly a good choice. Here's the example for a analog clock: ... (by coder777)
by mindoo
error using beej's guide to networking
 
Hey guys, It would be very cool if you guys could go see my thread in the windows proggraming forum, because I don't have any answers and I'm kinda stuck here....
[1 reply] : It seems it has several profound answers. What question isn't answered... (by coder777)
by olette
Coin toss simulator
 
I have most of the code down, just this last part where I need to report the total number of heads and tails. I feel like this is very simple but i'm having the...
[3 replies] Last: Set up a count variable for when randomNumber == 1 and a separate coun... (by Arslan7041)
Help with error that happens when deleting
 
So i have made my own dll that contains some functions. This dll has one very important class that i have defined. Now, it compiles fine, but when i try to use ...
[6 replies] Last: And ne55 is right -- I've worked too long with Win32. But I would gues... (by andywestken)
Linked Lists
 
Is this an okay way to set up a linked list? #include <iostream> #include <cstdlib> #include <cmath> #include <cstring> using namespace std; struc...
[4 replies] Last: @liuyang @dhayden Thank you both for your answers! I really appreciat... (by jhykima)
June 2015 Pages: 1... 2021222324... 32
  Archived months: [may2015] [jul2015]

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