Beginners - December 2015 (Page 8)

Trying to read .txt file name and contents
 
im trying to read .txt files that my program is making so i can create an if statement but i cant find a away to read them. Thank you if you help. #inclu...
[3 replies] Last: @integralfx so like this? ifstream myfile; myfile.open(firstname + ... (by shadowfold15)
Now I am having an issue passing my vector into a function. Any ideas?
 
This code works fine but I cant help but think that there has to be a better way to do this!!! void TestVector::sixElementVector() { vector<int> da...
[4 replies] Last: Please edit your post and use code tags. Now I am having an issue pa... (by TarikNeaj)
Pass be refrence
 
I am confused with passing my values from my function to my other function by refrence ( not using a pointer ) I am trying to have my houremployee function to b...
[1 reply] : You pass by reference by adding &. That'll mean your function will hav... (by TarikNeaj)
Learn C++ better or Learn Java
 
Hello, First I should say a little about myself. I’ve been programming in Python, PHP, C# and Objective C for iOS apps for a few years now and recently I st...
[10 replies] Last: First I should say a little about myself. I’ve been programming in ... (by wizebin)
How can I create an app that asks the users for input?
 
Hello, I'm trying to create an app that does calculations based on the user's input. I would like to record data is through an app that provides a drop down ...
[1 reply] : Depends on the platform you're targeting. I'm assuming you're talking ... (by wizebin)
by c00012
help me to find a bug....
 
Hello Guys, I wrote a code to save id and password and read it using vector and structure as follows: #include <iostream> #include <fstream> #i...
[3 replies] Last: what are you really coding? you are using 2 language at the same time ... (by xenoviaquarta)
Beginner's Challenge - Book Exercise
 
I've finished reading my first C++ Programming TextBook ! The textbook is "C++ Programming From Problem Analysis to Program Design" by D.S. Malik I went back t...
[5 replies] Last: No prob, glad I could help! (by guatemala007)
factorial, e and taylor series e^x
 
I have managed ( I think ) to get factorial and e calculated ok, but when I try and calcuate e^x it is wrong. Using a calculator e^5 is 148.413 but using my cod...
[4 replies] Last: Thanks very much! I now get an accurate series for e^x. As you pointed... (by jamesfarrow)
smart pointers manual
 
smart pointers are nothing if i can do perfect manual deallocation,move semantics, and proper handing over a pointers right? in that case its okay to use naked...
[4 replies] Last: thanks guys okay, i see i have another side of curiousness but this a... (by xenoviaquarta)
Probability Board "toy"
 
Hey guys. i'm a newbie when it comes to c++ , i have an assignment Problem description In this assignment, you are requested to write a program that implement...
[5 replies] Last: #include <stdio.h> #include <stdlib.h> #include <ctime> #include <i... (by peteyde)
cant pass comparison function as argument
 
Hi, I was doing this one exercise where I have to implement a sorting algorithm but the problem is that I cant pass comparison function as argument. I know I co...
[2 replies] Last: ohh, thank you very much man :) (by etrusks)
output pointer to char and output pointer to int
 
when I run the code below, I got the result after the double slash. it seems that when i output a pointer to int, it outputs the address in the pointer, but wh...
[3 replies] Last: @Moschops Thank you so much for replying soon and i can understand the... (by qishuhao)
need to save data
 
Hey...I want to do a project based on a bank with various functions. One of them is to display the accounts in the bank. I need to save the accounts using struc...
[3 replies] Last: Thanks for that. I suspect it may need a bit of fine-tuning. Some of t... (by Chervil)
C++ Windows forms
 
I am getting ready to start making another Windows program and this time I'm going to write it in c++ so that I can sharpen my c++ skills. A while ago I read...
[3 replies] Last: To write a Windows(GUI) program in C++ you have many options: 1. You ... (by Thomas1965)
help with finding bugs
 
program works fine, just would like help with spotting bugs and removing them. also need to find out how to stop the song that plays when alarm goes off. th...
[4 replies] Last: OK, but what I suggest you do is copy out the parts that don't work an... (by closed account 48T7M4Gy)
base operand of '->' has non-pointer type
 
QVector<Test*> test2; test2->test; Why do i keep getting this error? TIA
[2 replies] Last: thanks :) just figured it out (by xenoviaquarta)
by HelmyG
error calling a function from a nested class
 
i have an error calling a function in a class that is inside another class like this class first { //function1 //function2 class second ...
[4 replies] Last: thank you so much cire.. solved by making an object of the inner class... (by HelmyG)
How to code this simple code?
 
I'm not a programmer, I wanna learn how to group w/e running programs I want in win7 taskbar. Anyone know how to do this, http://theburningmonk.com/2010/...
[no replies]
How to Link to a Static Library
 
Hello all, To start off, sorry if I am asking the wrong question. Long story short, I want to make a program work on other computers, but when I try to, I a...
[2 replies] Last: Because my main goal is to be able to give the program to my friends s... (by MoonFrost)
Wrong Input
 
What's going on guys. I have this issue will my output. I'm a little confused why the output isn't what I'm expecting. Bear with me it's a bit of code. My ...
[5 replies] Last: Ok I'll rewrite it. Excellent. It is only a couple of lines. So you ... (by closed account 48T7M4Gy)
December 2015 Pages: 1... 678910... 43
  Archived months: [nov2015] [jan2016]

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