General C++ Programming - June 2015 (Page 12)

Help with 2D array
 
I cant seem to put my data into a 2 dimensional array, please tell me where my mistake is #include <iostream> #include <fstream> #include <cmath> #include <s...
[1 reply] : You don't have a 2d array. On line 27: count << ARRAY_SIZE // wron... (by coder777)
Clarification on bitstrings
 
Hello to all, if I have a 32-bit unsigned integer x presented as a sequence of bits for example 00000000001111111111000000000011 Then wh...
[3 replies] Last: Please, how do I substract binary strings on two`s complement number s... (by pacman169)
How to run a a program from within a program (compile another program)
 
So i have a executable that i have that writes to certain header files storing variables and stuff, then this file is moved to another folder with source to ano...
[4 replies] Last: What particular problem are you trying to solve with this approach? Us... (by andywestken)
NEED HELP: reading file and finding average and stdv
 
I keep getting stuck trying to find the average and standard deviation because i cant get my program to read the file correctly. please tell me what im doing wr...
[2 replies] Last: Ok i fixed that, im trying to find the sum and my numbers are not the ... (by rosiebud492)
template questions
 
Hi, With the code below, the compiler is picking the wrong f() for one of the template instantiations. Depending on whether I build with: g++ t1.cpp t2.cp...
[1 reply] : This has nothing to do with templates. (I could be wrong from here on ... (by BlatantlyX)
Aesthetics
 
I have a programm that has a title: "Bienvenido al Libro de Calificaciones" and I want it to remain there the time I want. Is it possible to keep it there, n...
[4 replies] Last: Thanks man! (by Osej Alhasad)
Where do I start with this?
 
Hi! This isn't a question about my code, or how to fix it. It actually includes no code at all. My question is a bit different. Where do I start graphical pr...
[1 reply] : Hello, learning graphical stuff once you get bored with just looking a... (by Ganado)
issues in school project and no tutors during summer
 
i am working on a project where i ask for 5 scores, find the high and low, subtract those from the sum. multiply the sum by the difficulty and then output the f...
[1 reply] : Check the array indexing in addAllScores . (by cire)
school project part2
 
#include <iostream> #include <string> #include "User.h" using namespace std; using std::cout; using std::endl; User::User() { for (int user=0; user<50; ...
[2 replies] Last: Seriously? You're splitting your code over several different forum th... (by MikeyBoy)
Trouble with SFML Networking
 
So guys,i was following tutorial on YT and i tried its code,it doesn't work,i don't know why,here it is: #include <SFML/Graphics.hpp> #include <SFML/Audio....
[4 replies] Last: Oh,thanks! (by SuperCrusader)
school Project
 
this is the header code //#ifndef User_H //#define User_H class User { public: User(); //constructor void SetUserChannelConditions(floa...
[no replies]
school Project
 
i've been working in this project so hard but i still have lots of problems. I'm not a good programmer but it's a class I've to take. this is a program that giv...
[2 replies] Last: thanks i'll repost this is my first post (by pullas8)
Read th Serial data from the port
 
I'm trying to write the data(Serial port data) in text file. But i want the output write like....... desire output: 2343 3434 2344 2345 3552 2785 894...
[3 replies] Last: it is a text file, so it doesn't have columns. You could represent col... (by fcantoro)
Sigma of a single Variable with different values?
 
Hello all My problem is that I have a variable that in an step by step program gives different values in each step, now I have to sum all this values as a new ...
[1 reply] : Create a new variable to hold a running total of the variables. At ea... (by MikeyBoy)
Problem with looping through input
 
I am trying to read the input file: ANTH 4.6934 4.74 5.77 BWLD 156.96 155.48 152.58 and store the inputs in 2 vectors (one for the string of letters and on...
[1 reply] : Why do you call getline with ','? (by coder777)
by demox
if statements and initializing problems
 
Hello, I'm new to c++ which is why I'm here, probably with a very dumb/simple question. I'm working on a large program but encountered problems in the early st...
[2 replies] Last: It must be a const string..of course. I've tried just about everythin... (by demox)
Keeping running into errors....definitely need some help
 
#include <iostream> #include <string> #include <cstdlib> #include <iomanip> using namespace std; const double MIN_SALARY=50000; const double MAX_SALA...
[4 replies] Last: You have a rather large number of syntax errors. while (compile resu... (by cire)
help to make this program
 
Create a library with functions that convert between angles expressed in radians, degrees, and revolutions. Each function has a return type of double and an inp...
[2 replies] Last: you should try yourself to solve the problem. people will help where y... (by anup30)
by hav206
Huffman Tree
 
I am doing huffman tree. the instruction is if you go from the left subtree, you have to add "0" if you go from the right subtree you have to add "1". I am tryi...
[4 replies] Last: You can do it with tail recursion, sure. That will probably require y... (by cire)
Trying to Read Input File
 
Hi, I'm trying to read from a file and execute a while statement to analyze the data, but I'm having some issues. The initial user input and display is working,...
[8 replies] Last: It would make sense to protect your code by using ifstream::is_open() ... (by andywestken)
June 2015 Pages: 1... 1011121314... 16
  Archived months: [may2015] [jul2015]

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