Beginners - October 2015 (Page 20)

Help with text files?
 
-Hey, guys so I have a problem that I am trying to figure out and it goes something like this.... The car company you work for has three models of vehicles; ...
[2 replies] Last: Maybe we could start with some skeleton: open file a for read open fi... (by liuyang)
by tyee
help please begginer in cs 246, im having a hard time. needed asap. thank you
 
a) Write a void function called make_it_sequence that takes two parameters: an an array of int values and an int value indicating the size of the array. The f...
[2 replies] Last: A few basic constructs you may need: The 'for' loop to fill array and... (by liuyang)
Not sure what this question is asking me to program?
 
Just learnt about arrays today so I'm not very good at them. But I have a practice question where it asks me: First, declare an array of 50 integers. Set t...
[1 reply] : Okay, what you are doing on line 15 is setting the 50th element (which... (by Tom56785)
by FeZzi
Body Fate By Using Switch Statement
 
Convert This Code to Switch Statement... #include <iostream> #include <math.h> using namespace std; void main() { char gender; float a1, a2, a3, a4, a5...
[2 replies] Last: switch(gender) { case'm': case'M': //your calculations you can just co... (by Hardisius)
Dividing numbers using recursion
 
So i need to write a function that divides 2 numbers and gives a remainder and a quotient using recursion, but without any loops or division or mod operator. Th...
[no replies]
by jksdk4
Build errors are being thrown on class definitions
 
I'm trying to design a class to be able to accept various input and then return the values. Every time I build it, it complains about unknown override specifier...
[3 replies] Last: Hi again, Some other things: Consider using a ctor initialiser list.... (by TheIdeasMan)
Function call problem
 
Hi, I'm new to programming and I need help with this problem. I have this piece of code: #include <cstdlib> #include <iostream> using namespace std; ...
[2 replies] Last: Thank you very much! (by nebula190)
Arrays and Functions
 
Hey! At a loss here. So i have to create different functions for a main that will create an array and sort the array. What I have so far is below. My confusion ...
[3 replies] Last: By returning the array I meant returning the pointer to the array. I e... (by Sweats)
Code error
 
Can someone please tell me what's wrong with my error and why it's not working #include <iostream> using namespace std; class A { int valuea; ...
[2 replies] Last: Thank you so much (by GGWPBOT)
by Andym
if, and, or.......uh...?
 
I know, I'm dating myself here but I feel like the old Saturday morning School House Rock song....."conjunction, conjunction, what's your function". I know wha...
[18 replies] Last: You go get your own thread Douas. the typical yank response, interferi... (by closed account 48T7M4Gy)
Reading my file's .exe
 
So i have an assignment to write a code that reads its own .exe file, and output only the ASCII characters contained within. Below, is what i have so far... ...
[3 replies] Last: It's ASCII characters not ASCII letters. ASCII characters is : 0~127 (by hdj)
HOW DO I ADD COIN VALUES?!?
 
How do i go about setting quarters to 25, dimes equal to 10 and nickles to 5 and pennies to 1? #include <string> #include <iostream> using namespace std...
[1 reply] : total = (pennies + (nickles * 5) + (dimes * 10) + (quarters * 25)) / ... (by closed account E0p9LyTq)
Starting in C++ Programming (Sine,Cosine)
 
Sorry for delete the code, my chief doesnt like it, and I can be fired or something
[3 replies] Last: Solved (by bananasamurai)
by jethko
Parts of code being skipped
 
Okay so I am playing around with simple encryption, in this case XOR. I have put the Encrypting part of the code in a separate file and it works fine, but when ...
[4 replies] Last: Oh wow that's much better :D oh okay. That makes sense :) okay sweet... (by jethko)
Help with Switch & Calculation Sets
 
Can anyone tell me how to use a statement, maybe switch, to change the used block of code of calculation for a specific gender. I'm calculating body fat for bot...
[3 replies] Last: Sorry but I am trying to do it using switch, I hate that I have to tho... (by Panda187)
Please help on my homework
 
My question is: name global variables type of t100? #include <iostream> #include <fstream> using namespace std; struct t100{ float sesta; int cetvrta; ...
[6 replies] Last: I think I still don't understand your question. where are global vari... (by dhayden)
Division using Recursion
 
I need to write a function dividing 2 numbers using recursion. I cant use any loops or the division, multiplication, or modulus operators. This is the code ive ...
[1 reply] : Remember that division is just repeated subtraction . I'm going to m... (by Duthomhas)
Help with homework =/
 
I really need help, Got for homework to write the following code, but I have no clue how to do so :/ .. I need to make a program where the user writes 2 n...
[7 replies] Last: As I interpreted your OP, x and y can be any points on a Cartesian gri... (by AbstractionAnon)
Need some changes with function (C++)
 
Hi! I 'm new here. Well, i have some problems with my code. First of all, i speak spanish, so i might need to apologize if my english is not very good (also som...
[1 reply] : Quite possibly line 55 should be: while (opcion == 1){ (by Norm Gunderson)
expected ';' before ')'
 
although i have put ; before ) it keeps showing me an error. what's wrong with my code? Put the cod #include <stdio.h> #include "genlib.h" #include "si...
[1 reply] : printf("mikroteri %d\n"), smallest); Too many ) in this statement.... (by Norm Gunderson)
October 2015 Pages: 1... 1819202122... 57
  Archived months: [sep2015] [nov2015]

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