Beginners - December 2016 (Page 17)

Question about reading datafiles into 2d arrays
 
I have been assigned to write a program that reads data from a file and loads it into a 2D array (6 rows, 4 columns). I have done that, but i have noticed somet...
[2 replies] Last: i completely forgot i left that when i was testing it. haha, of course... (by rooftopz)
by abdan
Error message 0x00104416 on Windows 10
 
I got error message on Windows 10 but the Application still good. Here is the message : An unexpected error has occured in the application... Address : 0x0010...
[5 replies] Last: Ok Good People, thanks for any advice ! Good luck for you and have a g... (by abdan)
by rgibbs
array problems
 
the code below is from a void function ,, it asks the user to enter 10 numbers which go into an array then one more number to see if it is in the array th...
[1 reply] : You have defined your array too small. You have allowed for only nine... (by koothkeeper)
Why am I getting this weird error on the scramble program
 
The cause of the issue was when I inserted this code: infile >> wordlist ; i++; I'm not sure why my the code will execute. Additionally, it says "no ...
[2 replies] Last: http://www.cplusplus.com/forum/beginner/204231/ (by closed account 48T7M4Gy)
How to get unscramble program to read a file
 
I'm trying to get my program to read from a file a list of words into the original member and the sorted version of the word into the sorted member of each elem...
[3 replies] Last: http://www.cplusplus.com/forum/beginner/204293/ (by closed account 48T7M4Gy)
New to ALL programming, but starting C++
 
Hi brothers and sister and all budding programmers (of all pro-nouns, like, you know the whole non binary gender thing now which confuses the BE-JEsus out of ev...
[4 replies] Last: I think if you want it bad enough, you will be able to grab an entry-l... (by koothkeeper)
How to put prices on tires, that user chose
 
I was wondering how to put values on the tires they chose, such as I want pirelli to be worth $90 so i can multiply a quantity and the price of the tire the use...
[3 replies] Last: Hello xmonroy, Sorry for the extra message, bad wifi/internet connect... (by Handy Andy)
Priority Queue help
 
I've been beating my head about this for a little while and I'm hoping someone here can help me spot my mistake. For some reason when I call the top position in...
[3 replies] Last: I figured it out, I had some issues in my overloaded operator changed ... (by Rogue35N)
Calculator Class Question
 
I've been playing around with C++ for several years off and on in different areas. For the last year or so I've been using the SDL2 library and doing mostly gam...
[6 replies] Last: I would make a post fix notation calculator rather than having differe... (by switchy)
A function
 
I need some help i am trying to do a interpreter for a auto/macro language. Whatever. I am trying to do aliases and what i would need is a function that has two...
[3 replies] Last: #include <iostream> #include <string> //#include <algorithm> //edit:... (by gunnerfunner)
what is the diffrance between these two pointers
 
(char*)data char * data void increase (void* data, int psize) { if ( psize == sizeof(char) ) { char* pchar; pchar=(char*)data; ++(*pchar); } ...
[3 replies] Last: void does not have any size. You cannot even use that type [without ... (by coder777)
by loopy
Dynamic array without loop and vector.
 
Hi there! I'm sorry for my English, it is not my native language. I have some problem with dynamic array. I have this code int size = 10; int* arr = ...
[1 reply] : Might be useful, particularly std::copy for the reasons given. http:/... (by closed account 48T7M4Gy)
String Tokernizer
 
Can anyone explain the difference between the following lines in the below program p = strtok (string,",:"); p = strtok (NULL,",:"); program ======= #inclu...
[3 replies] Last: Thanks for your response. I got some idea now about strtok(). (by Rajkumar MCA)
Reading a valid email from an input file
 
i am working on my class lab on how to search for a valid email from and input file. below is my code, i dont really know what i am doing wrong. can you pleas...
[7 replies] Last: Thanks for your support it work now (by toraaglobal)
Resistor color code program
 
It's the end of the semester and I should be able to understand this, but the logic hasn't come to me at all. I still greatly struggle with knowing what to do. ...
[12 replies] Last: I already had my two arrays. Both are in main and I passed my string a... (by MadKingRyan)
Need Help
 
Keep getting this message Run-Time Check Failure #3 - The variable 'ch' is being used without being initialized. Don't know what to do. //Header File #inclu...
[1 reply] : First please use code tags. I didn't through your code but what you s... (by joe864864)
Converting an array of bytes to int gives Apple Mach-O linker error
 
I am trying to convert an array of bytes into an integer. In Java, I do the following: public static int bytesToInt(byte b) { int result = 0;...
[3 replies] Last: It has been a long time since I programmed in C++. Solved by renaming ... (by igorland)
finding mean median and mode using arrays
 
Can I please have some assistance with the following program. Given the following input file: 4 9 7 6 7 6 9 4 5 3 4 8 9 4 9 5 8 4 3 2 3 6 8 8 2 6 1 4 2 3 2 3 ...
[4 replies] Last: the response histogram is something like this its like a table Res... (by chris2016)
sorting an array cleanly
 
I'm writing a program that takes in numbers from a file, places them into an array then sorts the array. My question is how to make the program cout the numbers...
[1 reply] : Use a loop to check if the input is a number or not before printing or... (by MistahMoose)
Reading integers from a text file and fork() a child process
 
First time post and I am out of my league, so I apologize up front. I have reviewed C++ for Beginners, been on cplusplus, dreamincode, sanfoundry, tutorialpoin...
[2 replies] Last: Thank you! Very slick and it compiled nicely in cpp.sh. I need to go... (by gjtarbert)
December 2016 Pages: 1... 1516171819... 28
  Archived months: [nov2016] [jan2017]

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