Beginners - January 2016 (Page 10)

Reason for this behavior of printf()
 
Hi guys, This is my first post here at Cplusplus forums.So if this question is in the wrong section please move it there. So, I was stuck in a question when...
[4 replies] Last: The behavior is, as the others have pointed out, undefined. But by loo... (by Shadowwolf)
text editor
 
i need a c++ project fr text editor can sumone help
[13 replies] Last: #include<stdio.h> #include<conio.h> #include<process.h> using namespac... (by iqra201)
Still Need help splitting a Single .cpp into a header, implantation, and main file
 
I wrote this code and while it works just fine and all. However I am not quite sure how to properly separate it into a main.cpp, a header.h, and implantation.cp...
[11 replies] Last: It's a good idea to limit the scope of a variable as much as possible... (by Chervil)
Turbo C++ linker error issues
 
So, I am trying to run my 6300 line program on a Turbo C++ 4.0 64-bit for Windows 7, and whenever I compile it, it shows _TEXT Segment Exceeds 64K. What I di...
[no replies]
output problem in c++
 
My first program won't run. it says" fatal error: iostream: No such file or directory". Can someone help? Thanks in advance. Raghav #include <iostream> ...
[2 replies] Last: It works, try here http://www.tutorialspoint.com/compile_cpp11_online... (by SamuelAdams)
Half of the Christmas tree
 
Hello guys! I'm really struggling how to get a half of a christmas tree, like if you'd cut a tree in a half then print out only the left side. I've manage...
[3 replies] Last: #include <iostream> int main() { int i=0, j=0; for(int i=... (by Umme)
Proper use of cin.ignore() to clear user input.
 
Hello All, I've learned a great deal of information over the past few weeks as I've looked around. I was looking at how to handle an error condition when a us...
[4 replies] Last: I think I have found a workable solution while doing some research on ... (by fiberglasscivic)
How can i have 2 diffrent Functions in one program with void?
 
I want to print perimetros(4*p) and embadon(p*p). I think that my problem is at the cout. Can anyone help me please ? #include <cmath> #include <cstdio...
[3 replies] Last: It is useful when designing functions to have functions which do one t... (by cire)
by Gector
Serial port
 
Hi, I can't make anything out of the Microsoft Developer Network thing, could someone give me an example on how to use this page? https://msdn.microsoft.com/en-...
[2 replies] Last: Well I put something together but it doesn't work. Error: Error 2 ... (by Gector)
Please help me with a partial working code
 
Question: Cindy uses the services of a brokerage firm to buy and sell stocks. The firm charges 1.5% service charges on the total amount for each transaction, ...
[9 replies] Last: Thank You so much! I realized that I was to complex in my equation and... (by alexexcl)
Using user input as part of the program
 
Hi, is there a way to use user input as part of the program? Let's say the user inputs a function in the form of y = f(x) and then the program draws the graph f...
[2 replies] Last: Not sure I understand what you mean. (by DDomjosa)
Wrong in the cout(functions)
 
I can't find the wrong in this code i think i have a small problem at the cout but i don't know how to solve my problem . Can anyone help me and tell me why thi...
[2 replies] Last: thank you very much tarikNeaj and DrZoudberg (by Antria4)
Help I'm trying to learn sorting array
 
why does it say that array type ' ' is not assignable and also it says expression did not evaluate to constant all in line 8 #include<iostream> #include<s...
[2 replies] Last: Can you please explain more about it? (by Rysha23)
How to get an Iterator to the end of Capacity.
 
Hi! Suppose I reserve(X) for a std::vector. Is there a natural way to get an Iterator pointing to the end of its capacity? So that e.g. I can fill up all the e...
[4 replies] Last: #include <algorithm> #include <iterator> #include <iostream> #include... (by cire)
Variable grab
 
I have an array with a numerical value in it, "311818152", I am trying to write a method that will cycle through the array and put the values of the first 2 cel...
[17 replies] Last: maybe define the function something like this: void variableGrab(int ... (by Chervil)
Tic Tac Toe problem
 
This is a Tic Tac Toe game that I am trying to make for my spare time but there are a few errors in it that I don't know how to fix. Can anyone help me? #...
[3 replies] Last: I did realize some of those problems too. I'm just starting out with c... (by RogueHunter1913)
Search and read columns in text file
 
Hi all, I am new to C++ and I have to create a program for my school project. The program should be able to search an ID from a text file and then display the n...
[7 replies] Last: I want the program to end after it displays the information One of t... (by Chervil)
Weird template syntax
 
Hi, this is the first time I see something like this. I had this definition of class and I had to finish it template<class T> class Ptr { T* ptr; T*...
[2 replies] Last: Cool, tnx you very much! The class is supposed to keep track on what e... (by etrusks)
by Kjorin
Questions about commenting and why won't this program exit?
 
I wanted to post my latest program in its entirety to get feedback on my comments but code must contribute to the post character limit. Instead, I want to ask w...
[5 replies] Last: I appreciate the advice and will bear it in mind. As for using an arra... (by Kjorin)
by zoda
How to get if else statements to work.
 
The code is good up until I get to the 'if' part. When I run the code, lets say I enter the numbers: 90, 80 and 70. It will read The average is 80 The lette...
[2 replies] Last: if (avg < 90 || avg > 100) If avg is 80, then it is less than ... (by MikeyBoy)
January 2016 Pages: 1... 89101112... 29
  Archived months: [dec2015] [feb2016]

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