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

Passing MPI parameters via cmake
 
Hello, I need to pass the following parameters to gcc : -L/software/openmpi/1.8.4_gcc/lib -lmpi_usempi -lmpi_mpifh -lmpi When I build code now, linker does n...
[2 replies] Last: My experience with cmake is limited. maybe something like this if (... (by Yanson)
what is pnPtr?
 
I'm still getting used to pointers. It seems like the more I study them the more confused I get : ) Anyway, code below: for (int *pnPtr = myStringArray; pnPt...
[2 replies] Last: cout << pnPtr prints the address of the value the pointer points to wh... (by naraku9333)
by Szei
Program output different on my computer
 
My code works on the web compiler for my homework submission website. In other words, I will get full credit for my assignment. However, on my own computer (Win...
[5 replies] Last: It's printing the title, you just aren't seeing it. The problem is li... (by dhayden)
C++ Loaded question.. Generating Transcript - Need help!
 
Hello everybody, this is my first post here; I've gotten a lot of useful information from browsing this website for my C++ intro class at University,so thanks ...
[1 reply] : I only require $100 / hour and in this case payment in advance would b... (by SamuelAdams)
Create two dimensional array from file
 
Given a file of n lines with n characters per line how do I create a two dimensional array from it?
[13 replies] Last: my bad, the file was empty (by clarkkent)
My c++ program error
 
Can someone please help me fix my c++ program? #include "stdafx.h" #include <iostream> #include <string> #include <iomanip> #include <cmath> #include <c...
[4 replies] Last: [quote=popa6200]First, all your class functions/definitions should be ... (by cire)
State guessing game, using classes
 
http://faculty.tcc.edu/PGordy/EGR125/N125P4D.pdf thats the link to the project im currently working on, Im really overwhelmed by it. I dont fully undertsand ...
[no replies]
Code builds successfully, but then won't run
 
I'm new to this so go easy on me. I typed up some code and I checked to make sure all my loops were closed. Every time I go to build the solution, it says it's ...
[2 replies] Last: Okay, so I changed that and it worked. However, I need it to switch ch... (by zndamiano)
binary tree delete one node
 
I have made a binary tree code in class and i wanted to delete one element from the tree I have but when i try to, it deletes all the elements with the same in...
[1 reply] : https://en.wikipedia.org/wiki/Binary_search_tree Skip for deletion. (by cire)
Parsing
 
Hi, I looked a bit into the C reference https://msdn.microsoft.com/en-us/library/e5ace6tf.aspx What confuses me at the moment is the syntax of declarations:...
[no replies]
code review
 
I've just discovered codeforces.com and stared writing solutions to the problem sets, as I am not too good at writing something other than c++ books examples. ...
[12 replies] Last: I know it's the same, just quick search at stackoverflow showed a thre... (by TheHardew)
Need help with a program that shows hard-disk informations
 
I have a school project that requires to do a c++ program that shows the informations on the hard-disk. Informations like: the number of partitions and their na...
[3 replies] Last: Why are you being asked to do this? (It doesn't have very much to do w... (by JLBorges)
by DKAL17
..,jijljl
 
.......
[3 replies] Last: . (by closed account 48T7M4Gy)
Need help with vector subscript out of range
 
Pic: http://tinypic.com/r/f1k5si/9 The error occurs when i set the breakpoint at the "{". however there is no error when i set it at "satisfiedOrders()". ad...
[1 reply] : The code to read from the file looks a bit fragile. A sample of the in... (by Chervil)
by DKAL17
.
 
...
[2 replies] Last: I need help programming the matches for the 5 weeks now that the user ... (by DKAL17)
how to do a fund transfer at transaction function?
 
Here the code,~ #include<stdio.h> #include<stdlib.h> #include<string.h> #include<time.h> #include<windows.h> typedef struct { int date, month, year,...
[2 replies] Last: A transfer is quite simple. Let's say you want to transfer 100 RM from... (by Thomas1965)
Why wont the esc key work?
 
Hi all, i cant get the escape button to work on option 3 of code. can anyone help? Here is the code. #include <iostream> #include <conio.h> #includ...
[no replies]
Adding a member function to iostream?
 
Hello, I'm trying to write a function that will clear and ignore cin data with a single call. Is it possible to use cin.(insert function name) with the follow...
[4 replies] Last: > I knew that i'd need a template to do this If the functionality is ... (by JLBorges)
could anyone clear the errors in this code?
 
I haven't finished the code completely yet. But as far as the code is done, can anyone clear the errors in this?? please do clear them as soon as possible. Th...
[5 replies] Last: Well, Thank u! my program is working! (by lebron sharma)
by mkb555
Linked List copy constructor
 
I've always been bad with copy constructors with linked lists, and I need help with this one. Each node has m_data (the value contained in the node) and m_next ...
[2 replies] Last: Thanks so much! Was able to fix it thanks to that. I keep expecting po... (by mkb555)
December 2015 Pages: 1... 1617181920... 22
  Archived months: [nov2015] [jan2016]

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