Beginners - January 2014 (Page 27)

From advanced php to c++
 
Hello, I'm currently an advanced php developer and Recently I started learning a bit of c++ not using it yet just reading about it. c++ seems like a way more...
[1 reply] : I actually started with C++ and then tried to learn Java - the biggest... (by LB)
Tokens (get_token error)
 
I'm on chapter 6.34 of "Programming: Principles and Practice Using C++" by Bjarne. Anyways, i'm learning about tokens and how to use them. It's all confusing,...
[1 reply] : At line 17, the function is declared, but is never defined anywhere (t... (by closed account 3hM2Nwbp)
Reading individual words from text file
 
Hello, I am struggling with finding the best way to read individual words in a text file. I can use getline to extract whole lines, but I need to pull out...
[19 replies] Last: I suppose I'm still learning the use of iterators, as vectors are fair... (by CplusplusAcolyte)
Question about input and output
 
I have an assignment problem to solve. I need to write a C++ program which takes a text file as input and produces another text file as output. The problem says...
[2 replies] Last: The problem says that I cannot store the input file or output file in... (by yulingo)
Reading 2nd line and selecting particular letters(txt file)!!
 
My text file contains two lines:- Tableno:1 s1,t2 Question:- How to read only the 2nd line "s1,t2". And in that i want only the letters (s and t) to ...
[6 replies] Last: I'm glad I was helpful! Please mark this as solved so that it might h... (by kooth)
Small question :)
 
hey guys, i'm kinda noob in programming stuff and have a little question, if anyone can help that be awesome; So, i'm working on a GUI program, and i wanna ...
[2 replies] Last: Hmm, interesting. If you know how to grab the input from the text box ... (by MaxterTheTurtle)
scope errors
 
Hi guys I am writing a new Tic Tac Toe game. I have created a function called computer_move. It suppose to do as the name says find a move for the computer. It ...
[4 replies] Last: You could always self debug by adding print outs. First thing i'd do ... (by closed account j3Rz8vqX)
by iluv41
My program seems correct, but is miscalculating simple arithmetic by exactly 1
 
I do not get any errors, but the grade calculated is 1 more than it should be. For example, if p1score=95 p2score=87 p3score=86 p4score=75 p5score=83 p6sco...
[1 reply] : On line 57 you mention exam1score twice. (by Peter87)
insert character into char array (without using pointer)
 
i've to add character into char array please help me out to solve this program it won,t work :( please someone help me please example: Enter the string : I won...
[4 replies] Last: @long double main Thank you soooo much :) (by closed account EwCiz8AR)
Errors in Resistor Code
 
I am getting errors that for the life of me I cannot figure out. Error 1 error C1014: too many include files : depth = 1024 \\acad.dvuadmin.net\sce\homedir\d01...
[2 replies] Last: I cut and pasted the program back in and now I am getting undeclared i... (by TenToesUp)
BMI program
 
Hi guys I am obviously new to this all and so I decided to make my first usable program implementing my knowledge on classes/objects and constructors together. ...
[12 replies] Last: any function you want to use in that same class has to be *called* wi... (by coder777)
Compilation errors in program where objects are used as function arguments
 
Hi, I am trying to write a C++ program where objects are used as function arguments. I am getting some compilation error for the objects that I have created...
[7 replies] Last: When I said "using namespaces", I meant in the normal English meaning ... (by MikeyBoy)
Deleting characters from a string so it stays the largest string possible
 
I have this problem I've been trying to solve today... It may sound stupid but I can't get around it. A string of characters (non-capitals only, no spaces) ...
[2 replies] Last: Thanks, it's definitely easier to get the way you put it. I have to le... (by bgdanghe)
Problem after running the program
 
Hi im fairly new to C++ programming and need help with this program i just wrote for practice #include <iostream> #include <string> using namespace std; str...
[5 replies] Last: Actually ne555 is right, haha. But if it worked for you, I'm glad. M... (by closed account j3Rz8vqX)
Need some help implementing an array and using it in a function
 
I am trying to program a basic electronics calculator for a programming class and I keep getting errors for my array and function. I have gone through the forum...
[1 reply] : Next time embedded your source code in the source code bracket. Other... (by closed account j3Rz8vqX)
hamurabi Loop
 
I had the code and then accidentally copied over my projects, so have had to start again, and I forgot how I got it to loop. This code will loop when it is all ...
[3 replies] Last: Change your while() condition to while (year <=9 && population > 0) {}... (by closed account NyqLy60M)
reading value from a file, altering value and updating file
 
Hi I am working on a simple wages application. I have a menu with 4 options and a text file called "shop-account" that simply contains the value 100. For option...
[1 reply] : Put curly braces around lines 5-7 so the file doesn't stay open the wh... (by LB)
Bool
 
Can someone please explain bool and bool functions. I can only use if/else/switch statements but i'm seeing bool this/that in my tutorial and i don't get it. ...
[9 replies] Last: This thread was split: http://www.cplusplus.com/forum/beginner/121593/ (by LB)
Sqrt(n), give the best, average, worst case runtimes, then big-O runtime
 
Ok, I need to figure out the best case, average case, worst case runtimes then give the big O runtime. I understand that best case would be if someone entered ...
[2 replies] Last: Simple explanation of Big-O, plus links to understand better http://ww... (by Duthomhas)
by jwilt
need help extending length of numbers
 
when I use the pow function with my double variables I get a list of numbers followed by "e+" followed by more numbers. I have tried using a long double and I g...
[1 reply] : See fixed http://www.cplusplus.com/reference/ios/ And see setpreci... (by Duthomhas)
January 2014 Pages: 1... 2526272829... 44
  Archived months: [dec2013] [feb2014]

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