General C++ Programming - October 2015 (Page 18)

Help With Command Line Argument
 
Hi There, I have to write a program which takes "ls" command (that displays the list of files in linux) as a command line argument.. I don't have any idea .. ho...
[1 reply] : Take a look at this: http://pubs.opengroup.org/onlinepubs/007908799/xs... (by kbw)
by InVain
Do while crashing
 
For a homework assignment i have to build a Tic Tac Toe game. The game runs fine until some one has won the game and i try to break out of the while loop. I'v...
[7 replies] Last: [quote=InVain]When I ran it till it crashed in my debugger the only th... (by LB)
by SSnr
Help with Hw
 
So I'm having troubling splitting this code into each file. Main code in one file that works: http://pastebin.com/cy8iirqP My error after attempt on se...
[2 replies] Last: Yeah you were right i was compiling them separately using dev-c++ and ... (by SSnr)
help with LinkList and Pointers
 
hi i need a help in C++ program. Program is already done.. need a few help
[1 reply] : What sort of help do you need. Can you give any more details? (by closed account 48T7M4Gy)
Issues with List ADT, values not inserting
 
I'm working on a list adt that can have variables inserted and removed one at a time, it's controlled by a cursor that can be moved along the list. I'm having ...
[2 replies] Last: Yeah, this is an exercise for class. We're given a header file along ... (by Evilhero)
Trouble with boolean and int functions
 
New to programming. Been searching for help and I'm sure the answer's there but I can't see it because I'm a newbie. Trying to write a program for school. The m...
[4 replies] Last: Hey there, thanks again for your help. Got it figured out, thumbs up t... (by noracam)
(C++) Djikstra's algorithm not getting the correct nodes
 
I'm currently doing a Djikstra's algorithm and im really stuck! It finds the shortest path from a startnode to a endnode. I'm not getting the correct working ou...
[9 replies] Last: Actually, it might be working and i'm just stupid. (by lynzoid)
by bparov
Factors
 
I need help with prompting the user for an integer. Print out the factors of the integer in descending order. A while loop can be used i suppose. Please advis...
[9 replies] Last: int num = 0; Ask user for a number -> store it in num Loop through... (by integralfx)
Date Validation
 
I am looking to tell if the date inputed by the user is valid or not. My dateValidation function does not seem to be doing what I would like it to. I was ho...
[4 replies] Last: enum eMonths {Jan, Feb, Mar, Apr, May, June, July, Aug, Sept, Oct, ... (by integralfx)
Queue and Stacks help
 
#include <iostream> using namespace std; template <class T> class node{ public: T data; node *next; }; template <class T> class queue{ ...
[1 reply] : in line 156 i need help since it keep giving me a repeat of enter y to... (by closed account GybDjE8b)
I can't get this to stop starting over.
 
I need some extra eyes on this. I can't get this code, which plays a game of nim with the user, to stop starting over after letting the computer and user play o...
[1 reply] : Add cout << winner to the end of your loops to make verify they are ... (by SamuelAdams)
Issues with do-while loop and values not updating
 
I am writing a program to simulate a GPS system. I hard-coded in the data so I could debug in Visual Studio. I will actually be running the program in a termina...
[2 replies] Last: I have so many for loops that I wanted to differentiate between them w... (by chanaustin)
strings.cpp
 
I'm a beginner and for homework we were just assigned a lab in which we have to develop and test a lab incorporating myStrLen, myStrCmp, myStrCpy, myStrSwap, my...
[2 replies] Last: Thank you so much! I finished my code up (by harrystyles)
Question about Qt creator
 
Hello. I just want to know how to fix my Qt creator. Every time when I get the error message LNK 2019, the compiler doesn't give me more information about this ...
[2 replies] Last: I just figured out why. The Qt creator is using the visual studio kit ... (by radar114)
by new1
list intersection ..!
 
Hello, i Got stuck in this I have 2 lists list<string>list1,list2 For ex: list1 => abc,def,ghi,klm,zzz. list2 => fff,zzz. i want to mainta...
[4 replies] Last: This is what you're doing traverse(at, a) if( is_member(at, b) ) ... (by ne555)
by tanjo3
Date key in AVL tree.
 
Hi all, I'm trying to figure out how to use the date as a key in an AVL tree. In particular, I have the following: struct date_field { int day; ...
[no replies]
by helios
What is this?
 
I just found this source in the office. I probably copied it from someone's post here to test it. Can anyone figure out what it does? #include <iostream> #...
[7 replies] Last: Just picked random part which is probably written specially for this c... (by MiiNiPaa)
Could someone explain these lines of code?
 
Okay, I have a homework assignment that tutor partially helped me with on certain functions, and I don't fully understand it, but I want to. I find the best way...
[3 replies] Last: Do you remember this line ? using namespace std; well std namespace... (by closed account 28poGNh0)
by IRushR
How can I use matrix strings
 
Hi People! I have a problem with strings. I would like to declare a string as: String text ={"asd", "cdf", "bgh", "qwe"}; From this I...
[5 replies] Last: Thank you! (by IRushR)
explicit output unexpected
 
int i1 = 10; int i2 = 4; float g = (float)i1 / i2; //here you want to tell the division op to do floating division cout<<g<<endl; second block ...
[7 replies] Last: can you permanently change a var type? No. Variable type is set on d... (by MiiNiPaa)
October 2015 Pages: 1... 1617181920... 27
  Archived months: [sep2015] [nov2015]

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