General C++ Programming - November 2013 (Page 21)

SFML Very Confusing
 
1. On the sfml tutorial for using visual studio, it wants you to link all 5 modules (graphics, audio, window, network, ect). There is a picture of what it shoul...
[3 replies] Last: The version I was using was SFML 2.1 for visual C++ 2012 64-bit for wi... (by Galaxy7games)
dynamic arrays and files?
 
Hey Y'all, I am having a bit of trouble. I'm suppose to open a file and then read each data set, allocate an array big enough, and then read the data into the a...
[no replies]
by byakk0
phantom values in 2D array
 
using Win 7 64 bit enterprise, sp1. I'm getting unwanted values assigned to a 2D array. more info: I'm working on a tic tac toe program as a method of ...
[7 replies] Last: Ahh....Stripping the program down to bare bones to build a test case I... (by byakk0)
by LB
What's the point of this error?
 
struct Outer { template<typename T> struct Inner { }; template<> struct Inner<double> { }; }; --- prog.cpp:9:11: error: explicit specializa...
[9 replies] Last: > Is this equivalent to my enable_if version? Yes. Both are technic... (by JLBorges)
Why won't this code work to order my array from least to greatest?
 
#include <iostream> #include <cstdlib> using namespace std; int main () { int prv_num; int people = {10,1,30,50,20,100,90,15,40,25}; for (int...
[1 reply] : You need to iterate through the array several times (you only do it on... (by Danny Toledo)
Decipher code
 
Hi, I need some help on making a function that is deciphering multiple strings from a .txt file. The function is supposed to remove all instances of the first t...
[1 reply] : I believe this program calls for the std::string class! Have a little ... (by Albatross)
Algorithmic problem (1,2)
 
can anyone here help me with a problem: given a number of intervals where each interval is a time where a person is in a room, find the times where there is a m...
[22 replies] Last: @ JLBorges Fair enough. @ ne555 Ah, I made a greedy mistake. Well, ... (by Duthomhas)
Logic Error
 
Hi! Good day everyone! Well, I'm a newbie and a freshman in Computer Science. We're having this lab exercise that our Miss gave us. and I'm just wondering wh...
[4 replies] Last: Thaaaaaaaaaaaaaaank you sooo much!! Wow!! It's a big relief to have th... (by KawaiiLovah)
Algorithmic Programming
 
What's the most efficient way of generating all combinations between sets? Ex. {1,2,3} {11,22,33} {111,222,333} after algo will make {1,11,111}, {1,...
[no replies]
by enemy
Please, help! Urgent!
 
Hello! We have to input a number. Then count 5 prime numbers <= it. Then we make array_f made of these prime numbers. Then we input another number, and program...
[no replies]
Turbo C++ Code To Print String through Installed Printer
 
Please Give me The C++ Code To Print String through Installed Printer. How to user Printer File Name ??
[9 replies] Last: If you want to write to the default printer, simply use cout. thats... (by closed account Dy7SLyTq)
Need help with Array+Subroutines - Strings
 
Hello. I'm stuck on a problem, and would appreciate some help to resolve it. I need to create this: "Create a C++ program that counts the number of times that ...
[4 replies] Last: Ohhhh, I got it now, dang, at least I was close, thanks a lot for your... (by Lemonkiss)
by enemy
URGENT- PLEASE HELP!!!reaching array from other function
 
Helllo! I have quite a big problem! I have to make an array in one function (NOT MAIN!!!) that does not return the array, but just the average value of it...
[7 replies] Last: Y, u are right, not best idea but practical if it goes. Maybe some ex... (by enemy)
How to write Algorithm/Design
 
Please guide me :)
[7 replies] Last: Oh. Okay. Thanks a lot :) (by chuahyucheng)
Unexpected unqualified-if before "{" token
 
#include <stdio.h> int size1=7; int Minimum(float values , int size1); { float minimum1=1000; for(i=0;i<size1;i++) { if(values <mi...
[1 reply] : When you implement functions, you don't put semicolon at the end. You ... (by ats15)
by AceK
Problem with sockets
 
hi everyone, I'm creating a client server app, a chat app to be specific. I need to know how i can implement the ability for one client to communicate with anot...
[no replies]
Binary Trees problem loading txt
 
Code deleted due to personal reasons. I fixed my problem by re-writting the code. Thank you for your help
[3 replies] Last: TreeNode(void *transfer) { // Constructor. Make a node containin... (by ne555)
Help in deallocation of memory. This .cpp has some errors which i cant figure out.
 
#include "connect.h" # include <iostream> # include <cstdlib> using namespace std; Connect::Connect() { grid = new int* ; for (int i =0; i<7 ; i++...
[2 replies] Last: Suspicious is: for (int col = 0; col <= 7; col++) { for (int row = 0;... (by ShodanHo)
Anonymous structures/Unions?
 
We have anonymous unions...anonymous structures also possible? When do we require these nameless structures/unions? I am clueless I am new to c++...Plea...
[1 reply] : There is a distinction between the terms unnamed and anonymous . On... (by Cubbi)
Function problem (with pointers)
 
Hi all, I can't understand one weird thing. Here is my program : #include <iostream> using namespace std; void Swap(int *a , int *b) { int temp; temp = *...
[5 replies] Last: I don't know maybe. But what have I learned that:- When you pass addr... (by Silver Falcon)
November 2013 Pages: 1... 1920212223... 46
  Archived months: [oct2013] [dec2013]

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