Beginners (Page 20)

Why s=-1.#IND ? #include <iostream> #include <math.h> using namespace std; float fact(int k)...
[1 reply] : I presume you meant / fact(2*i+1) and not * fact(2*i+1) if you wa... (by lastchance)
String Array into Function
I'm trying to call a const string array into a function but I keep getting an error, I can't seem to...
[1 reply] : Do you know that a std::string instance is not an array? Your print f... (by jlb)
program for division digit on digit by school algorithm
Write your question here. hello. i trying to write a program that dividing one digit to another by ...
[1 reply] : Hello tohamoa, I ran across your program a couple of days ago and the... (by Handy Andy)
by AL88
why am I getting "no matching function call to constructor vector2d.h"
Why am I getting thie following error when trying to compile this game engine code, the previous exa...
[1 reply] : Your SDLGameObject defines the following member variables: Vector... (by Ganado)
Deleting all occurances of a number in an array
Hey, so I have to delete all occurrences of a number in an array, without using vectors, strings or ...
[5 replies] Last: The code simply moves two indices forward - nextRead goes through each... (by lastchance)
by Bopaki
Asking for help with binaryTreeType
The code for the binaryTreeType is very long but follows next Here is my main function: usin...
[6 replies] Last: The biggest mistake that beginners make is that when they hit a wall, ... (by dhayden)
I want to print output like this using loops only Enter the number of rows: 5 5 4 3 2 1 0 4 5 4 3...
[4 replies] Last: we occasionally run into something what a c-string is just easier to d... (by jonnin)
by Hay9
Desctructor declaration problem
Sorry for bothering, but I have a problem which I do not get. I compiled a header file for a class ...
[3 replies] Last: dtor is for the class at hand, in this case, account. you rarely need... (by jonnin)
Write a Value Returning Filter Type Function
I guess my main problem is that I do not know how to begin assembling this program with the counter ...
[7 replies] Last: @jonnin, I had "forgotten" about std::replace_if . Combine it with a... (by Furry Guy)
by vysero
When to create function in .cpp file
When do I need to actually write my function in a .cpp file and when can I get away with doing every...
[3 replies] Last: @Genado Ah I see, I was j/w, am new to C++ and noticed this project I ... (by vysero)
by Zii
Why is loop not ending when value reaches 0?
I'm making a quick game where a player can select a move to attack an enemy, and depending on who's ...
[2 replies] Last: https://pa... (by Zii)
by phil4
Creating a function with For loop for highest and lowest number
Hello, I'm new to C++ and programming and I must create the following program: it must be able to t...
[5 replies] Last: On line 59 you seek to calculate worst grade with the data you have pr... (by lastchance)
by marieb
homework problem HELP!
Hi, I have been struggling with this certain homework problem and any help/advice would be greatly a...
[2 replies] Last: Just create a main that asks for all the information, then pass the 3 ... (by jjordan33)
C Programming - Bitwise Operations
Hello, I am trying to write a C program that uses a function setbits(x,p,n,y) that returns x with th...
[1 reply] : Extra tricky code makes extra tricky errors. Break it down. You need ... (by Duthomhas)
Question regarding sizing a very basic stack.
Hi, so I have(hopefully), an extremely basic stack implementation. As far as functionality goes, it'...
[2 replies] Last: Understood. So sizing happens automatically with push and pop. Thank... (by jjordan33)
Is map the library for Binary Search Trees?
Hi, I'm just polishing up a few notes for an exam, and I have it written that the library needed for...
[8 replies] Last: No worries! Good luck on your exam. (by mbozzi)
Modifying and converting a txt file to a csv file.
I need help in modifying and converting a txt file that is written with the vertical bar ("|"). The ...
[7 replies] Last: I just wrote some code for this and there are some wicked special case... (by dhayden)
Declaring and using a function within a function
Hey everyone I am trying to declare a recursive function within a function to use it to my purposes...
[4 replies] Last: @jonnin I understand Thank you (by Jack Van Stone)
Get number in string in C++
Hello, I enter 30 and I expected output be 0 15 but I have 240 255. I think program multiple asci ...
[4 replies] Last: All mainstream modern systems encode chars using ASCII. -- well, act... (by jonnin)
Write a program to analyze different student data using structures
Here are my assignment instructions Write a program to read 20 student names and test score fr...
[2 replies] Last: Remove function highest(). You don't call it and it does the same thin... (by dhayden)
Pages: 1... 1819202122... 25
  Archived months: [oct2019]

Cannot post in this page. To post a new message, go to the first page.