Beginners - November 2016 (Page 22)

by jmpc92
Pointers and vector output.
 
Hey guys, beginner here making his first post so apologies if I make this more confusing than it needs to be. So here's the problem, I was given this Student...
[3 replies] Last: Thank you so much! That was really helpful. I did manage to display th... (by jmpc92)
Error: String subscript out of range
 
Hello all, New member to this forum, excited to be here. Im getting the subject line error with the below code. I have a linked list of chars that Im trying ...
[1 reply] : The subscript operator can only be used to access existing characters ... (by Peter87)
Replace
 
Hi, I'm trying to replace the word love with the word hate but I get the error message "No matching member function for call to 'replace'". #include<iostr...
[3 replies] Last: You could create a non-const copy of inText1 and then call replace on ... (by Peter87)
by mmgh
MPI send and recv for std::vector
 
hello, Would you please help me send a std::vector<MyClass> vec; from the master node to the slave nodes? Is it possible to send and receive the whole ve...
[1 reply] : You can (and should) send a normal array in one go. http://www.mpich.o... (by lastchance)
Am I programming in a wrong way?
 
Hello everybody! I'm new to this forum and first thing first I'd like to apologize for my terrible english, I hope you'll be able to understand me :) Well.....
[2 replies] Last: Your looks pretty good. 2 suggestions 1. instead of cout << endl; if... (by joe864864)
Integer division issue.
 
On line 87 I'm having an issue with integer division. I keep getting 1 as the result. I tried using static_cast, but that wasn't able to resolve my issue. ...
[6 replies] Last: Jack816, Could you possibly post the mathematical formulae that you a... (by lastchance)
by Kimmy1
Loops and average
 
How would I create a program that allows the program to choose which loop they want to use to enter 5 integers and calculate the average. The program should hav...
[3 replies] Last: #include <iostream> void while_loop(int &, int &, int (&) ); void f... (by boost lexical cast)
Help with stringstream
 
I have a file A that has multiple paragraphs. I need to identify where I matched words from another file B. I need to tell the paragraph, line number, and wor...
[no replies]
Using Private Arrays??
 
Hi everyone, I'm trying to use a private function with arrays as if it were public. I'm not programming savy, but I gather I'm supposed to use a pubilc acces...
[5 replies] Last: @ Hitsuin You could define your own Function thats beahves lik an arra... (by nuderobmonkey)
Class type redefinition error. How can I fix this?
 
This is my header file: #ifndef UArray_H #define UArray_H #include <iostream> using namespace std; class UArray { public: UArray(int _size); UArray(int...
[5 replies] Last: http://stackoverflow.com/questions/2346806/what-is-a-segmentation-faul... (by closed account 48T7M4Gy)
Replace IP Address with Web Address
 
I am using #include<winsock2.h> and ws2_32.lib and was wondering how I could connect to port 80 using a web address rather than an IP address. server.sin...
[1 reply] : See gethostbyname() function: https://msdn.microsoft.com/en-us/librar... (by coder777)
Program to edit roms and binary files.
 
Hello, im a noob when it comes to coding. I am trying to write a file corruptor that edit bytes of a file by applying math to the bytes . I want it to have the...
[3 replies] Last: If you are worried about the program's duration, use bitwise operators... (by Golden Lizard)
Debug Error! abort() has been called
 
My program keeps giving out the abort() has been called error and idk how to fix it!! I have looked everywhere and even tried debugging it but i wasn't too sure...
[1 reply] : Maybe I can figure it out if you post your program. (by Golden Lizard)
Help with splitting strings
 
Hi, My goal with the attached code was to read in strings via splitting the string, using a switch statement, and then to return the contents of the CSV data ...
[1 reply] : Can you post your full code? (by Elantra)
char arrays
 
#include <iostream> #include<string.h> using namespace std; bool findchar(char*cstr,char x,int &n){ cout<<&cstr<<" "<<n<<endl; for(int i=0;cstr ...
[1 reply] : Please explain how output is coming? What do you want? (by Elantra)
Intro C++ project using arrays, etc. Needing guidance in theory and coding
 
Hi! I'm a novice programmer working on a simple project for my C++ class. I'm having trouble understanding how to make my program do what I want it to do. Am I...
[1 reply] : Some suggestions: 1. Make size a constant const int size = 20; 2. As... (by joe864864)
by hayart
'complex' does not name a type
 
Hello, I am running IDE: Code::Blocks 16.1 With this compiler : mingw-get version O.6.2-beta-20131004-1 This code produces an errors. FFT C Rosetta Code FFT ...
[4 replies] Last: Thank you again for all the help. When I commented out the C++ code an... (by hayart)
Counting from a file help!
 
I'm trying to count the number of items from a little list I compiled in NotePad. Here's what the list looks like. "apple banana orange strawberry kiwi berries ...
[1 reply] : Never mind guys! A little bit of playing around led me to this. It wor... (by MisterTams)
Invalid conversion
 
i keep getting this error discs.cpp:34: error: invalid conversion from ‘int*’ to ‘int’ discs.cpp:34: error: initializing argument 1 of ‘void draw_...
[1 reply] : void draw_peg(int* peg_array, int size); (by gunnerfunner)
Upper Case to Lower case and vice versa
 
Hello, I have created 2 if statements, the second statement is correct but the first statement seems to get skipped, can you please help? Thank you. As a side n...
[2 replies] Last: Ahh thank you very much last Chance! I can't believe I missed that, wa... (by ageofkings09)
November 2016 Pages: 1... 2021222324... 44
  Archived months: [oct2016] [dec2016]

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