Beginners - March 2014 (Page 23)

Problem with string input to a structure array
 
I wrote this program to help me create a list of medical resources and their attributes, a task I have been performing repeatedly lately. I'm still fairly new t...
[4 replies] Last: Alternately, use std::vector or std::deque . This allows for the si... (by TwilightSpectre)
Printing each digit of an integer
 
Task: 1. In main() funtion, ask user to enter some positive number. If number is not positive, terminate the program. 2. Otherwise you call a seperate function...
[9 replies] Last: Thanks to everyone for replying, especially Yanson! I now understand w... (by mikey108)
Program is keep crashing
 
Okay I got the right result, but my program is keep crashing. I think it has something to do with the way I declare "val", and the program will crash as soon as...
[2 replies] Last: thank you thank you you are a life savior. (by xiaokoong)
Dont know how to extract the data from file using class constructors
 
The txt File is like this ABC0001 deposit 200 ABC0001 deposit 50 ABC0002 deposit 300 ABC0003 deposit 150 ABC0001 deposit 100 ABC0002 withdraw 200 ABC000...
[1 reply] : #include <string> #include <vector> #include <fstream> struct transa... (by JLBorges)
Changing upper to lower case and vice versa for a string?
 
ex: "My Name Is John" should be "mY nAME iS jOHN" i have a really long code that has other stuff but i'll put it anyway #include <iostream> #include <...
[5 replies] Last: Thank you very much giblit, I really appreciate your help so much (by gotsleep)
word game /Project
 
I have no idea how to even start this. please help The Game _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ b _ _ _ _ _ _ q u _ _ _ w o r d _ _ It is played with t...
[1 reply] : You asked for a start so: char board ; Now see how far you can get... (by admkrk)
Read and Display any line from a text file using function printFile
 
So I know how to open and display lines from a text file but how do you display one line at a time based on a user-input number? Any suggestions? #include <...
[1 reply] : #include <iostream> #include <fstream> #include <string> // first li... (by JLBorges)
I could use a helping hand
 
Error 4 error C2440: '=' : cannot convert from 'void *' to 'int' I am trying to figure out where I am going wrong here. I am studding at home to see if I ca...
[2 replies] Last: Thanks I see my mistake (by Iworlock)
Best IDE and a good Book
 
Hi, My experience only 1 year of VB and want to learn C++ with aim to eventually make games. I am looking for an up to date IDE which is easy to use and a ...
[3 replies] Last: If it's some weird meta thing, then boost probably has it Whatever i... (by MatthewRock)
by iluv41
Input validation issue
 
I am having a hard time figuring out why this gives me an infinite loop of "Please try again:" no matter what I input. I need it to display the error message on...
[2 replies] Last: Thanks a lot! (by iluv41)
Vector Newbie...
 
So, I'm learning about vectors, and having a whole lot of fun... No, it's a pain. I had a 2D char array and would like to have a vector instead. I'll post the a...
[7 replies] Last: NT3, thank you so much. I kept seeing things like that, and when I wou... (by Perry Turner)
Passing Void?
 
Alright, I'm in an intro course and we have to use the following prototype in a little betting game. bool PlayAgain (void) How would one go about return...
[2 replies] Last: Thank you!! You have just saved me a world of trouble. It worked. I a... (by waldront70)
Segmentation error, how to find out the cause
 
Hi, I have a segmentation error when I run my programme. In order to find out where this comes from, I added lines like cout<<"still"; to see until what...
[5 replies] Last: Thanks! I'll try it next time. (by babyBunny)
Need help with a nested if else statement
 
I've been trying to get this to work for hours, and I can't seem to figure out how to make this run successfully. It compiles and runs yet does not follow the l...
[3 replies] Last: And you don't need to indent after each if statement. You are not usin... (by heyyouyesyouiloveyou)
How to do two things simultaneously
 
Hello, i have following code and i wanna ask for a right code again but i need the countdown running simultaneously (like somebody is trying figure the code out...
[1 reply] : Please put your code in cod tags so it is easier to read. You could us... (by Jamerack)
Associativity exercise
 
Our program that distinguished between high pass, pass and fail depended on the fact the conditional operaotr is right associative. Describe how that operator ...
[2 replies] Last: I don't get the question either, but here's my guess. finalgrade = (... (by Bourgond Aries)
logical and relational operators
 
Is this right? i != j < k // these are int values would this compare k with the bool returned i != j
[8 replies] Last: Oh wow I was. I just tried it the way this thread is about and it work... (by AceDawg45)
Problem with program execution
 
My code gets compiled with no errors. But while running the program it is not responding. I tried several times buts its not working. Pls Help
[4 replies] Last: http://sharetext.org/ Post here (by closed account EwCjE3v7)
by jb1200
Minimum number
 
fsdff
[1 reply] : 1. What is the purpose of && (num !=1) ? 2. What is the initial valu... (by keskiverto)
Exercise problem
 
I have the following exercise: Write a program to use a conditional operator to find the elements in a vector<int> that have odd values and double the values ...
[5 replies] Last: Thanks guys (by closed account EwCjE3v7)
March 2014 Pages: 1... 2122232425... 79
  Archived months: [feb2014] [apr2014]

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