Beginners - January 2016 (Page 8)

define equation
 
Write your question here. I'm trying to define two equations(x,y) in c++, the two equations describe how the particle diffuse in magnetic filed I did not get an...
[17 replies] Last: For if all, the angle x should be a double. Angles in the math library... (by dhayden)
sorting string members in an array of struct
 
i am having trouble with the sortName function as it is not sorting the strings.I am weak on string sorting, havent done much work with it. Not sure what i am d...
[3 replies] Last: Because we have so many functions that are wanting to use the Struct.... (by cire)
Help I'm stuck!
 
Hi I'm new to C++, and I'm having an issue with this code where I need to enter information on each of the lines; however for some reason I can only enter infor...
[7 replies] Last: I'm obtaining my bachelors in comp sci and none of my professors hav... (by Moschops)
String input
 
Is there anyway you could use a string which the user gives, and use that string to determine what function executes? So like a simple menu would usually use...
[9 replies] Last: Is there a lower and upper function for strings? One can loop thro... (by TheIdeasMan)
by Zarman
Question about numbers and strings
 
So as you guys may or may not know, there's a Project Euler task that has you find the largest palindrome of 2 three digit numbers multiplied by each other. Are...
[5 replies] Last: What is a (2) + a (3)?? I've never seen this syntax in c++ are you try... (by alex067)
by m0bb1n
Repeat section of code after IF statement
 
Hello, I was wondering is there anyway for my code to repeat a certain process again without writing it over again. Here is the part that I want to repeat. ...
[7 replies] Last: [quote=Zarman]There are no differences, but the string object is bette... (by TheIdeasMan)
by Arquon
Why cant I continue extracting values after first loop ?
 
Hello, I have to use "Data" function multiple times, but after first time using it, I cant extract any more values. Does it have something to do with it reopeni...
[17 replies] Last: [quote=Arquon ]I need to prototype it only if I want to do it below ma... (by TheIdeasMan)
Printing text on winapi gui application
 
Hello everyone, I've decided to move onto GUI applications, and would like to know how to print some simple white text in the center of the screen (Hello World ...
[4 replies] Last: True, but that's for a simple message box, I wanted to give an real wi... (by FluorescentGreen5)
Pointers, when to use syntax
 
Can someone explain to me please when you can use -> or . operator to dereference a pointer? For example, if you have NodeType *ptr = new NodeType then pt...
[3 replies] Last: I'll just say it simply. as you know, *ptr is the value, and ptr is th... (by Zarman)
Looping and Unused Variable 'ch'
 
Hello Guys: In this program I'm asking the user to input a word at least 5 characters, then a single character to show how many times it repeats in the world...
[2 replies] Last: #include <iostream> using namespace std; int main(){ char word; cha... (by Zarman)
Do while menu
 
I'm trying to create a basic menu but I am having trouble where if the user inputs Q, it will terminate the program and execute like a statement saying "Termina...
[9 replies] Last: One thing though, the link you provided me to show a menu, wow it is ... (by TheIdeasMan)
2D array as parameter
 
Hi, I've been trying to solve this, but i just can't seem to figure it out. Been searching all over the web. How come this code works fine, if i put 4 int...
[3 replies] Last: Oh, and make the parameters to your function const as well, it's a p... (by TheIdeasMan)
dynamic arrays?
 
Hello all I have a question regarding arrays. Do you have to define their size during development, or can you dynamically allocate them? I've came across...
[10 replies] Last: See http://www.cplusplus.com/forum/beginner/182513/#msg894223 (by JLBorges)
char * or string
 
Hi Excuse what may be some pretty simple or dumb questions over the next few weeks from me. My mentor at work has a history in embedded C and hasn't ever rea...
[1 reply] : Favour std::string over dynamically allocated C-style strings C-st... (by JLBorges)
Basic Store
 
Hello! I'm a beginner, and i'm starting to get the grasp of a lot of aspects. I'm trying to make a basic store. You have $20. This $20 is changeable, meaning yo...
[3 replies] Last: For starting out, don't use global variables unless your program is ne... (by Mort88)
Sorting a string array based off of the indexes of a sorted int array?
 
Hi, I'm working with dynamic arrays and I'm trying to sort a string array based off of the indexes of an int array that has been sorted in descending order. I'm...
[6 replies] Last: Thank you so much cire! That is what I needed! You got it to work for ... (by exelbeast)
please help me wirte this program
 
HI ALL! i actily wrote a program and i faced a problem right now what i need is that a program that copy a file with address below: C:\Windows\System32\te...
[no replies]
by noodel
total beginner with while
 
Hey, can you help me with this? I know I should add more variables but I still dont know where. You are given a number and you have to find the sum of the numbe...
[4 replies] Last: It's not that complicated actually. #include <iostream> using name... (by Zarman)
HELP ME!!!!
 
#include <iostream> #include <iomanip> using namespace std; const int SIZE = 5; string getName (string message); int getValue (string message); double get...
[1 reply] : Please update your post and use code tags - http://www.cplusplus.com/a... (by TarikNeaj)
Repeating text if statement?
 
Hello, I am trying to create a program that will rate certain values with a specific number. However, there are about 200 different items that need to be rat...
[5 replies] Last: double quotes ("hello world") are for strings, and single quotes ('a'... (by thecrazygerman)
January 2016 Pages: 1... 678910... 29
  Archived months: [dec2015] [feb2016]

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