Beginners - January 2016 (Page 9)

by Timbi
[C++] Vectors, structs and strings
 
Hey I want to know if it's safe to use string and vector, which are in vector of structs: struct Board { bool bProtected; string sName; vector <BYTE> vD...
[2 replies] Last: Thanks. It's cool because it's faster ( no more loop through all arra... (by Timbi)
Need some help regarding some very elementary code.
 
Hey, everyone! I'm taking a beginner's C++ course and am having trouble with my first assignment. I read the textbook and worked on practice programs but I get ...
[11 replies] Last: See member function precision() . That is indeed iostream, but... (by jgg2002)
Want to see name of the application instead of the path
 
I have created a win32 cosole application in C++ using Visual Studio 2015 and it ran correctly. But I see the path of the file on the uppermost part of the appl...
[1 reply] : See https://msdn.microsoft.com/en-us/library/windows/desktop/ms686050(... (by S G H)
Can't get my menu working
 
Hey I'm just doing my assignment for my intro to C++ class and decided to go for the extra credit question and tried to do a menu to run our programs. Though I...
[3 replies] Last: [code firstline=46] case Task_1: int task1(); bre... (by Chervil)
Stuck at problem in C++.
 
I am learning C++ from book "Problem Solving With C++ by Walter Savitch" and I am stucked at a problem given in practice exercise, this exercise has only proble...
[2 replies] Last: Thanks (by ZahoorKhan)
by Atton
String Division Question
 
How would one best tell how many times a string could be divided into blocks. Like say how many times a string 128 can be divided into 32 parts, I've made an at...
[2 replies] Last: Thank you (by Atton)
avl-tree
 
When i delete key,program doesn't balance avl-tree.But if i will insert key, it will balance.Please,help me. struct avl_node { int data; struct avl_no...
[no replies]
Overloaded forum in hailstone sequence
 
Hey all -- have the following question from a problem set: The hailstone function must be recursive. A hailstone sequence starts with a given integer. If...
[3 replies] Last: D'oh! It's been a long day. Definitely thought I was doing something w... (by ramanxcoke)
overloaded function.????
 
a little help here. the error says there's an overloaded function but not sure what it means. #include <iostream> #include <string> using namespace ...
[2 replies] Last: Hi, What was the error exactly? You should always post errors direc... (by TheIdeasMan)
Code that crashes
 
> could I bother you to write for me some short C++ code that crashes? > I am just learning to use gdb and I don't have any code that would be appropriate to le...
[no replies]
helppp
 
how do you write a code regarding the push/pop data array display except the function undeletes the elements of an array, meaning the most recently removed valu...
[4 replies] Last: Just create a variable called like lastSaver or whatever, and let this... (by TarikNeaj)
switch case question
 
Hi, I am fairly new with c++ and I would really appreciate any help right now. So my question goes like this, can switch case function ask/run the statement aga...
[4 replies] Last: Alright, thanks for the tips guys. Appreciate it. (by Bajista19)
Help with cin / input
 
I am writing a program that loops until the user enters in anything other than a 'Y' or 'y' but even after inputting a 'y' the loop breaks instead of continuing...
[1 reply] : This condition is always true: if (input != 'Y' || input != 'y') Wh... (by Chervil)
Please help - beginner vector problem
 
Hi everyone, I'm going through the Programming Principles and Practice book to teach myself c++ and while doing one of the drills I came across a slight prob...
[12 replies] Last: Note that the first number should be both the smallest and largest num... (by cire)
by Arquon
How to use new array outside its function ?
 
Hello, how do I use variables "Number" and "Price" in another function after setting them from normal variable to array with "new" ? And why cant I display new ...
[7 replies] Last: Ok, thank you Thomas and Chervil for your help ! (by Arquon)
Invalid User Defined Conversion
 
Hey All. Working through a course on MIT OCW and starting the 2nd assignment (Assignment1) located here: http://ocw.mit.edu/courses/electrical-engineering-and-c...
[5 replies] Last: Ahh thank you very much. I wasn't using Visual Studio, so I didn't eve... (by HungryX2Hippo)
-Wall warning
 
I just started using -Wall to give me warnings. The following code compiles fine without -Wall but the warning I am getting is: fileprint.c:7:2: warning: sugge...
[12 replies] Last: This was very helpful. Thank you both TheIdeasMan and JLBorges. (by cpq2g1zw2)
C++ Advanced-Any guru to code this
 
Create a class named CBank. Separate the class interface from the implementation of the CBank class. Put the class definition in a file named CBank.h and the c...
[1 reply] : What is the question ? I think you should read this first. http://www.... (by Thomas1965)
Linked list
 
I am still new to linked list, how to implement the linked list after i struct node{int items;node* next;};
[16 replies] Last: Linked list in c is not suitable for me (by mike9407)
Timetible in C++ code
 
Please help me with this project... I have to structure a school timetable in C++ code. The user has to put the day and the time and the program has to say whe...
[2 replies] Last: I good way to get started is just to chip away at what you know you'll... (by dhayden)
January 2016 Pages: 1... 7891011... 29
  Archived months: [dec2015] [feb2016]

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