Beginners - October 2013 (Page 9)

by sky3
while(cin)
 
Nested if statements in while loops, do i need an else statement after every if? If statement is just adding every number in file, instead of just the numbers ...
[2 replies] Last: I cant figure out why its not executing the if correctly. its just ad... (by sky3)
by aspic
help in primary expressiong
 
the error was expected primary expression before ',' token this is my first time encountering this error so i dont know what to do! i already search the go...
[2 replies] Last: im using code::blocks no it didn't give any more information, after c... (by aspic)
issues with global structs
 
Since I graduated from college, the definition of struct has changed, particularly in C++. I am trying to define a global array of structs, outside of main, ...
[no replies]
I really need help for programming
 
1) I have the following question: Which of the following are invalid repetition statements in C? Explain why. Assume any constants and variables (j, x, ...
[12 replies] Last: That's a valid interpretation, but I feel not one which is suggested b... (by Chervil)
Homework
 
This is the description of that i have to do --- Time Machine if-else You will be adding on to your Time Machine program. It might be useful for you to use th...
[2 replies] Last: if (/*condition*/) { //do something } //will only run if the previou... (by Cronnoc)
Need Help on Simple calculator [Question Answered]
 
Hello I am creating a simple calculator program using functions. The current problem that I am having is that I can't figure out a way to call the function to p...
[2 replies] Last: Awesome, thank you! (by Excuseyou)
Bubble Sort
 
Hi I'm trying to do a simple bubble sort on a list of numbers. So I'm trying to write a program that will go through an array of numbers, compare one with the...
[7 replies] Last: Basically, a bubble sort for n elements works the following way: 1. S... (by Albatross)
arrays and addresses
 
in my case, grid is the address of the first element of array grid; so why the address of the address equals the same address? #include <iostream> us...
[1 reply] : grid is the address of the first element of array grid; grid is not... (by nvrmnd)
Stack Operands and Calculate
 
Hey, Here is a Code that takes in integers then engueues operators and does the math reguired. any suggestions or fixes to shorten the code or even to get it a...
[no replies]
by Ratham
Pass Line As Parameter
 
I'm having problems on how to pass a line from a stream/getline as a function parameter. I have a text file that is multiple lines long and my program needs to...
[4 replies] Last: Found it, I had a file earlier and have them named in_file and in_file... (by Ratham)
Small error with a function
 
Hi everyone, thank you for your time, Im making a small program, but I cant seem to get arround this error. its proabably something silly im missing, but ive ch...
[1 reply] : Your Periodo object constructor only takes arguments when it is instan... (by mobotus)
I'm confused with references syntax
 
I'm in a C++ 1 class at the local community college. I'm confused with the syntax of using references. I know the syntax. I don't know how it works. For instanc...
[3 replies] Last: I just got back from class where another student was able to explain h... (by kenglong)
My Break not Working
 
This is a program that reports current 'state' location and then moves to different state if user input is correct. Before I enter the input/state loop, I wante...
[3 replies] Last: I fixed the problem by checking the input with the following after lin... (by AHTPilot)
checking if number is pandigital
 
This code checks if number is pandigital (from 1 to 9). I have a few question to ask: 1. This code relies on theory that: *if number digits product equals ...
[no replies]
Storing input into a 2D Array
 
I am trying to find a way to store the user entry in the second column of the 2D Array. It's my second C++ assignment ever so forgive me if it's a rookie mistak...
[8 replies] Last: I think I might have it figured out for now. I'll label this answered ... (by cjbUSMC)
Morse Code CSE202
 
I have to write a Morsecode program for my CSE 202 class. I run the compiler and get a huge mess. Looking for some help from the pro's. Any amount will help. ...
[no replies]
by Colbyn
Curious beginner.
 
I would like to start this topic off with saying that there is maybe thousands of topics that go " I want to make video games where do I start! " and I have res...
[8 replies] Last: exactly! have fun learning m8 ;) (by Uk Marine)
Sorting arrays
 
Pleasae help with this code. The questions asks to sort the numbers in set from minimum to maximum. #include <stdio.h> int a ; int n,i,x,j; int temp;...
[2 replies] Last: You are attempting a bubble sort. http://www.cplusplus.com/faq/sequenc... (by Duthomhas)
Guessing Game - So Confused
 
Hello. I am in my first c++ class, and was doing very well. I missed a class and I am completely lost. I am reading through the book and some of the differen...
[10 replies] Last: #include<iostream> #include<ctime> using namespace std; int main()... (by millerr8172)
Help with Functions
 
Been working at this assignment for a while and it seems like I've hit a brick wall. Not sure why this assignment is giving me so many problems. Could someone l...
[3 replies] Last: Sorry, I was trying everything I could to get the code to actually pro... (by allendks45)
October 2013 Pages: 1... 7891011... 86
  Archived months: [sep2013] [nov2013]

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