General C++ Programming - March 2017 (Page 9)

I have this project assignment to do and i have no idea about it
 
This is the link with an image.It us the second image actually about the frequency table https://www.dropbox.com/sh/eyvbsdmu1560b8e/AAAa_XRCGvenx1u4HhuMIxn-a?...
[no replies]
Help picking 20 random numbers without repeats
 
this is my code... I am using vs 2012. I need to pick 20 random numbers from a generator without repeats srand(time(0)); int KenoArray = {0}; int j; i...
[8 replies] Last: Oh that makes sense... I knew i had the correct things i just put them... (by iosgaming700)
Project Inquiry
 
I have this school project to work on, but i have no idea on how to start it, any input or help would be great. translate Rules for legal English sentences ...
[4 replies] Last: You may only use those concepts covered through strings in lecture. ... (by mbozzi)
Arrays
 
This is generic question but is there a way to get the index of an array based on the value? I know that if there is an array: int days = {3,5,4,2}; when we i...
[5 replies] Last: Thank you for your help! I know that this might not be idea structure ... (by venivediveci)
I/O problem
 
Hello. I am trying to program a neural network, and to do this, i need to retrieve information from a custom-formatted file that has inputs and target values fo...
[5 replies] Last: Done! Thanks a bunch. (by vastatio)
by ramhue
char arrays and char*
 
what is a char* ? is it a pointer to a char array? how do I store input from a user into a char array? how do I initialize a char array?
[5 replies] Last: We can't store a string (a sequence of characters) in a pointer; an ar... (by JLBorges)
by ramhue
Class function definition
 
I know this my sound bad but I was given a header file for a class named patient. The setter functions that I was given, I don't know how to make like the funct...
[1 reply] : // set the first name return *this ; // return reference to the pati... (by JLBorges)
by xcolz
Making page name and password
 
//So far this what I did now I want to make output like this if the choice of the pagename is this the password will be this. I just need to figure it out only ...
[3 replies] Last: You're welcome! Glad that was some help, don't forget to mark your thr... (by UndeadLegion)
Splitting arrays randomly
 
My question is how should I manipulate this function to randomly split the array randomNumbers that it is taking in. array1 and array2 are the resulting array...
[4 replies] Last: Thank you I think I figured it now. (by james42)
Strings and Relational Operators
 
I've been struggling with getting the correct output from a list of strings on an assignment I am doing. I created some sample code so it is short and perhaps s...
[2 replies] Last: Thank you so much! I've been pulling my hair out over this - been thin... (by UndeadLegion)
wrong output
 
this source code does what its suppose to do but some of the calculations are off and i dont know why #include <iostream> #include <string> #include <fstr...
[5 replies] Last: Ok, glad you made some progress. Nothing personal was intended, but I... (by Chervil)
Is this a case of cyclic include. Doesn't look so to me. Still getting error: expected class-name before ‘{’ token
 
Hi guys :), I am getting this error: expected class-name before ‘{’ token, while trying to compile my code. I went through the net to find out the cause an...
[2 replies] Last: thanks @Peter87 for pointing that out :) silly mistake :( (by kapil2905)
Md5 checksum of file that is input by user
 
Hi, can anyone help me? I am new to C++ programming. I need to create a program that calculate the md5 checksum of the file that is input by user. At the moment...
[4 replies] Last: you can make a string with the path. either string dpath = "D:\\"; ... (by jonnin)
by Aljasm
How to overwrite strings
 
So I am completely lost on what to do. I have two strings, one is longer than the other. If the second string is longer than the first string then I have to res...
[3 replies] Last: [quote=Aljasm]I can't use vectors Can you use strings? Probably not s... (by Cubbi)
Breaking nested loops and an issue with constant number
 
this code check whatever a matrix is symmetric or not however i got two issues the first when i print N which suppose to be constant i get two values of it :\ ...
[2 replies] Last: Hello, @zeroblank Given that the input is from the console, is there ... (by lastchance)
Dbf extension file
 
Hi all. I have a question, where can I open and view a .dbf extension file?
[4 replies] Last: I want to say thank you for taking the time to share how to go about f... (by Renan335)
by tushu
Graph representation using Map and set
 
When I will add edge( A, B, 1). It should be stored as ( A , 0) , ( B , 1 ) in map ( T, key ) vtxMap. when I will add edge ( B , C , 6 ), it should be stored as...
[2 replies] Last: Line 41: getvInfoIndex() doesn't need to take a graph<T> reference as ... (by dhayden)
Attempting to read audio file
 
UPDATE: The title of this topic has changed. I have managed to fix the first problem I was having, only to be greeted by another. I will copy/paste the current ...
[10 replies] Last: I fixed my own problem. For those who are (or will) encounter this iss... (by closed account 1Afj1hU5)
Disabling context menu in a console app
 
I simply want to disable the context menu whilst my console app is running. I've looked at the link below for a bit and I think it is what I want but sadly ...
[2 replies] Last: Thanks for the reply, maybe it won't as easy as I thought. I'll just h... (by RvBVakama)
by xismn
Implicit template type deduction
 
Thanks for taking a look at my thread, Not sure if the title is accurate - I don't really know what to look for online to answer my question. Let's say I have...
[15 replies] Last: Thank you everyone for your valuable input! I was pleasantly surprised... (by xismn)
March 2017 Pages: 1... 7891011... 19
  Archived months: [feb2017] [apr2017]

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