Beginners - February 2016 (Page 28)

Thanks
 
please delete this topic
[1 reply] : Hi, First up, please edit your post so it has code tags, how to use t... (by TheIdeasMan)
Call by reference
 
I am having a code from three pieces Header and two cpp classes. I want to know is my structure is correct and why is not working. I got no error but it's just...
[11 replies] Last: lab2.cpp:21:13: error: no member named 'Create' in 'User' ... (by dhayden)
output not adding up to correct number
 
I am learning function overloading and I am a bit confused on the output I am getting. when I add the numbers up from the program on my calculator I get 32 and ...
[1 reply] : int manip(int, double); int manip(int val1, double val2) { return ... (by TarikNeaj)
Void function not counting my values
 
I have a simple salary program here that calculates the Federal Withholding Tax and FICA tax. I've already tested this program in a regular while loop and it wo...
[3 replies] Last: You don't need it in calcNetPay since you're only using them to calcul... (by TarikNeaj)
by Pabel
"enum" and "struct" in uController
 
Hi everyone, I'm working with microcontroller (actually with XC32 compiler)programming in C, and I using enum and struct as below. typedef enum TimerMod...
[no replies]
Reading different lines into different arrays
 
I want to read from a file and if the line starts with "a" put it in one array and if the line starts with "r" put it into a different array. I know i have to u...
[1 reply] : Hey =) I did this real quick for you, try and learn from it and create... (by TarikNeaj)
by Gr1m
C++ coding help
 
So what i'm trying to do is write a program that prompts the user to enter the number of doodles to be shipped then calculates the number of each size container...
[3 replies] Last: I think I understand what you're asking here, but this seems like a mu... (by Yawzheek)
"The Riddler Problem" Question
 
This is actually a question based entirely on, "Did I cheat?" and, "Did I do this efficiently?" Since I'm just self-study for learning working my way through an...
[5 replies] Last: Like I said before, as you learn you find better ways to do things. Yo... (by Tom56785)
using pointers and 1 dimensional arrays, while filling the positions with chars
 
I don't understand why I am told to use char for the new_input but it is created an error from that. error: tictactoe.cpp: In function ‘int main()’: tict...
[1 reply] : Hey. Please edit your post and always use code tags for all of your co... (by TarikNeaj)
Why won't this compute?
 
Why won't this compute? i have been working all day trying to get it to compute correctly! //=============================================================...
[7 replies] Last: By writing code - http://www.cplusplus.com/doc/tutorial/files/ (by TarikNeaj)
by dn90
Overloading the + operator with two arguments?
 
I'm trying to append a string literal to the end of a "vector" (I'm not using STLs, I'm essentially imitating a vector). My Sample.h: template <typename O...
[2 replies] Last: Awesome man, the code worked. I see what I did wrong in my attempt. (by dn90)
by nanJIL
basic coding
 
can someone explain to me SIZE. why they use SIZE? help! const int SIZE = 3; int age ; string name ;
[2 replies] Last: Thanks Moschops. Now I do understand (by nanJIL)
by nanJIL
looping
 
why do we open counter in c++ example int counter=1; while(counter == 1)
[1 reply] : Sorry but your question doesn't make much sense, and no one really wri... (by TarikNeaj)
palindrome checker, weird return types.
 
This is for an assignment, its to check if a palindrome is true or not. If I run this in debug mode and follow through it does work, although the return values ...
[5 replies] Last: you promised to return a value but failed to do so. undefined behaviou... (by ne555)
Divide into functions and Output to file
 
How do you divide this up into functions and output it to a file #include <iostream> #include <cmath> #include <iomanip> using namespace std; in...
[1 reply] : Found on google: http://www.cplusplus.com/doc/tutorial/files/ htt... (by TarikNeaj)
Programming assignment question
 
Write your question here. Description: In this assignment, you will develop a C++ program that calculates gain or loss of a stock you purchased. Go to the we...
[2 replies] Last: This helps immensely thank you so much! I would have to agree I am alw... (by SiliconPatriot)
Correction on my C++ program
 
Hello everyone, I am trying to write a simple practice C++ program in which the user types a number greater than 50. I'm trying to use bool type often in prepar...
[3 replies] Last: Yes, it looks like what you're doing is just comparing: bool i; th... (by Yawzheek)
by petroy
Problem with my Solving Quadratic Equations Program
 
I don't quite get what is wrong with my program, well, I believe the error is a matter of {}, however, I'm having trouble determining the correct spot to place ...
[7 replies] Last: OH! My bad. Thanks you guys. =) (by petroy)
by nanJIL
c++ coding
 
what does name.compare do actually? if(name.compare("Michael") == 0){ //attend1 showAttend(attend1); } else if(name.compare("P...
[2 replies] Last: One might take a guess (something one should not usually do) that the ... (by Chervil)
plese help last part does not work
 
help with searching part using name the last part //Geshu Sinha XI Sc.A //Project Work #include<iostream.h> #include<string.h> #include<stdio.h> #inc...
[1 reply] : replace all your following staffs char r ; gets(r); if (strcmpi(r, e ... (by liuyang)
February 2016 Pages: 1... 2627282930... 46
  Archived months: [jan2016] [mar2016]

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