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

Problems with "searching a list"
 
Good afternoon misters and ladies. I am having some problems trying to do a c++ problem. I am meant too have a do + switch that will ask me for a word, look ...
[1 reply] : In return ptr->dados; , should you not be returning the address of ... (by Duthomhas)
How to covert an array of strings into a integer double array
 
i have this content in my array of string: string ip ={{"11000100001000"},{"1011111011101101101010"}}; how do i covert it to store the same in an integer ar...
[2 replies] Last: Are your strings always just 0 and 1s (are they binary?) And not sure... (by andywestken)
Color
 
Is there any way to change the color of a program with nothing but the standard library? I've always been curious about how people create color in their program...
[3 replies] Last: OK! Awesome. I think I understand now. Thanks guys! (by ForTheReallys)
How cin interprets a .
 
I have a student who made a mistake in creating an input file. His line should have been: P-123 12 3.88 ie partNumber (a string) quantity (an int) and cost (...
[3 replies] Last: . I just don't understand why the . would be interpreted as whitespac... (by jlb)
C3861 : 'identifier not found
 
I'm trying to estimate the PSD from the FFT in C++. i got some error like yulewalkerPSE : identifier is not found. 'sigma2' : undeclared identifier. 'a': und...
[12 replies] Last: Yes, do the same as before. Introduce two template types: template <... (by coder777)
concatenate two list
 
Hi I'm trying to concatenate two list as above but the print works well for the 2 lists and not work for the final(it shows empty list). Can anyone help me? T...
[8 replies] Last: I've managed the problem. Thanks you. (by beginner20)
How to solve the Template compile error
 
How to solve the Template compile error Hello everyone, I have a error when i compile my code which using c++ template, the code as follows: // Cons...
[2 replies] Last: Thanks, it works! :) and 'static const' intger value can be initial... (by guolisen)
Catch character input in type number
 
Hi int c; cin>>c; //but user put character but want to tell user to enter non-char how can I do this? thanks
[5 replies] Last: Welcome :) @andywestken The stuff you wrote were very cool, learnt a ... (by shadder)
Question about Time & Date
 
I am a C++beginner and I got a problem when dealing with time&date. I always get a error that says 'tm' does not refer to a value when I try to call the functio...
[5 replies] Last: If you want multiple functions to use the same time then what you wrot... (by SamuelAdams)
C++ - File is not Fully arrived
 
i want to send a file from client to server through socket . yes it sends a file but the received file in the server is not full or complete like the original o...
[2 replies] Last: thanks for the reply .. yes i change char *rbuffer to char rbuffe... (by iamlearner)
Implement a simple password that takes two
 
I have a question: How csn I build a password system that takes a password in the form of a number but it either of two numbers have to be valid, but I just can...
[2 replies] Last: Every "test" in an if statement has to be able to stand on its own. T... (by Ganado)
Quick Help :)
 
Would this be good if I wanted to verify a file a user gave me was correct? ifstream readSalesFile; readSalesFile.open(SalesFile); //validate if the sa...
[6 replies] Last: ohh I was just thinking too deep into it, thanks a lot MiiNiPaa. I gu... (by mjamesball9)
by hav206
B+ tree
 
I am trying to implement B+ tree. class Node { int data; vector *myvector }; I am trying to find out if this class can store information on B...
[1 reply] : ¿what's vector? (by ne555)
by mehti
where has been saved the output?
 
hello guys i run my program that has text output, my output file become very huge and my drive capacity get fulled! but my program do not stop at all, so i del...
[2 replies] Last: tank you MiiNiPaa so i should run again. (by mehti)
STL Vector C++
 
Can anyone please help me with this question?????? Create two vectors. Fill both vectors with 100 random integers in the range [-1000, +1000],in random order...
[19 replies] Last: If you're talking about this: a) Create a third vector, which contai... (by andywestken)
How to save a QRCode struct in libqrencode as an image c++
 
I am using libqrencode to create a QR image in c++ (VS 2013) this is my basic program QRcode *QR; string mode=Data_Analysis(input); if (mode == "nu...
[1 reply] : A simple solution if linking an image library is overkill, is to write... (by helios)
Can someone help me out?
 
This voting program isn't working. What am I doing wrong? #include<iostream> using namespace std; int main() { int DJ = 0, Casey = 0; in...
[7 replies] Last: Welcome :D (by shadder)
How to add objects to a program with class?
 
My homework problem is "please write a C++ program which asks the user to enter at the keyboard the numeric values of two pairs of ordered-pair coordinates on a...
[11 replies] Last: This is because you did not made your functions const-correct: double... (by MiiNiPaa)
How to add objects to a program with class?
 
My homework problem is "please write a C++ program which asks the user to enter at the keyboard the numeric values of two pairs of ordered-pair coordinates on a...
[11 replies] Last: The A is const . Only const member functions of such object may ca... (by keskiverto)
send the file periodically through socket in windows
 
hello .. anyone know how to send a file periodically from client to server through socket ? thanks
[6 replies] Last: here is my client code : // client.cpp : Defines the entry point for... (by iamlearner)
June 2015 Pages: 1... 56789... 16
  Archived months: [may2015] [jul2015]

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