Beginners - February 2014 (Page 44)

by bha
Read integer and print chars
 
I will be splitting line with '/' and read each character or int followed by char and need to print char. Ex: w/s/2d//3s If W, I have to type W. for s ne...
[1 reply] : What is your pseudo code? (by mickey4691)
problem after problem
 
so ive been messing round with c++ for about a year and i know ive got tons to learn and im planning on going to college for software development but as for now...
[4 replies] Last: ok THANK YOU. i got everything working. my only problem now is that i ... (by PR Erkle)
Validate string of letters and number
 
Hey guys, i'm running into trouble attempting to validate an user input string. Basically they put in a variable length string of letters (a-z) and/or number...
[3 replies] Last: #include <iostream> #include <string> #include <cctype> int main() {... (by JLBorges)
Basic Sorting Program
 
Hi! I'm a relatively new to C++, trying to write this program off-by-heart without referring to my books, but I've run into a problem. I want the user to be a...
[2 replies] Last: Yep that worked! Thanks. I originally had as an int array, but the c... (by George951)
Is calling main bad
 
Hi there I was wondering is calling main() bad practice? from other functions and main int main() { main(); } int test() { main(); } and is calling the...
[5 replies] Last: Thanks Peter and Duoas, I am going to just use a loop (by closed account EwCjE3v7)
Quick pointer question
 
Hello pro's, I'm studying pointers and i'm having trouble using a get and set function of an object that is a pointer of a class (think I worded that right), i...
[3 replies] Last: Something else to note: The object std::string is itself not an array,... (by Computergeek01)
Beginner, Confusion, Compilers and IDE's
 
Hello Everyone, I'm brand new to C++, and to these forums. I've been trying to learn C++ using a book (C++ primer) and practicing writing code and trying to c...
[3 replies] Last: > is there a reason that you suggest Dev-C++ over it? I was not sugge... (by JLBorges)
by MC1994
create a dynamic array inside a function
 
Hi, I'm trying to fill an array of structures inside a function, but since I don't know its lenght, I'm wondering if it's possible to use "new" and "delete" in ...
[no replies]
by BrianA
C++ question
 
| R M R| | R M M R| | R M RR| | R R| | RRRRR | | | | MMMM | Hello I have one problem I ne...
[no replies]
Encrypting
 
Ok so I know my assignment isn't very hard, but I'm not sure exactly what to do. This is what the assignment says: Assume the client encodes information in fo...
[7 replies] Last: I repeat what I said earlier so your encriptFunc should contain in th... (by JewelCpp)
How to write a menu as a class
 
Hi, I have the task to make a class "account" with which you can manage one bank account. Already wrote that and I am satisfied with what I have. Now I have t...
[1 reply] : "Extend" generally implies inheritance (actually, java uses the keywor... (by Stewbond)
C++ For loop without braces and braces
 
I am following infinite skill's learning C++ and i have a following code. #include <iostream> using namespace std; int main() { int data1, data2, dat...
[2 replies] Last: Now i thoroughly understand thanks sir you save me for frustration :) (by TheSajidAli)
by moreme
Problem with writting to file
 
Hi Guys, I have a simple problem with the writing to file. This is a simple code that I want to record 10 patients name in a file. so when the program starts, i...
[2 replies] Last: Hi Smac 89, Thanks for your replay. I am a bit confused about the p... (by moreme)
Swap strings around
 
Okay I have made this tic tac toe game and I was wondering if there was a way to swap the strings around without making a third string string plyr1 = "p...
[2 replies] Last: Thanks Peter87 I`m going to try it. Thanks (by closed account EwCjE3v7)
by TX9200
Finding element recursively
 
I am trying to declare a function that find the fist occurence of negative element in double array.I am trying to do it such that the code finds the total numbe...
[4 replies] Last: #include <iostream> class NoNegativeNumber //Just for checking if di... (by iQChange)
Checking a number is a string and converting it.
 
I'm making a basic text adventure and am wondering if this code i've made is the best way to check if a string is an integer and then convert it if is or not if...
[no replies]
String Error
 
Hey Guys, I'm making a installer of some sort that just copies files from one place to another. But, on the last line, the 'string' gets and error that I just ...
[2 replies] Last: The error message is probably because you forgot to use parentheses af... (by Peter87)
command help for sin function
 
Can anyone please tell me the command line for compiling a simple program with a sin function in it ? eg normally for programs I use ..... c++ filename.cpp -o...
[1 reply] : http://courses.cs.washington.edu/courses/cse373/99au/unix/g++.html htt... (by Catfish666)
How to insert a line between two lines in a file?
 
Hi everyone, I am currently writing a program that replaces, deletes and inserts lines into a file. The program outputs line by line to the user and they can...
[2 replies] Last: I actually solved it, this is what I came up with. I used a temp file ... (by Merriak)
LinkedList Search
 
I'm doing an assignment that requires various actions to be done on a linked list. AppendNode, InsertNode, DeleteNode, displayList, and a search list function. ...
[2 replies] Last: Hello Ne555, thank you for your response. At this point I know where ... (by unsensible)
February 2014 Pages: 1... 4243444546... 60
  Archived months: [jan2014] [mar2014]

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