General C++ Programming - October 2014 (Page 27)

by sebz92
copy doubly linked list
 
so i have a doubly linked list and i want to copy it. how do i do that?? struct node{ stri...
[no replies]
Delete function not working
 
Hello, I am having issues making my delete function work. My program does compile but my delete func...
[2 replies] Last: note #include <conio.h> errors on cpp.sh. site doesn't have the libr... (by closed account 1CfG1hU5)
why can't I use getline(cin, argument) with fprintf("%s", argument)??
 
Instead of coming out as the character string I entered. It's outputting random European letters and...
[5 replies] Last: Hi, you can't use fprintf(fp, "%s", str) to output a string object d... (by comradejonathan)
Friend functions - variable out of scope
 
I'm trying out friend functions not in just one source file to see how it works but I'm getting an e...
[3 replies] Last: It depends on how you want to go about it. Because they both depend on... (by Ispil)
User Input in italics
 
Hello! I am a beginner in C++.The program I want to create is as follows. The program will take ...
[6 replies] Last: You code should work. What else to resolve? (by liuyang)
reading from stdin
 
Hi I want to read a string of unknown length from stdin. I tried to follow the approach from this...
[5 replies] Last: ...The policeman pointed out that the sign indicated they were drivin... (by Duthomhas)
how to FIELDS OF WIDTH and format decimal place
 
#include <iostream> #include <iomanip> using namespace std; int main() { float f,c; cout<< "Fa...
[no replies]
Dynamically Allocated Arrays with Structs
 
I am trying to complete this lab assignment by following the instructions provided in the comments. ...
[no replies]
How do I flush scanf buffer in C?
 
Hello! I am writing a program and am asking the user to enter a number between 1-12. If they do ...
[2 replies] Last: The scanf() function will not read anything that does not conform to... (by Duthomhas)
Is there any way to shorten this?
 
I am a beginner C++ programmer. I have just written a program for Tic-Tac-Toe, and this is by far th...
[1 reply] : Your victory condition and turn logic are too long. Simplify them. Ma... (by MiiNiPaa)
How to read a line with Spaces in c++ ?
 
I want to store the address of a customer (with spaces) in a char variable (say cadd). First I tried...
[3 replies] Last: You need to add cin.clear() and cin.ignore() before using another getl... (by rai2412)
SF2 soundfont and volume panning?
 
I'm currently reading information about the generators used in the soundfonts. I've read this: 17 ...
[no replies]
Is it possalbe to check all files
 
Alright so i already have a program that will take a person's name and age , along with their addres...
[3 replies] Last: Enumerating the files on a system is mostly a function of the OS that ... (by Computergeek01)
Lost Refference ?
 
#include <stdio.h> int *bar(int *p) { return p; } int* foo(int n) { return bar(&n); } int ...
[5 replies] Last: Yes, getting a "nice", repeatable output from undefined behaviour wit... (by JLBorges)
by Ndrewm
Pseudocode Construct
 
Can anyone give me construct a pseudocode for this program want to be able to better understand the ...
[10 replies] Last: Yea your input is fine i just transfer it to my format so please finis... (by Ndrewm)
by AceK
what does this symbol ' ^ ' represent in C++
 
Hi everyone. I recently came across C++ code that use this ^ to declare variables. Please see examp...
[11 replies] Last: Operators (such as ^) can have different meanings in different context... (by coder777)
Increasing variable number in C Files
 
Im having trouble on getting the quantity up of the variable "item.iqty". For example the current qu...
[3 replies] Last: Why? The first read is redundant. I think you should print the value... (by kbw)
by hp16
Singly Linked List - Delete duplicate nodes
 
I don't know why my code is not working. Can someone tell me what I did wrong? It's from line 249 - ...
[1 reply] : That algorithm is pretty confusing. I just don't understand why all t... (by kbw)
[HELP] Programming problem
 
Hello! I have a programming assignment due later in the week and my professor is very cryptic with h...
[5 replies] Last: Simply iterate over the vector, and check the value of each element. ... (by MikeyBoy)
Factors and Prime Numbers
 
I'm trying to write a program that will find all the factors and primes for a range of numbers. I h...
[7 replies] Last: http://www.cplusplus.com/forum/beginner/144496/ (by closed account 48T7M4Gy)
October 2014 Pages: 1... 2526272829... 38
  Archived months: [sep2014] [nov2014]

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